[ 
https://issues.apache.org/jira/browse/SOLR-11706?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hoss Man updated SOLR-11706:
----------------------------
    Attachment: SOLR-11706.patch

bq. Perhaps a bug at the user level, but more of a "not implemented yet" at the 
development level.

Well ... presumably, in the absence of any official documentation (yet), you 
would understand if people trusted that the things you wrote on your own 
website would be accurate since you created JSON Faceting -- and [you've 
explicitly said|http://yonik.com/solr-facet-functions/]:

bq. Numeric aggregation functions such as avg can be on any numeric field, or 
on another function of multiple numeric fields.

There's a pretty big difference between "any numeric field" and "any single 
valued numeric field"

...even taking into account that was written in 2015 (maybe?) before things 
like IntPointField existed -- it doesn't seem to work with any multivalued trie 
fields either.

bq. Now in MinMaxAgg, we deal with fields separately from functions....

I'm not really following what your point about MinMaxAgg is.  IIUC you're 
saying: "None of the numeric aggs work with multivalued fields, but min & max 
don't work for a diff reason (and fail with a slightly diff error message) then 
things like 'sum'" ?

bq. use the same strategy for all the stats (fine if we only care about 
multi-valued fields and not multi-valued functions)

I'm not really sure what it would mean to "care about ... multi-valued 
functions" -- AFAIK we've never had any multivalued functions? .. are you just 
hypothosising that maybe someday we could?


----

FWIW: The attached patch includes some trivial additions to TestJsonFacets to 
demonstrate some of the diff types of failures that can happen when runing to 
use min or sum on multivalued fields, as well as some suick and dirty attempts 
to generalize StatsComponentTest to show equivilences with json.facet (i 
originally hoped to flesh the StatsComponentTest changes out so the whole 
testcase demonstrated this across the board, but ran into this problem so 
quickly only one test method has been updated)


> JSON FacetModule can't compute stats (min,max,etc...) on multivalued fields
> ---------------------------------------------------------------------------
>
>                 Key: SOLR-11706
>                 URL: https://issues.apache.org/jira/browse/SOLR-11706
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Hoss Man
>         Attachments: SOLR-11706.patch
>
>
> While trying to write some tests demonstrating equivalences between the 
> StatsComponent and the JSON FacetModule i discovered that the FacetModules 
> stat functions (min, max, etc...) don't seem to work on multivalued fields.
> Based on the stack traces, i gather the problem is because the FacetModule 
> seems to rely exclusively on using the "Function" parsers to get a value 
> source -- apparently w/o any other method of accumulating numeric stats from 
> multivalued (numeric) DocValues?



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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

Reply via email to