SOLR refuses to bring exact matches, How?

210 views Asked by At

I have the following field type (notice no filters, no tokenizers)

<fieldType name="text_names" class="solr.StrField" />

I create a field in my schema using that type:

<field name="exact_type" type="text_names" indexed="true" stored="true" />

now, I search q=*:*&fq=exact_type:aa&fl=exact_type I still get results which have other than 'aa' in the exact_type field.
What am I missing here?

Also this behaves the same:

q=exact_type:aa&fl=exact_type
1

There are 1 answers

0
Suryansh Purwar On

I don't think that "q=*:*" works with DisMaxHandler and I believe that you are using it ,the correct syntax for both the queries should be:

q=&fq=exact_type:aa&fl=exact_type

fq=exact_type:aa&fl=exact_type