Thanks for your reply Erick.

I create a simple field type as below for testing and added 'junk' to the
stopwords but it doesnt seem to honor it when using fuzzzy search

Btw, I am using qf along with edismax and pass the value in q (sample query
below).

/solr/collection1/select?qf=title_autoComplete&hl=false&fl=productName&defType=edismax&q=junk~&debug=true&mm=100%25&sort=defaultMarketingSequence%20asc&rows=1


 <fieldType name="fuzzyType" class="solr.TextField">
        <analyzer type="index">
            <tokenizer class="solr.WhitespaceTokenizerFactory"/>
            <filter class="solr.LowerCaseFilterFactory"/>
            <filter class="solr.StopFilterFactory" words="stopwords.txt"
ignoreCase="true"/>
        </analyzer>
        <analyzer type="query">
            <tokenizer class="solr.WhitespaceTokenizerFactory"/>
            <filter class="solr.LowerCaseFilterFactory"/>
            <filter class="solr.StopFilterFactory" words="stopwords.txt"
ignoreCase="true"/>
        </analyzer>
    </fieldType>


<doc>
<str name="productName">
 Headphone *Jack* Adapter Cable
</str>
</doc>
</result>
<lst name="debug">
<str name="rawquerystring">junk~</str>
<str name="querystring">junk~</str>
<str name="parsedquery">
(+DisjunctionMaxQuery((title_autoComplete:junk~2)))/no_coord
</str>
<str name="parsedquery_toString">+(title_autoComplete:junk~2)</str>
<lst name="explain">
<str name="prod8730332!sku8040542">
1.5424817 = sum of: 1.5424817 = weight(title_autoComplete:jack in 190)
[SchemaSimilarity], result of: 1.5424817 = score(doc=190,freq=1.0 =
termFreq=1.0 ), product of: 0.5 = boost 3.0849633 = idf, computed as log(1 +
(docCount - docFreq + 0.5) / (docFreq + 0.5)) from: 37.0 = docFreq 819.0 =
docCount 1.0 = tfNorm, computed as (freq * (k1 + 1)) / (freq + k1) from: 1.0
= termFreq=1.0 1.2 = parameter k1 0.0 = parameter b (norms omitted for
field)
</str>
</lst>



--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Reply via email to