Skip to content

New Commands, Result Object and Aggregate Basics

Choose a tag to compare

@Spamercz Spamercz released this 14 Feb 21:36
· 145 commits to master since this release

Commands

  • spameri:elastic:update-mapping - updates mapping for existing entity,
  • spameri:elastic:add-alias $index $alias add alias to existing index
  • spameri:elastic:remove-alias $index $alias removes alias from existing index
  • spameri: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 Date and DateTime objects 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

Diff v0.1.2...v0.2.0