lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: Date Math, NOW and filter queries
Date Tue, 17 Nov 2015 17:57:33 GMT

: the '+' sign is a URL-escape for space, which you
: see in the error message.

more specifically, the error indicates that something/somewhere/somehow 
when you are construction your request to Solr, your HTTP request params 
are not getting properly escaped -- so the '+' is being sent literlay over 
the wire, and Solr is URL un-escaping it as whitespace.

: Escape it as %2B and you should be fine.

Rather then you manually "escaping" just the "+" character in your code, 
you should instead figure out where/how to ensure that *all* the HTTP 
communication you have with Solr gets properly escaped -- so you don't 
have this problem over and over with other params/characters.

if you can tell us a bit more about how you communicate with Solr, we can 
try to help you with the larger problem you are having.  (any decent HTTP 
client library should  automatically escape any request param keys/values 
you ask it to include in the request)

-Hoss
http://www.lucidworks.com/

Mime
View raw message