此内容没有您所选择的语言版本。
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 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
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.id
address.street
address.city
These fields are also able to be queried.
Example 4.4. Indexing associations