Skip to content

v0.2.2

Compare
Choose a tag to compare
@pionl pionl released this 11 Nov 14:22
· 2 commits to master since this release
ddc67e8

⛑ Default sort fix + log improvements

Ensure that results are sorted by _id (could be breaking change).

By default we are sorting by _id after any HasSorting logic to ensure that pagination is correct.

You can turn this feature by using $builder->setSortById(false);

Improved logging (new config)

  • log_measurement Logs every query to log (default false). You can use ELASTICSEARCH_LOG_MEASUREMENT env.
  • log_debug Debug logs every query data to a log (true in local environment). You can use ELASTICSEARCH_LOG_DEBUG env.
  • service Enables to change available indices (implement IndicesServiceContract or extend IndicesService)
  • prefix Used prefix for index names - uses APP_NAME and replace '-' to '_', converts name to slug variant.
  • hosts A list of IPS for your elastic search - https://www.elastic.co/guide/en/elasticsearch/client/php-api/current/configuration.html. Use ; separator. Default localhost:9200.

By @pionl