lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From karsten-s...@gmx.de
Subject Re: Offsets in 3.6/4.0
Date Mon, 16 Jul 2012 11:07:17 GMT
Dear Carsten,

abstract of your post:
you need the offset to perform your search/ranking like the position is needed for phrase
queries.
You are using reader.getTermFreqVector to get the offset. 
This is to slow for your application and you think about a switch to version 4.0


imho you should using payloads.
You also could switch to version 4 because in version you can store the offset to each term
like the position in version 3x.
But this is basically the same as the use of payloads:
 * http://lucene.apache.org/core/3_6_0/fileformats.html#Positions
 * http://lucene.apache.org/core/4_0_0-ALPHA/core/org/apache/lucene/codecs/lucene40/Lucene40PostingsFormat.html#Positions


Best regards
  Karsten

P.S. in context:
http://lucene.472066.n3.nabble.com/Offsets-in-3-6-4-0-td3994830.html


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