> I tried adding the initial letter of each word to a
> new document field (per
> Anders Nielsen's suggestion), and it worked well;
> however, I need to be able
> to know which phrases produced the match. It seems
> to me (although I may be
> overlooking something) that now I only have access
> to the initials, and
> can't retrieve the original words. If I search for
> 'POS' I can determine
> which documents contain matches, but I can't tell
> which document contains
> "point of sale" and which contains "part of speech".
You could actually add two fields per document, one
field ("Acronym") will contain only the first
character of each word while the other field ("Text")
contains the full words.
This way, as long as you have the TermPosition of the
match on "Acronym", you will know exactly which words
matched by looking up the words at the exact same
TermPosition in "Text".
__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger.
http://im.yahoo.com
_______________________________________________
Lucene-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/lucene-users