lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From S L <>
Subject solrj returning no results but curl can get them
Date Fri, 30 Jan 2015 03:58:55 GMT
I'm stumped. I've got some solrj 3.6.1 code that works fine against three of
my request handlers but not the fourth. The very odd thing is that I have no
trouble retrieving results with curl against all of the result handlers.

My solrj code sets some parameters:

        ModifiableSolrParams params = new ModifiableSolrParams();
        params.set("hl", "on");
        params.set("hl.fl", "title snippet");
        queryString = "(" + queryString + s[s.length-1] + ")";

I have various request handlers that key off of the product value. I'll call
the one that doesn't work "myproduct".

I send the parameter string to catalina.out for debugging:


I get this:


I get no results when I let the solrj code do the search although the code
works fine with the other three products.

To convince myself that there is nothing wrong with the data I unencode the
parameter string and run this command:

            curl "http://myserver/myapp/myproduct\

It runs just fine.

How can I debug this?

Thanks very much.

View this message in context:
Sent from the Solr - User mailing list archive at

View raw message