You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Patricio Galeas <ga...@informatik.uni-siegen.de> on 2005/08/17 19:57:25 UTC
saving additional data in the index .....????
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));
...to 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/Field.java????)” 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 =
termPositionVector.getTermPositionsStatistics(wordIndex)
Have somebody any idea?
thank you in advance.
Patricio
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org