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

Mikhail Khludnev updated SOLR-8466:
-----------------------------------
    Attachment: SOLR-8466.patch

It seems like wasting a plenty of time on miserable thing.. 
Here is the fix for testTrieFields failure. In fact it failed on empty result. 
I just enabling handling empty values..
{code}
            if(mincount==0){
              topLevel.put("processEmpty", true);
            }
...
..
              //if((Integer)som.get("count") > 0) {
                SimpleOrderedMap<Object> asdf = (SimpleOrderedMap<Object>) 
som.get(field);

                List<SimpleOrderedMap<Object>> buckets = 
(List<SimpleOrderedMap<Object>>)asdf.get("buckets");
                for(SimpleOrderedMap<Object> b : buckets) {
                  counts.add(b.get("val").toString(), (Integer)b.get("count"));
                }
                if(missing) {
                  SimpleOrderedMap<Object> missingCounts = 
(SimpleOrderedMap<Object>) asdf.get("missing");
                  counts.add(null, (Integer)missingCounts.get("count"));
                }
             // } else if(missing) {
             //   counts.add(null, 0);
             // }

            }
{code}

> Add support for UnInvertedField based faceting to FacetComponent
> ----------------------------------------------------------------
>
>                 Key: SOLR-8466
>                 URL: https://issues.apache.org/jira/browse/SOLR-8466
>             Project: Solr
>          Issue Type: New Feature
>          Components: Facet Module, faceting
>    Affects Versions: 5.0, 5.1, 5.2, 5.2.1, 5.3, 5.3.1, 5.4
>            Reporter: Jamie Johnson
>            Assignee: Mikhail Khludnev
>         Attachments: 8466.diff, SOLR-8466.patch, SOLR-8466.patch, 
> SOLR-8466.patch, SOLR-8466.patch
>
>
> The new JSON Faceting API supports building an UnInvertedField to do faceting 
> which would be beneficial to add to Solr FacetComponent.  This would provide 
> additional options to implementors to choose the appropriate method of 
> faceting for their particular use case.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to