lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "dyzc" <>
Subject 回复: Why does this query slow down Lucene?
Date Fri, 17 Aug 2012 00:27:23 GMT
Yes. The query is bit long, which is the major reason.

------------------ 原始邮件 ------------------
发件人: "Trejkaz"<>;
发送时间: 2012年8月16日(星期四) 中午11:09
收件人: "java-user"<>; 

主题: Re: Why does this query slow down Lucene?

On Thu, Aug 16, 2012 at 11:27 AM, zhoucheng2008 <> wrote:
> +(title:21 title:a title:day title:once title:a title:month)

Looks like you have a fairly big boolean query going on here, and some
of the terms you're using are really common ones like "a".

Are you using AND or OR for the default operator? I think AND was
significantly faster.

I would also consider culling stop words to get things like "a" out of
the picture.

I also find it interesting that Lucene doesn't normalise title:a
title:a to title:a^2 or something. :)


To unsubscribe, e-mail:
For additional commands, e-mail:
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message