Configurable index key exceptions for facets
Some workarounds are here to stay :-/ as this one: https://gitlab.gwdg.de/dariah-de/textgridrep/tg-search/-/blob/develop/tgsearch-service-core/src/main/java/info/textgrid/middleware/tgsearch/TGSearchImplConstants.java#L45
As I have no mind and no time for thinking about a better mapping right now i would make this workaround configurable (btw, every field seems to get a field named "keyword" by default in elasticsearch now which matches our "untouched").
So the idea is to move the list of exceptions from Constants into an field configurable by tgsearch config file, e.g.
facets.not.untouched: project.id, work.dateOfCreation.date
Explanation
This field is used by facet queries to optionally override the default to add ".untouched" to every facet & filter query (e.g.: https://gitlab.gwdg.de/dariah-de/textgridrep/tg-search/-/blob/develop/tgsearch-service-core/src/main/java/info/textgrid/middleware/tgsearch/ElasticSearchFacetImpl.java#L107)
this is an old workaround we introduced with facets and filters. we need to redo the mapping, but i would want to have access to facets on date right now, and a mapping and facet / filter rework will be more time consuming