I have a strange issue of facet buckets being empty for tint fields.
I have the following schema:

<fieldType name="tint" class="solr.TrieIntField" sortMissingLast="true"
omitNorms="true"/>

<fieldType name="string" class="solr.StrField" sortMissingLast="true"
omitNorms="true"/>

<fieldType name="tfloat" class="solr.TrieFloatField" sortMissingLast="true"
omitNorms="true"/>

...

<field name="price" type="tint" indexed="true" stored="false"
multiValued="false"/>

<field name="width" type="tfloat" indexed="true" stored="false"
multiValued="true"/>

<dynamicField name="*" type="string" indexed="true" stored="false"
multiValued="true"/>

Then I just import:

[{
    "sku": "TEST_FACET",
    "color": "yellow",
    "width": 100.23,
    "price": 1200
}]

when I do the following faceting request:

json.facet={

colors:{terms: {field:color}},

width:{terms: {field:width}},

price:{terms: {field:price}}

}

I get empty buckets for price (tint):

"facets":{ "count":1,

  "colors":{ "buckets":[{ "val":"yellow", "count":1}]},

  "width":{ "buckets":[{ "val":100.23, "count":1}]},

  "price":{ "buckets":[]}}}

Is somebody else able to reproduce this issue?

Best regards,
Andrii

Reply via email to