Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Lucene: Java-User

Why does this query slow down Lucene?

 

 

Lucene java-user RSS feed   Index | Next | Previous | View Threaded


zhoucheng2008 at gmail

Aug 15, 2012, 6:27 PM

Post #1 of 3 (213 views)
Permalink
Why does this query slow down Lucene?

Hi,


I have the string "$21 a Day Once a Month" to search on a large index.


I escape the $ sign, and the query string looks like:


+level:0 +(title:21 title:a title:day title:once title:a title:month) release_year:1941 code:movieverycd126087


This slows down Lucene. Any idea?


Thanks,
Cheng


fancyerii at gmail

Aug 15, 2012, 6:59 PM

Post #2 of 3 (193 views)
Permalink
Re: Why does this query slow down Lucene? [In reply to]

how slow is it? are all your searches slow or only that query slow? how
many docs are indexed and the size of the indexes? whats the hardware
configuration?
you should describe it clearly to get help.
在 2012-8-16 上午9:28,"zhoucheng2008" <zhoucheng2008 [at] gmail>写道:

> Hi,
>
>
> I have the string "$21 a Day Once a Month" to search on a large index.
>
>
> I escape the $ sign, and the query string looks like:
>
>
> +level:0 +(title:21 title:a title:day title:once title:a title:month)
> release_year:1941 code:movieverycd126087
>
>
> This slows down Lucene. Any idea?
>
>
> Thanks,
> Cheng


trejkaz at trypticon

Aug 15, 2012, 8:09 PM

Post #3 of 3 (192 views)
Permalink
Re: Why does this query slow down Lucene? [In reply to]

On Thu, Aug 16, 2012 at 11:27 AM, zhoucheng2008 <zhoucheng2008 [at] gmail> 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. :)

TX

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
For additional commands, e-mail: java-user-help [at] lucene

Lucene java-user RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.