You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Klaus <kl...@vommond.de> on 2006/01/19 17:29:38 UTC
Analyzer
Hi,
Is there a way to get the unstemmed term out of the lucene index, or do I
have to change the analyzer, to save the original term and the stemmed one?
Thank,
Klaus
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: Analyzer
Posted by Stéphane Lagraulet <sl...@cardiweb.com>.
Yonik,
You're right, it's unecessary unless you want to search on both (so
index both), as you said in your other message
SL
Yonik Seeley a écrit :
> On 1/19/06, Stéphane Lagraulet <sl...@cardiweb.com> wrote:
>
>> Hi,
>> You'd better use 2 fields, one analysed and not stored, and the other
>> one only stored.
>>
>
> There is no need for that. A single field that is both indexed and
> stored will give you the same ting.
>
> -Yonik
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: Analyzer
Posted by Yonik Seeley <ys...@gmail.com>.
On 1/19/06, Stéphane Lagraulet <sl...@cardiweb.com> wrote:
> Hi,
> You'd better use 2 fields, one analysed and not stored, and the other
> one only stored.
There is no need for that. A single field that is both indexed and
stored will give you the same ting.
-Yonik
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: Analyzer
Posted by Stéphane Lagraulet <sl...@cardiweb.com>.
Hi,
You'd better use 2 fields, one analysed and not stored, and the other
one only stored.
So you perform the query on the analysed field and present the other
field (not stemmed) in the result.
Stephan Lagraulet
Klaus a écrit :
> Hi,
>
> Is there a way to get the unstemmed term out of the lucene index, or do I
> have to change the analyzer, to save the original term and the stemmed one?
>
> Thank,
>
> Klaus
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: Analyzer
Posted by Yonik Seeley <ys...@gmail.com>.
Do you want to search for the unstemmed term, or just be able to retrieve it?
When you retrieve a document, you get the un-analyzed original fields.
If you want to index both the stemmend and unstemmed terms, the
easiest way is to add the field twice (the second time using a
different field name) and use different analyzers for the different
fields.
-Yonik
On 1/19/06, Klaus <kl...@vommond.de> wrote:
> Hi,
>
> Is there a way to get the unstemmed term out of the lucene index, or do I
> have to change the analyzer, to save the original term and the stemmed one?
>
> Thank,
>
> Klaus
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org