lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jack Krupansky" <>
Subject Re: Adding filter in custom query parser
Date Wed, 01 Oct 2014 12:24:07 GMT
Unless you consider yourself to be a "Solr expert", it would be best to 
implement such query translation in an application layer.

-- Jack Krupansky

-----Original Message----- 
From: sagarprasad
Sent: Wednesday, October 1, 2014 3:27 AM
Subject: Adding filter in custom query parser

I am new bee in SOLR and OpenNLP. I am trying to do a POC and want to write 
custom parser which can parse the query string using NLP and create an
appropriate SOLR query with filters.

For eg : "red shirt under 20$" should be translated to q=shirt&fq=price:[*
TO 20] and possibly apply color to one the attribute of doc index.

in parser overrided method, how can i add the filter and pass the query

Any help pointers / sample code  will be helpful.


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

View raw message