Re: [newbie] solrj SolrQuery indent response

2011-11-28 Thread halil
Yes, your are right. I was trying to indent the solr json response. Actually, Solr Json response is not exactly json, i couldnt understand the output format. But found a solution yo solve the problem, i mean making json and indenting the solr result set. Here is the code segment. public class Solr

Re: [newbie] solrj SolrQuery indent response

2011-11-28 Thread Erick Erickson
I'm not sure what you're really after here. Indent how? The indent parameter is to make the reply readable, it really has nothing to do with printing the query. Could you show an example of what you want for output? Best Erick On Mon, Nov 28, 2011 at 8:42 AM, halil wrote: > I step one more. bu

Re: [newbie] solrj SolrQuery indent response

2011-11-28 Thread halil
I step one more. but still no indent. I wrote below code segment query.setQuery( "marka_s:atak*" ) .setFacet(true) .setParam("indent", "on") ; and here is the resulted query string q=marka_s%3Aatak*&facet=true&indent=on -halil agin. On Mon, Nov 28, 2011 at

[newbie] solrj SolrQuery indent response

2011-11-28 Thread halil
Hi List, I am new to Solr and lucene world. I have a simple question. I wrote below code segment and it works. public class SolrjTest { public static void main(String[] args) throws MalformedURLException, SolrServerException{ ClassPathXmlApplicationContext c = new ClassPathXmlApplic