lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail Khludnev (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SOLR-8466) Add support for UnInvertedField based faceting to FacetComponent
Date Sun, 07 Feb 2016 20:35:39 GMT

     [ 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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message