lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jack Krupansky" <>
Subject Re: Solrj Stats encoding problem
Date Wed, 05 Jun 2013 20:36:18 GMT
Sounds like the Solr Admin UI is too-aggressively encoding the query part of 
the URL for display. Each query parameter value needs to be encoded, not the 
entire URL query string as a whole.

-- Jack Krupansky

-----Original Message----- 
From: ethereal
Sent: Wednesday, June 05, 2013 4:11 PM
Subject: Solrj Stats encoding problem


I've tested a query using solr admin web interface and it works fine.
But when I'm trying to execute the same search using solrj, it doesn't
include Stats information.
I've figured out that it's because my query is encoded.
Original query is like q=eventTimestamp:[2013-06-01T12:00:00.000Z TO
The query in java is like
If I copy this query to browser address bar, it doesn't work, but it does if
I replace encoded &:= with original values. What should I do do make it work
through java?
The code is like the following:

SolrQuery solrQuery = new SolrQuery();
QueryResponse query = getSolrServer().query(solrQuery);

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

View raw message