lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Willnauer <simon.willna...@googlemail.com>
Subject Re: hit highlighting in lucene
Date Sun, 07 Feb 2010 10:52:46 GMT
Rohit,
what kind of problems are you facing with using fuzzy query and highlighting.
could you give us more details and maybe a small code snipped which
isolates you problem?

simon

On Sun, Feb 7, 2010 at 11:32 AM, Rohit Banga <iamrohitbanga@gmail.com> wrote:
> but what about the case in which i am using fuzzy query matching. then the
> highlighter package does not work.
>
> On Sat, Feb 6, 2010 at 8:12 PM, Uwe Schindler <uwe@thetaphi.de> wrote:
>
>> There are two contrib packages for highlighting in the lucene distribution:
>> highlighter and fast-vector-highlighter
>>
>> -----
>> Uwe Schindler
>> H.-H.-Meier-Allee 63, D-28213 Bremen
>> http://www.thetaphi.de
>> eMail: uwe@thetaphi.de
>>
>>
>> > -----Original Message-----
>> > From: Rohit Banga [mailto:iamrohitbanga@gmail.com]
>> > Sent: Saturday, February 06, 2010 2:27 PM
>> > To: java-user@lucene.apache.org
>> > Subject: hit highlighting in lucene
>> >
>> > Hi friends
>> >
>> > I have just started using lucene and the way i want to use it is the
>> > following:
>> >
>> > 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
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-user-help@lucene.apache.org
>>
>>
>
>
> --
> Rohit Banga
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message