I am using Solrj as solr client We have a user query like "XIO: fatal IO error 11 (Resource temporarily unavailable) on X server :0" AND "after 109"
or "XIO: fatal IO error 11 (Resource temporarily unavailable) on X server :0" "after 109" currently if (syndrome.startsWith("\"") && syndrome.endsWith("\"")) { syndrome = syndrome.replaceAll("\"", ""); syndrome = QueryParser.escape(syndrome); syndrome = "\"" + syndrome + "\""; } is the code which escapes the query, but the problem with this is it removes the double quotes before escaping and inserts it after escaping which removes the double quote for AND query and its gets searched for "XIO\:++fatal+IO+error+11+\(Resource+temporarily+unavailable\)+on+X+server+\:0+AND+after+109" This will result in wrong results Is there a war to interpret this request correctly and send it to SOLR. I was looking if there are any query parsers I need to use ? Any suggestions would be useful Thanks Meena -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-search-with-AND-and-OR-tp4222618.html Sent from the Solr - User mailing list archive at Nabble.com.