You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by John <fa...@gmail.com> on 2011/09/02 17:20:04 UTC

Limit total found results

Hi,

In my search application, I sometimes get more than 200k matches for a
specific query.
Although I only present the first 20, I still run over the entire 200k
because I use my own Similarity function.

Is there a way to make this search smarter? I thought limiting the total
possible matches to 50-100k, but couldn't find how to set it up in Solr. Any
ideas?

Is there anything else I can do?

Thanks,
John

Re: Limit total found results

Posted by John <fa...@gmail.com>.
Hi Erick,

Hence my second question. Is there anything else I can do?

Lev

On Sun, Sep 4, 2011 at 3:23 AM, Erick Erickson <er...@gmail.com>wrote:

> First question is whether you want to. There are ways to stop the
> search, but how do you know that the last document of your 200K
> isn't the most relevant? There's no way I know to determine that
> without examining all the docs.
>
> Best
> Erick
>
> On Fri, Sep 2, 2011 at 11:20 AM, John <fa...@gmail.com> wrote:
> > Hi,
> >
> > In my search application, I sometimes get more than 200k matches for a
> > specific query.
> > Although I only present the first 20, I still run over the entire 200k
> > because I use my own Similarity function.
> >
> > Is there a way to make this search smarter? I thought limiting the total
> > possible matches to 50-100k, but couldn't find how to set it up in Solr.
> Any
> > ideas?
> >
> > Is there anything else I can do?
> >
> > Thanks,
> > John
> >
>

Re: Limit total found results

Posted by Erick Erickson <er...@gmail.com>.
First question is whether you want to. There are ways to stop the
search, but how do you know that the last document of your 200K
isn't the most relevant? There's no way I know to determine that
without examining all the docs.

Best
Erick

On Fri, Sep 2, 2011 at 11:20 AM, John <fa...@gmail.com> wrote:
> Hi,
>
> In my search application, I sometimes get more than 200k matches for a
> specific query.
> Although I only present the first 20, I still run over the entire 200k
> because I use my own Similarity function.
>
> Is there a way to make this search smarter? I thought limiting the total
> possible matches to 50-100k, but couldn't find how to set it up in Solr. Any
> ideas?
>
> Is there anything else I can do?
>
> Thanks,
> John
>