Thanks guys. Both the PositionFilterFactory and the
autoGeneratePhraseQueries=false solutions solved the issue.
--
View this message in context:
http://lucene.472066.n3.nabble.com/Analyzer-creates-PhraseQuery-tp3116288p3118471.html
Sent from the Solr - User mailing list archive at Nabble.com.
(11/06/28 16:40), lboutros wrote:
You could add this filter after the NGram filter to prevent the phrase query
creation :
http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.PositionFilterFactory
Ludovic.
There is an option to avoid producing phrase queries,
autoGeneratePhraseQu
You could add this filter after the NGram filter to prevent the phrase query
creation :
http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.PositionFilterFactory
Ludovic.
-
Jouve
France.
--
View this message in context:
http://lucene.472066.n3.nabble.com/Analyzer-creates-Phrase
Separate the Analyzer into a index time analyzer with NgramFilter Factory
and Query time analyzer without the N-gram Filter Factory
Since your query is analyzed by this analyzer and produces more than one
tokens for the given keyoword and hence the result is phrase query.
Regards
Sujatha
On T
I guess 'to' may be listed in 'stopWords' .
On 28 June 2011 08:27, entdeveloper wrote:
> I have an analyzer setup in my schema like so:
>
>
>
>
> maxGramSize="2"/>
>
>
> What's happening is if I index a term like "toys and dolls", if I search
> for
> "to", I get no matches. The d