age-
From: Erick Erickson [mailto:erickerick...@gmail.com]
Sent: 09 June 2016 22:43
To: solr-user
Subject: Re: Returned number of result rows as a function of maxScore or
numFound.
Why do this at all? I have a hard time understanding what benefit this is to
the _user_.
And even returning 5
Why do this at all? I have a hard time understanding what benefit this
is to the _user_.
And even returning 5% is risky. I mean what happens for a query of
*:*? For a corpus of 100M docs that's still 5M documents which is
would hurt.
Sure, you say, well I'll cap it at XXX docs. The principle stil
I don't think you can do such a thing ootb with solr but this is pretty
easy to achieve using a custom search component.
Just write some custom code which will limit your resultset and plug it
into your request handler as the last component.
On Thu, 9 Jun 2016, 08:53 Prasanna Josium,
wrote:
> H
Hi,
I use a dse stack with has solr4.10.
I want to control the number of rows from result set as a percent of the max
hit 'numFound' or 'maxScore' for a query.
e.g.,
1) for a query 'foo', if I get 100 hits and if I want to get the top 5%
percent (say rows=5%). Then I get only 5 rows.
for a quer