Hi Erick,
thanks for your reply, thats exactly how I implemented it - to me this
solution is pretty simple and I just want to know if there are any
pitfalls beside spanqueries :-)
Erick Erickson schrieb:
Take a look at the book Lucene In Action, particularly the
SynonymAnalyzer
example. It shows you how to store multiple tokens at the same offset
in a
document, and sounds like what you need. The basic idea is to use
SetNextPositionIncrement(0) on the 2-nth tokens you want to wind up in
the
same position.
At least that's my guess <G>..
Best
Erick
On 1/22/07, hannes <[EMAIL PROTECTED]> wrote:
Hi All,
I'm using the SnowballAnalyzer to "stemm" tokens - which is working
fine!
Now I got the requirement to also keep the original Tokens in the index
for search. According to this
http://mail-archives.apache.org/mod_mbox/lucene-java-user/200302.mbox/[EMAIL PROTECTED]
Mail, I extended the SnowballAnalyzer
in the way Eric described it.
Does anyone has experience in storing stemmed and original tokens in the
same field and same position? Is it the "right" way to do it?
I also found some Discussions about storing stemmed tokens in an extra
field, but that would mean I would have to rewrite the query ...
thanks
hannes
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]