def onion created SOLR-11138:
--------------------------------
Summary: 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: [email protected]
For additional commands, e-mail: [email protected]