Hi,

We've done similar query rewriting in a custom SearchComponent that runs before 
QueryComponent.

Otis
----
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch
Lucene ecosystem search :: http://search-lucene.com/


>________________________________
> From: Andrew Lundgren <lundg...@familysearch.org>
>To: "solr-user@lucene.apache.org" <solr-user@lucene.apache.org> 
>Sent: Tuesday, December 13, 2011 11:58 AM
>Subject: Best way to convert a field in a query to a fq?
> 
>I want to modify incoming queries such that a field is always transformed to a 
>filter query.  For example, I want to convert a query field like q= ... 
>part_page=3 ...  to a filter query like q= ... fq=partpage(3) .
>
>Is the right way to do this in a custom component, or is there someplace else 
>where this should be handled?
>
>We have several clients and would like to protect the server from this field 
>being queried on even if they make a mistake.
>
>Thank you.
>
>--
>Andrew Lundgren
>lundg...@familysearch.org
>
>
>NOTICE: This email message is for the sole use of the intended recipient(s) 
>and may contain confidential and privileged information. Any unauthorized 
>review, use, disclosure or distribution is prohibited. If you are not the 
>intended recipient, please contact the sender by reply email and destroy all 
>copies of the original message.
>
>
>
>
>

Reply via email to