Re: Omitting term frequencies while preserving positions

2013-08-06 Thread Ivan Brusic
Thanks Simon. I did not imagine the dependency was as simple as that. Still grokking all the Lucene 4.x changes, although this issue has always been present in Lucene. -- Ivan On Mon, Aug 5, 2013 at 9:58 PM, Simon Willnauer wrote: > the reason why you can't omit it today is that $num_position

Re: Omitting term frequencies while preserving positions

2013-08-05 Thread Simon Willnauer
the reason why you can't omit it today is that $num_position == $term_frequency ie. we need to store it anyways. Yet, I kind of agree that this is an impl detail so we could in theory return 1 as the TF from the DocsAndPosEnum but this would break our APIs as well since DocsAndPositionsEnum require