(from github.com/mokkouyou)
I added additional field ,using datastore crawler, and used as facet field but get errors.
Do I need something else for using facet?
#version
11.3
#api query
http://localhost:8088/json/?q=*&facet.field=addeddfield
#error
IllegalArgumentException[Fielddata is disabled on text fields by default. Set fielddata=true on [addeddfield] in order to load fielddata in memory by uninverting the inverted index. Note that this can however use significant memory. Alternatively use a keyword field instead.];
#fess_config.properties
query.additional.response.fields=addeddfield
query.additional.api.response.fields=addeddfield
query.additional.cache.response.fields=addeddfield
query.additional.highlighted.fields=
query.additional.search.fields=addeddfield
query.additional.facet.fields=addeddfield
#created mapping
addeddfield: {
type: “text”,
fields: {
keyword: {
type: “keyword”,
ignore_above: 256
}
}
},
I think that type should be keyword, but what should I do?