Home | About | Sematext search-lucene.com search-hadoop.com
 Search Lucene and all its subprojects:

Switch to Plain View
Solr, mail # user - Re: Minimum Score


+
Kissue Kissue 2011-08-04, 21:44
+
Darren Govoni 2011-08-04, 22:18
+
Kissue Kissue 2011-08-05, 08:45
Copy link to this message
-
Re: Minimum Score
Martijn v Groningen 2011-08-05, 12:33
As far as I know there is no built-in solution for this like there is for
max score.
An alternative approach to the one already mentioned is to send a second
request with rows=1 and sort=score asc
This will return the lowest scoring document and you can then retrieve the
score from that document (if fl=*, score).

Martijn

On 5 August 2011 10:45, Kissue Kissue <[EMAIL PROTECTED]> wrote:

> But that would mean returning all the results without pagination which i
> dont want to do. I am looking for a way to do it without having to return
> all the results at once.
>
> Thanks.
>
> On Thu, Aug 4, 2011 at 11:18 PM, Darren Govoni <[EMAIL PROTECTED]>
> wrote:
>
> > Off the top of my head you "maybe" you can get the number of results and
> > then
> > look at the last document and check its score. I believe the results will
> > be ordered by score?
> >
> >
> > On 08/04/2011 05:44 PM, Kissue Kissue wrote:
> >
> >> Hi,
> >>
> >> I am using Solr 3.1 with the SolrJ client library. I can see that it is
> >> possible to get the maximum score for your search by using the
> following:
> >>
> >> response.getResults().**getMaxScore()
> >>
> >> I am wondering is there some simple solution to get the minimum score?
> >>
> >> Many thanks.
> >>
> >>
> >
>

--
Met vriendelijke groet,

Martijn van Groningen