Hi all,

I have a docs that's indexed by text field with mention schema.

I have those docs names:

-          Test host

-          Test_host

-          Test-host

-          Test $host

When I'm trying to do exact search like: "test host"
All the results from above are shown as a results.

How can I use exact match so I'll will get only one result?

I prefer to do my changes in search time but if I need to change my schema 
please offer that.

Thanks,
Shay.


This is my schema:
        <fieldType name="text_general" class="solr.TextField" 
positionIncrementGap="100">
            <analyzer type="index">
                <tokenizer class="solr.KeywordTokenizerFactory"/>
                <filter class="solr.WordDelimiterFilterFactory" 
splitOnNumerics="0" splitOnCaseChange="0"
                        preserveOriginal="1"/>
                <filter class="solr.LowerCaseFilterFactory"/>
            </analyzer>
            <analyzer type="query">
                <tokenizer class="solr.KeywordTokenizerFactory"/>
                <filter class="solr.WordDelimiterFilterFactory" 
splitOnNumerics="0" splitOnCaseChange="0"
                        preserveOriginal="1"/>
                <filter class="solr.LowerCaseFilterFactory"/>
            </analyzer>
        </fieldType>


Reply via email to