- Base ElasticSearch entity encapsulation. This represents document in ElasticSearch index.
- Basic building block for tree structure of ElasticSearch documents.
- If you need extra layer for single field data, this is what to use. And need should be always :). Can contain validation logic if you need to fill entities from external source for indexing to ElasticSearch.
Multiple values of same type :)
- Collection for
\Spameri\Elastic\Entity\ElasticEntityInterface
when you need reference to other entities. Lazily loads your collection and when saving modified data it saves to their own ElasticSearch index. - When making collection you should extend abstract collection with prepared methods
\Spameri\Elastic\Entity\Collection\ElasticEntityCollection
.
- Collection for
\Spameri\Elastic\Entity\EntityInterface
. - When making collection you should extend abstract collection with prepared methods
\Spameri\Elastic\Entity\Collection\EntityCollection
.
- Collection for
\Spameri\Elastic\Entity\ValueInterface
.