lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rohit Banga <>
Subject hit highlighting in lucene
Date Sat, 06 Feb 2010 13:27:06 GMT
Hi friends

I have just started using lucene and the way i want to use it is the

i have documents consisting of names of users as one field.
i have a sentence that may contain the name of some user.
i perform a search for the sentence in the index using the searcher.
if it contains the name of the user, then that user's document is listed on
top by lucene.

now i want to determine the position in the sentence where the string has
been found.

i am using fuzzy query matching by adding the character '~' to the sentence
i am searching.
so this means i cannot use the find function of the String class as is to
get the position of the match.

Thanks in advance

Rohit Banga

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message