lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley (JIRA)" <>
Subject [jira] [Commented] (SOLR-8627) Retrieve position ranking in json facets
Date Tue, 02 Feb 2016 22:47:39 GMT


Yonik Seeley commented on SOLR-8627:

For an API, perhaps adding bucketVals and bucketPos parameters?
bucketPos:true  // returns the position of the bucket in the full list of buckets

And in the response, each bucket could have a "pos" attribute if bucketPos==true (since bucketVals
by itself can still be useful).

> Retrieve position ranking in json facets
> ----------------------------------------
>                 Key: SOLR-8627
>                 URL:
>             Project: Solr
>          Issue Type: New Feature
>          Components: Facet Module
>            Reporter: Pablo Anzorena
> It would be fantastic to have the position (in terms of a specific stat or count) ranking
in the json facets. Let's suppose we have the field "client" of type string and we make a
facet to see the top 10 (limit:10, offset:0), so the first bucket will have the ranking 1,
the second bucket will have the ranking 2, and so on. Now we ask for the top 10 starting from
10 (limit:10, offset:10) so the first bucket will have the ranking 11, the second one ranking
12, and so on. Until now, there is no big deal, you just sum the offset with the bucket position.
> But what happens if I want to know the ranking of a specific client (or a list of them)?
One possible way would be to ask for all clients (limit:-1), but it will have performance
issues on fields with big cardinality.
> So, I'm asking for an option that receives a list of terms and a stat, and returns the
list of terms with their respective position (or ranking) that produce the query.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message