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] [Commented] (SOLR-8466) Add support for UnInvertedField based faceting to FacetComponent
Date Sun, 07 Feb 2016 08:00:49 GMT

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

Mikhail Khludnev commented on SOLR-8466:
----------------------------------------

Hi,

Ok. I looked on it once again. if {{facet.version=2}} is specified, it adds one more response
elements from JSON facets. Thus, workaround shortens:
# to get old good UnInvertedField perfomance you don't need to change parameters to JSON,
but just specify {{facet.version=2}}
# and remove {{FacetComponent}} from handler's components, leaving {{FacetModule}} there.

# However, response format is different and an app should be changed to consume one that makes
the issue still sensible 

{code}
facet_counts={facet_queries={},facet_fields={key1={foo=1},key2={bar=1}},facet_dates={},facet_ranges={},facet_intervals={},facet_heatmaps={}},
{code}
vs
{code}
facets={count=2,key1={buckets=[{val=foo,count=1}]},key2={buckets=[{val=bar,count=1}]}}
{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
>
>
> 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