Nothing different, I'm just concerned about the performance as the SpanQuerys take about twice as long as a term query. I run a little benchmark and found BoostingTermQuery being 1.5 times slower than TermQuery without any payloads in the index. In some usecases this could be important especially where the power of a span query is not required.
Maybe I miss something, if so please let me know. simon On Tue, Mar 17, 2009 at 11:15 PM, Grant Ingersoll <[email protected]> wrote: > What does PayloadTermQuery do that BoostingTermQuery doesn't do? > > -Grant > > On Mar 17, 2009, at 1:27 PM, Simon Willnauer wrote: > >> Hi, I looked at TermScorer today in order implement a TermQuery to >> utilize Payloads from the index. >> I realized that this class is final in the current trunk. It's kind of >> obvious that is is declared final for optimization purposes. >> I wanna know if it is possible to make it non final in the next >> release or later to use it in a PayloadTermQuery class. >> I would like to reuse this code and do some additional cleanups like >> remove the code redundancy in score() / score(HitCollector, int). >> >> Thanks, >> Simon >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
