lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Naber <>
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.



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message