lucene-dev mailing list archives

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

    [ https://issues.apache.org/jira/browse/SOLR-8627?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15129226#comment-15129226
] 

Yonik Seeley commented on SOLR-8627:
------------------------------------

For an API, perhaps adding bucketVals and bucketPos parameters?
{code}
type:field,
field:customer,
[...]
bucketVals:["customer10","customer345","customer72"],
bucketPos:true  // returns the position of the bucket in the full list of buckets
{code}

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: https://issues.apache.org/jira/browse/SOLR-8627
>             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
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message