Skip to content

Result + Options Object

Choose a tag to compare

@Spamercz Spamercz released this 12 Feb 01:34
· 167 commits to master since this release

Response object

  • Envelopes response from ES to objects
  • Stats object for response time and total count
  • Shards object with some numbers
  • Hit object for info about result hit and semi object access to data
  • Aggregation object for info about result aggregation and buckets in objects
  • ResultMapper helps map ES array response to objects

Added Options object

  • created empty if not supplied
  • ability to set from and size for query
  • ability to specify min score for result
  • includes sorting

Other changes:

  • Term aggregation can have key
  • Added collection functions to AggregationCollection

Diff v0.1.2...v0.2.0