lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "girish.vignesh" <>
Subject Is it possible to escape some texts from Solr query?
Date Tue, 04 Sep 2018 10:10:35 GMT
One of the ID attribute which we are using to query is AND so our looks like


This throws below mentioned exception

error: { metadata: [ "error-class", "org.apache.solr.common.SolrException",
"root-error-class", "org.apache.solr.parser.ParseException" ], msg:
" Cannot parse 'id:AND': Encountered "
"AND "" at line 1

I can escape AND by using below mentioned queries

Question: I do not want to handle this while making a query. Is there any
other way to handle this at Solr config level using tokenizer or some other
way. This way I do not have to handle this at multiple places.

Sent from:

View raw message