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
To: solr-user@lucene.apache.org
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 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.

Reply via email to