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 Tue, 16 May 2006 20:09:19 GMT
On Dienstag 16 Mai 2006 18:42, Franz Coriand wrote:

> "private boolean storeTermVector = true;"
> "private boolean storePositionWithTermVector = true;"

Use the optional Field.TermVector parameter in the Field constructor.

> But how can I retrieve this information during my search process???
> I retrieve an object of the Typ Document ... but this object doesn't
> have a "getPosition()" or "getTermVector()" methode?!

IndexReader has the appropriate get... methods.

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