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 3:07 PM, halil <halil.a...@gmail.com> wrote:

> 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
> ClassPathXmlApplicationContext("/patrades-search-solrj-test-beans.xml");
>         SolrServer server = (SolrServer)c.getBean("solrServer");
>         SolrQuery query = new SolrQuery();
>         query.setQuery( "*:*" )
>             .setFacet(true)
>             ;
>         QueryResponse rsp = server.query( query );
>         System.err.println(rsp.toString());
>     }
> }
>
>
> I want to indent the response string, but couldnt find any answer. I
> looked at book, mail archive and google.  Most relevant link is below
>
> http://wiki.apache.org/solr/SimpleFacetParameters
>
> but i dont know how to use it. Api is hard to read by the way.
>
> regards,
>
> -Halil AĞIN
>

Reply via email to