Hi Lavanya,
This is probably due to the kstem Filter factory it is removing the y charactor 
,since the stemmer has rule of words ending with y .


Regards,
Aman Deep Singh

> On 21-Jan-2019, at 5:43 PM, Mikhail Khludnev <m...@apache.org> wrote:
> 
> querystring  is what goes into QPaser,  parsedquery  is
> LuceneQuery.toString()
> 
> On Mon, Jan 21, 2019 at 3:04 PM Lavanya Thirumalaisami
> <lav...@yahoo.co.in.invalid> wrote:
> 
>> Hi,
>> Our solr search is not returning expected results for keywords ending with
>> the character 'y'.
>> For example keywords like battery, way, accessory etc.
>> I tried debugging the solr query in solr admin console and i find there is
>> a difference between query string and parsed query.
>> "querystring":"battery","parsedquery":"batteri",
>> Also I find that if i search omitting the character y i am getting all the
>> results.
>> This happens only for keywords ending with Y and most others we donot have
>> this issue.
>> Could any one please help me understand why is the keywords gets changed,
>> specially the last character. Is there any issues in my field type
>> definition.
>> While indexing the data we use the text data type and we have defined as
>> follows
>> <fieldType class="solr.TextField" name="ctext"
>> positionIncrementGap="100"> <analyzer type="index"> <tokenizer
>> class="solr.WhitespaceTokenizerFactory" /> <filter
>> class="solr.LowerCaseFilterFactory" /> <filter
>> class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true"
>> expand="true"/> <filter class="solr.StopFilterFactory" ignoreCase="true"
>> words="stopwords.txt" /> <filter catenateAll="1" catenateNumbers="1"
>> catenateWords="1" class="solr.WordDelimiterFilterFactory"
>> generateNumberParts="0" generateWordParts="0" preserveOriginal="1"
>> splitOnCaseChange="0" splitOnNumerics="0" /> <filter
>> class="solr.RemoveDuplicatesTokenFilterFactory" /> <filter
>> class="solr.KStemFilterFactory" /> <filter
>> class="solr.EdgeNGramFilterFactory" maxGramSize="255" minGramSize="1" />
>> <filter class="solr.ReverseStringFilterFactory" />  </analyzer> <analyzer
>> type="query"> <tokenizer class="solr.WhitespaceTokenizerFactory" /> <filter
>> class="solr.LowerCaseFilterFactory" /> <filter
>> class="solr.PorterStemFilterFactory" /> <filter
>> class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true"
>> expand="true"/> <filter class="solr.StopFilterFactory" ignoreCase="true"
>> words="stopwords.txt" /> <filter catenateAll="0" catenateNumbers="0"
>> catenateWords="0" class="solr.WordDelimiterFilterFactory"
>> generateNumberParts="0" generateWordParts="0" preserveOriginal="1"
>> splitOnCaseChange="0" splitOnNumerics="0" /> <filter
>> class="solr.KStemFilterFactory" /> </analyzer> </fieldType>
>> 
>> Regards,Lavanya
> 
> 
> 
> -- 
> Sincerely yours
> Mikhail Khludnev

Reply via email to