4.3. Embedded and Associated Objects
Associated objects and embedded objects can be indexed as part of the root entity index. This allows searches of an entity based on properties of associated objects.
4.3.1. Indexing Associated Objects Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
The aim of the following example is to return places where the associated city is Atlanta via the Lucene query
address.city:Atlanta. The place fields are indexed in the Place index. The Place index documents also contain the following fields:
address.idaddress.streetaddress.city
These fields are also able to be queried.
Example 4.4. Indexing associations