Hmmm, Can we see some examples of
1> the query you use
2> the data you put in the field for a document that matches and one
that doesn't

did you re-index after each field type change?

One observation: the KeywordTokenizerFactory will NOT produce individual
tokens. So if you index the value "my dog has fleas", 'my', 'dog', 'fleas' will
not match, only the fq;"my dog has fleas" would match.

which directly contradicts your statement that more stuff than should
be is getting
returned, so my first guess is that you're not re-indexing....

The analysis page from the admin page is invaluable for understanding
what the effects
of various analysis chains are....

 Best
Erick

On Fri, May 13, 2011 at 11:26 AM, davaugust <daugust...@jaggedpeak.com> wrote:
> I've recently installed solr and built an index.  It's working for the most
> part, but no matter what I do, I can't seem to get filter queries where the
> filtered value is multiple words to work.  By work I mean to literally
> filter exactly by the phrase provided in "fq".
>
> After trying many different things, here's the most recent field type I'm
> trying:
>
> <fieldType name="text_exact" class="solr.TextField"
> positionIncrementGap="100" sortMissingLast="true" omitNorms="true">
>      <analyzer type="index">
>        <tokenizer class="solr.KeywordTokenizerFactory"/>
>        <filter class="solr.LowerCaseFilterFactory" />
>        <filter class="solr.TrimFilterFactory" />
>      </analyzer>
>      <analyzer type="query">
>        <tokenizer class="solr.KeywordTokenizerFactory" />
>        <filter class="solr.LowerCaseFilterFactory" />
>        <filter class="solr.TrimFilterFactory" />
>      </analyzer>
>    </fieldType>
>
> When I fq by a multi word string, it does something, but returns many
> results with values not in the FQ
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/Multi-Word-Filter-Queries-tp2935451p2935451.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>

Reply via email to