lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sagarprasad <sagar.pra...@gmail.com>
Subject Adding filter in custom query parser
Date Wed, 01 Oct 2014 07:27:13 GMT
I am new bee in SOLR and OpenNLP. I am trying to do a POC and want to write a
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
back?

Any help pointers / sample code  will be helpful.

-Thanks



--
View this message in context: http://lucene.472066.n3.nabble.com/Adding-filter-in-custom-query-parser-tp4162044.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message