1. project settings(for nested query)
2. spring-data-elasticsearch build → create jar file → apply to project
3. improvement nested query
→ Applying nested queries for simple same paths has performance issues
-
In diagram flow of how nested works to understand where to apply custom query in the process
-
Custom query example
Criteria criteria = new Criteria("characterDocuments.name").is(name).nested(true);
criteria = criteria.add(new Criteria("characterDocuments.name").is(side).nested(true);
- Explane
- default value is false
- criteria objects set to true generate one query for the same path
- In our existing code, we only apply nested at a higher level for queries that are processed by an
and
operation at a time, such as "Seoul + Gangnam-gu", without touching the cases where a user wants to apply a single path to multiple nested.