You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Mark Schoy <he...@gmx.de> on 2011/12/05 10:32:27 UTC

Stemming - How to add tokens and dont replace the existing tokens?

Hi,

I like to use the HunspellStemFilterFactory to improve my search results.
Why isn't there an arg "inject" like in solr.PhoneticFilterFactory to
add tokens instead of replacing them?

I don't want to replace them, because documents with the "unstemmed"
word should be more relevant.

Thanks.

Re: Stemming - How to add tokens and dont replace the existing tokens?

Posted by Mark Schoy <he...@gmx.de>.
Hi Marian,

thanks for your answer.
Using a copyField is a good idea.

Mark

2011/12/5 Marian Steinbach <ma...@gmail.com>:
> Hi Mark!
>
> You could help yourself with creating an additional field. One field would
> hold the stemmed version and the other one would hold the unstemmed
> version.
>
> This would allow for a higher boost on the unstemmed field.
>
> Use copyField for convenience to copy the content from one field to the
> other one.
>
> Marian
>
>
> 2011/12/5 Mark Schoy <he...@gmx.de>
>
>> Hi,
>>
>> I like to use the HunspellStemFilterFactory to improve my search results.
>> Why isn't there an arg "inject" like in solr.PhoneticFilterFactory to
>> add tokens instead of replacing them?
>>
>> I don't want to replace them, because documents with the "unstemmed"
>> word should be more relevant.
>>
>> Thanks.
>>

Re: Stemming - How to add tokens and dont replace the existing tokens?

Posted by Marian Steinbach <ma...@gmail.com>.
Hi Mark!

You could help yourself with creating an additional field. One field would
hold the stemmed version and the other one would hold the unstemmed
version.

This would allow for a higher boost on the unstemmed field.

Use copyField for convenience to copy the content from one field to the
other one.

Marian


2011/12/5 Mark Schoy <he...@gmx.de>

> Hi,
>
> I like to use the HunspellStemFilterFactory to improve my search results.
> Why isn't there an arg "inject" like in solr.PhoneticFilterFactory to
> add tokens instead of replacing them?
>
> I don't want to replace them, because documents with the "unstemmed"
> word should be more relevant.
>
> Thanks.
>