lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Patricio Galeas <>
Subject saving additional data in the index .....????
Date Wed, 17 Aug 2005 17:57:25 GMT
Hi All,
I have indexed a document collection using the option “WITH_POSITIONS”:

doc.add(new Field("contents", new FileReader(f),
Field.TermVector.WITH_POSITIONS)); get the positions in which each of the terms is found:

wordPositionsVector = termPositionVector.getTermPositions(wordIndex) ;

Now I would like to include two statistical parameters in the “Lucene
Index” containing additional information about the position of words on
the document.
It is possible to modify a “Lucene class (document/” to
save this additional information in the index?
My idea is to request the saved data later by the search process, ...
something like :

int[] wordPositionsStatistics =

Have somebody any idea?

thank you in advance.


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

View raw message