Hi,

I was just wondering if you are sure that you query only that field (or fields that use your text_stem analyzer) and not other fields (in your qf for example is you use edismax) that can give you uncorrect results.

Regards,

Aurélien

Le 16/06/2016 22:29, Jamal, Sarfaraz a écrit :
Hello =)

Just to be safe and make sure it's happening at indexing time AS WELL as 
QUERYING time -

I modified it to be like so:

   <fieldType name="text_stem" class="solr.TextField">
                <analyzer type="index">
                  <tokenizer class="solr.StandardTokenizerFactory"/>
                  <filter class="solr.StopFilterFactory" words="lang/stopwords_en.txt" 
ignoreCase="true"/>
                  <filter class="solr.LowerCaseFilterFactory"/>
                  <filter class="solr.EnglishPossessiveFilterFactory"/>
                  <filter class="solr.KeywordMarkerFilterFactory" 
protected="protwords.txt"/>
                  <filter class="solr.SnowballPorterFilterFactory"/>
                </analyzer>
                <analyzer type="query">
                  <tokenizer class="solr.StandardTokenizerFactory"/>
                  <filter class="solr.StopFilterFactory" words="lang/stopwords_en.txt" 
ignoreCase="true"/>
                  <filter class="solr.LowerCaseFilterFactory"/>
                  <filter class="solr.EnglishPossessiveFilterFactory"/>
                  <filter class="solr.KeywordMarkerFilterFactory" 
protected="protwords.txt"/>
                  <filter class="solr.SnowballPorterFilterFactory"/>
                </analyzer>                               
   </fieldType>

I am re-indexing the files
And what do you mean about only querying one field? I am not entirely sure I 
understand..

Sas

-----Original Message-----
From: Aurélien MAZOYER [mailto:aurelien.mazo...@francelabs.com]
Sent: Thursday, June 16, 2016 4:20 PM
To: solr-user@lucene.apache.org
Subject: [E] Re: Stemming

Hi,

Yes you should have the same resultset.

Are you sure that you reindex all the data after changing your schema?
Are you sure that you put your analyzer both at indexing and querying?
Are you sure you query only one field?

Regards,

Aurélien

Le 16/06/2016 21:13, Jamal, Sarfaraz a écrit :
Hi Guys,

I have enabled stemming:
    <fieldType name="text_stem" class="solr.TextField">
                <analyzer>
                <tokenizer class="solr.WhitespaceTokenizerFactory"/>
                <filter class="solr.SnowballPorterFilterFactory" 
language="English"/>
                </analyzer>
    </fieldType>

In the Admin Analysis, I type in running or runs and they both break down to 
run.
However when I search for run, runs, or running with an actual query -

It brings back three different sets of results.

Is that correct?

I would imagine that all three would bring back the exact same resultset?

Sas


Reply via email to