lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From baris.ka...@oracle.com
Subject Re: ComplexPhraseQueryParser performance question
Date Tue, 04 Feb 2020 04:25:15 GMT
How can this slowdown be resolved?
is this another limitation of this class?
Thanks

> On Feb 3, 2020, at 4:14 PM, BARIS.KAZAR@oracle.com wrote:
> 
> ´╗┐Please ignore the first comparison there. i was comparing there {term1 with 2 chars}
vs {term1 with >= 5 chars + term2 with 1 char}
> 
> 
> The slowdown is
> 
> The query "term1 term2*" slows down 400 times (~1500 millisecs) compared to "term1*"
when term1 has >5 chars and term2 is still 1 char.
> 
> Best regards
> 
> 
>> On 2/3/20 4:13 PM, baris.kazar@oracle.com wrote:
>> Hi,-
>> 
>>  i hope everyone is doing great.
>> 
>> I saw this issue with this class such that if you search for "term1*"  it is good,
(i.e., 4 millisecs when it has >= 5 chars and it is ~250 millisecs when it is 2 chars)
>> 
>> but when you search for "term1 term2*" where when term2 is a single char, the performance
degrades too much.
>> 
>> The query "term1 term2*" slows down 50 times (~200 millisecs) compared to "term1*"
case when term 1 has >5 chars and term2 is still 1 char.
>> 
>> The query "term1 term2*" slows down 400 times (~1500 millisecs) compared to "term1*"
when term1 has >5 chars and term2 is still 1 char.
>> 
>> Is there any suggestion to speed it up?
>> 
>> Best regards
>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-user-help@lucene.apache.org
>> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
> 


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