Re: Offsets in 3.6/4.0

2012-07-17 Thread karsten-solr
Dear Carsten, your question was about the purpose of the offset-Attribute and the reader.getTermFreqVector method. You have asked because this method is not very fast. imho main reason for TermFreqVectors is highlighting. (FastVectorHighlighter and DefaultSolrHighlighter#doHighlightingByHighligh

Re: Offsets in 3.6/4.0

2012-07-17 Thread Carsten Schnober
Am 16.07.2012 13:07, schrieb karsten-s...@gmx.de: Dear Karsten, > 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

Re: Offsets in 3.6/4.0

2012-07-16 Thread karsten-solr
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 usi

Offsets in 3.6/4.0

2012-07-13 Thread Carsten Schnober
Dear list, I am working on a search application that depends on retrieving offsets for each match. Currently (in Lucene 3.6), this seems to be overly costly, at least in my solution that looks like this: --- TermPositionVector tfv