You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by "David Griffon (Jira)" <ji...@apache.org> on 2022/06/08 16:14:00 UTC

[jira] [Created] (UNOMI-586) Use mapping object for not searched documents.

David Griffon created UNOMI-586:
-----------------------------------

             Summary: Use mapping object for not searched documents.
                 Key: UNOMI-586
                 URL: https://issues.apache.org/jira/browse/UNOMI-586
             Project: Apache Unomi
          Issue Type: Bug
    Affects Versions: 2.0.0
            Reporter: David Griffon


Currently almost all documents in ES are mapped using a dynamic mapping. This also for documents that are not queried like:
- rules
- conditions 
- goals definition
- patches
- segments
...

This task is to:
- identify the objects that are not used in query
- for all these objects, change the mapping to use {{object}} instead of dynamic mapping

Note that this can lead to issue, as a dynamic mapping is done on rules for example, it is not possible to change the type of a field in any condition
Another limitation of the mapping is the max depth of the mapping, as the conditions can be nested, if one create more than 7 nested condition, it reaches that limit.
See https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-settings-limit.html for more detail



--
This message was sent by Atlassian Jira
(v8.20.7#820007)