lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anthony Eden ...@anthonyeden.com>
Subject Re: Field where the search term has been found?
Date Tue, 03 Jun 2003 14:37:02 GMT
I cannot find a way to do this via the API.

In addition to knowing which fields matched it would be good to be able 
to say where the match position starts and ends in each field.  This 
would make it easy to display search results with highlighted terms.

Sincerely,
Anthony Eden

Adriano Labate wrote:
> If a do a multi field search, is it possible to know the field name 
> where the search term has been found?
> 
> In my case I have documents containing several fields and I search
> for a term in all or a part of these fields.
> 
> What I would like to know is the name of the field(s) where the term 
> has been found, so that I can then display for example:
> 
> "Organization: ... bla bla TERM bla bla ..." "Category: TERM"
> 
> Any suggestions?
> 
> Regards, Adriano Labate
> 
> 
> 
> 
> ---------------------------------------------------------------------
>  To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org 
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org


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


Mime
View raw message