(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?
#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.];
(from github.com/marevol)
To add own field, you need to add a proper elasticsearch mapping before crawling.
Elasticsearch requires fielddata=true for aggregation.
How to show additional facets in the search results of the search GUI. I can see the additional facets in JSON results using &facet.field=xxx. I have tried to add in [“xxx”] as stated in Custom facets. But I still can’t see the additional facets in the search results. Am I missing some settings.
An example setting is in codesearch.codelibs.org.
In the latest version, you can set the settings in fess_config.properties.
organization,repository and filename are additional facet fields.
Even in a clean install, I can’t see new facets in the Web interface (/search). But I can see them in JSON API (/json). Moreover, If I enable JSON Response, all the data shown without authentication. Web interface (/search) is asking to login.