You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "def onion (JIRA)" <ji...@apache.org> on 2017/07/25 06:04:01 UTC
[jira] [Closed] (SOLR-11138) JSON terms facet counts change when
changing limit parameter
[ https://issues.apache.org/jira/browse/SOLR-11138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
def onion closed SOLR-11138.
----------------------------
> JSON terms facet counts change when changing limit parameter
> ------------------------------------------------------------
>
> Key: SOLR-11138
> URL: https://issues.apache.org/jira/browse/SOLR-11138
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Components: Facet Module
> Affects Versions: 5.5.2
> Reporter: def onion
>
> We are running a single node Solr 5.5.2. When querying for facets via the json facets api, the count for the buckets changes when the limit parameter of the requested terms facet is edited.
> The field we facet over is a multivalued keyword field:
> {code:xml}
> <fieldType name="text_keyword" class="solr.TextField">
> <analyzer>
> <tokenizer class="solr.KeywordTokenizerFactory" />
> </analyzer>
> </fieldType>
> <dynamicField name="*_KEY_MULTI" type="text_keyword" indexed="true" stored="true" termVectors="false" multiValued="true" />
> {code}
> The queries that produce the different results are:
> *facet.limit=10*
> {code:javascript}
> {
> "params": {
> "start": 0,
> "rows": 0
> },
> "facet": {
> "nerPersonFacet": {
> "field": "KLAS_NAME_10045_KEY_MULTI",
> "limit": 10,
> "type": "terms"
> }
> }
> }
> {code}
> *Result:*
> {code:javascript}
> : "facets":
> : {
> : : "count":26588990,
> : : "nerPersonFacet":
> : : {
> : : : "buckets":
> : : : [
> : : : : {
> : : : : : "val":"Angela Merkel",
> : : : : : "count":32179
> : : : : },
> : : : : {
> : : : : : "val":"Donald Trump",
> : : : : : "count":30418
> : : : : },
> : : : : {
> : : : : : "val":"Hillary Clinton",
> : : : : : "count":30305
> : : : : },
> : : : : {
> : : : : : "val":"Barack Obama",
> : : : : : "count":25683
> : : : : },
> : : : : {
> : : : : : "val":"Pope Francis",
> : : : : : "count":22323
> : : : : },
> {code}
> *facet.limit=15*
> {code:javascript}
> {
> "params": {
> "start": 0,
> "rows": 0
> },
> "facet": {
> "nerPersonFacet": {
> "field": "KLAS_NAME_10045_KEY_MULTI",
> "limit": 15,
> "type": "terms"
> }
> }
> }
> {code}
> *Results:*
> {code:javascript}
> : "facets":
> : {
> : : "count":26588990,
> : : "nerPersonFacet":
> : : {
> : : : "buckets":
> : : : [
> : : : : {
> : : : : : "val":"Angela Merkel",
> : : : : : "count":32179
> : : : : },
> : : : : {
> : : : : : "val":"Barack Obama",
> : : : : : "count":30922
> : : : : },
> : : : : {
> : : : : : "val":"Donald Trump",
> : : : : : "count":30418
> : : : : },
> : : : : {
> : : : : : "val":"Hillary Clinton",
> : : : : : "count":30305
> : : : : },
> : : : : {
> : : : : : "val":"Pope Francis",
> : : : : : "count":22323
> : : : : },
> {code}
> The count for the bucket "Barack Obama" changes significantly from 25683 to 30922. When querying for KLAS_NAME_10045_KEY_MULTI:"Barack Obama" the count is 30922.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org