lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Naber <lucenelist2...@danielnaber.de>
Subject Re: Position of a word in a document?
Date Mon, 15 May 2006 18:22:30 GMT
On Montag 15 Mai 2006 14:54, Franz Coriand wrote:

> is it possible not only to get the document which contains the words of
> a query, but also get the position in the text of the query word?

Yes, by using the term vectors with positions that were added in Lucene 1.9 
(see class Field.TermVector). Or you could re-analyze the text and iterate 
over the tokens returned by the analyzer.

Regards
 Daniel

-- 
http://www.danielnaber.de

---------------------------------------------------------------------
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