lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grant Ingersoll <gsing...@apache.org>
Subject Re: Make TermScorer non final
Date Wed, 18 Mar 2009 10:46:46 GMT
See https://issues.apache.org/jira/browse/LUCENE-1017 for some  
background.  Have you measured BTQ versus the SpanTermQuery?  Position  
based stuff is often slower.

SpanQueries could use some performance assessments, that is for sure.   
Ideally, I think you should compare:
TermQuery v. SpanTQ v. BTQ

-Grant


On Mar 18, 2009, at 5:43 AM, Simon Willnauer wrote:

> 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  
> <gsingers@apache.org> 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: java-dev-unsubscribe@lucene.apache.org
>>> For additional commands, e-mail: java-dev-help@lucene.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-dev-help@lucene.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-dev-help@lucene.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message