[
https://issues.apache.org/jira/browse/SOLR-8627?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15130302#comment-15130302
]
Pablo Anzorena commented on SOLR-8627:
--------------------------------------
Yes, that's an excellent way of asking it.
One question, if bucketPos==false && bucketVals =
["customer10","customer345","customer72"], what is the behaviour? It brings you
just those 3 customers? If that is the behaviour, isn't it the same as asking
for a type:query (q:customer:("customer10" "customer345" "customer72")) and
then nest it with type:terms(field:customer) ?
The behaviour I think is the correct is: If you ask for a top 10 customers and
also add bucketVals
type:terms,
field:customer,
limit:10,
[...],
bucketVals:["customer10","customer345","customer72"]
then it will retrieve the top 10 customers and also these other 3 customers (if
they don't belong to the top 10). Also if bucketPos == true, it will have the
position of all of them.
What do you think?
> 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: [email protected]
For additional commands, e-mail: [email protected]