Hi folks,

If a user types in the search box (without quotes): "{!q.op=AND df=text
solr sys" and I take that text and build the URL like so:

http://localhost:8983/solr/db/select?q={!q.op=AND%20df=text%20solr%20sys&fl=id%2Cscore%2Ctitle&wt=xml&indent=true

This will fail with "Expected identifier" because it is not a valid Solr
text.

My question is this: is there a flag I can send to Solr with the URL
telling it to treat what's in "q" as raw text vs. having it to process it
as a Solr syntax?  If not, than it means I have to escape all Solr reserved
characters and words.  If so, where can I find the complete list?  Also,
what happens when a new reserved characters or word is added to Solr down
the road?  It means I have to upgrade my application too, which is
something I would like to avoid.

Thanks

Steve

Reply via email to