-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I have "harry" as a protected word in protword.txt

Here is the xml definition for my text column

<fieldType name="text" class="solr.TextField" positionIncrementGap="100">
    <analyzer type="index">
        <tokenizer class="solr.WhitespaceTokenizerFactory" />
        <filter class="solr.StopFilterFactory" ignoreCase="true"
words="stopwords.txt" />
        <filter class="solr.WordDelimiterFilterFactory"
generateWordParts="1" generateNumberParts="1" catenateWords="1"
catenateNumbers="1" catenateAll="0" splitOnCaseChange="1" />
        <filter class="solr.LowerCaseFilterFactory" />
        <filter class="solr.EnglishPorterFilterFactory"
protected="protwords.txt" />
        <filter class="solr.RemoveDuplicatesTokenFilterFactory" />
    </analyzer>
    <analyzer type="query">
        <tokenizer class="solr.WhitespaceTokenizerFactory" />
        <filter class="solr.SynonymFilterFactory"
synonyms="synonyms.txt" ignoreCase="true" expand="true" />
        <filter class="solr.StopFilterFactory" ignoreCase="true"
words="stopwords.txt" />
        <filter class="solr.WordDelimiterFilterFactory"
generateWordParts="1" generateNumberParts="1" catenateWords="0"
catenateNumbers="0" catenateAll="0" splitOnCaseChange="1" />
        <filter class="solr.LowerCaseFilterFactory" />
        <filter class="solr.EnglishPorterFilterFactory"
protected="protwords.txt" />
        <filter class="solr.RemoveDuplicatesTokenFilterFactory" />
    </analyzer>
</fieldType>

On 08/09/10 11:29, Grijesh.singh wrote:
> 
> U have not provided much detail about analysis of that field,but I am sure
> that problem because of stemming
> u can see by analysis page or by debugQuery=on parameter.
> 
> To prevent stemming u have to put words in protword.txt on which u do not
> need any stemming
> 
> -----
> Grijesh
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkyHaHIACgkQLOut9Un89NmR6wCgjOS+znMEqUQKn3ACzWudAaa4
faMAn2d0LX76ZBmiL+j/EtmVpvIpHiub
=5ymy
-----END PGP SIGNATURE-----

Attachment: 0x49FCF4D9.asc
Description: application/pgp-keys

Attachment: 0x49FCF4D9.asc.sig
Description: PGP signature

Reply via email to