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-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to