Custom Query Processing

2011-06-27 Thread Jamie Johnson
I have a need to take an incoming solr query and apply some additional
constraints to it on the Solr end.  Our previous implementation used a
QueryWrapperFilter along with some custom code to build a new Filter from
the query provided.  How can we plug this filter into Solr?


Re: Custom Query Processing

2011-06-28 Thread Dmitry Kan
You should modify the SolrCore for this, if I'm not mistaken.

Would extending LuceneQParserPlugin (solr 1.4) be an option for you?

On Tue, Jun 28, 2011 at 12:25 AM, Jamie Johnson  wrote:

> I have a need to take an incoming solr query and apply some additional
> constraints to it on the Solr end.  Our previous implementation used a
> QueryWrapperFilter along with some custom code to build a new Filter from
> the query provided.  How can we plug this filter into Solr?
>



-- 
Regards,

Dmitry Kan


Re: Custom Query Processing

2011-06-29 Thread Jamie Johnson
Anything is an option, but I think I found another way.  I am going to add a
new SearchComponent which reads some additional query parameters and builds
the appropriate filter.


On Tue, Jun 28, 2011 at 2:07 PM, Dmitry Kan  wrote:

> You should modify the SolrCore for this, if I'm not mistaken.
>
> Would extending LuceneQParserPlugin (solr 1.4) be an option for you?
>
> On Tue, Jun 28, 2011 at 12:25 AM, Jamie Johnson  wrote:
>
> > I have a need to take an incoming solr query and apply some additional
> > constraints to it on the Solr end.  Our previous implementation used a
> > QueryWrapperFilter along with some custom code to build a new Filter from
> > the query provided.  How can we plug this filter into Solr?
> >
>
>
>
> --
> Regards,
>
> Dmitry Kan
>