lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bernd Fehling <bernd.fehl...@uni-bielefeld.de>
Subject query switched filters
Date Tue, 04 Oct 2011 08:19:02 GMT
Dear list,

I'm in the need of query switched filters (to turn filters on and off by query parameter).
I've already send my idea to the solr list and asked for opinions, but no complains from there.

http://lucene.472066.n3.nabble.com/skipping-parts-of-query-analysis-for-some-queries-td3382239.html

Because this also effects Lucene I'm asking here also if there are any complains, opinions
or better ideas.

I will start with ShingleFilter and SynonymFilter.
There will be added an attribute "querySwitch".
The value of "querySwitch" is the name of the query parameter.

Example:
<filter class="solr.ShingleFilterFactory"
         maxShingleSize="3"
         outputUnigrams="false"
         outputUnigramsIfNoShingles="true"
         querySwitch="sff" />

So with the above setting I can then turn the filter off for specific queries.
...&sff=false&...

If "querySwitch" is not set it defaults to "true"/"on".
Any other value than "false"/"off" will use the filter.

Any opinions or better solutions or ideas?

Regards
Bernd

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message