New Commands, Result Object and Aggregate Basics
Commands
spameri:elastic:update-mapping- updates mapping for existing entity,spameri:elastic:add-alias $index $aliasadd alias to existing indexspameri:elastic:remove-alias $index $aliasremoves alias from existing indexspameri:elastic:validate-mapping- Best command, validates your neon config options for number of errors and best practices.
Mapping validation covers basic rules of settings for index:
- unique field name in index context
- not supported parameter in field context
- not supported tokenizer
- not supported analyzer
- not supported type of field
DateTime
- New
DateandDateTimeobjects for easier specifying format for ElasticSearch - Comes with prepared format no need to specify
- Supported when converting to ElasticSearch document
Aggregate
- Added aggreage method to
BaseService - Runs aggregate in Entity/Index context
- Returns new ResultObject - more bellow
Result Objects
- Introduced in https://github.com/Spameri/ElasticQuery/releases/tag/v0.2.0 and expanded
in https://github.com/Spameri/ElasticQuery/releases/tag/v0.3.0 all object structure infromation you can read there - Dropped
ResultCollection - No more array responses from core function (
get,getBy,aggregate...) instead there is ResultSearch or ResultSingle object witch has HitCollection and AggregationCollection with our data. IEntityFactorynow accepts single class \Spameri\ElasticQuery\Response\Result\Hit
Diff v0.1.2...v0.2.0