Releases: 10up/ElasticPress
Version 1.5
This version includes 16 enhancements and 3 bug fixes across a total of 16 contributors. Only half of these contributors actually work for 10up! The focus of this version is performance. Most notably, ElasticPress queries now completely bypass MySQL yielding huge benefits. In the past ElasticPress was pulling from Elasticsearch but filling in some blanks with MySQL. ElasticPress queries also support the cache_results parameter for storing pulled posts in the object cache.
Here is a full list of version changes:
Bug Fixes:
- Prevent direct access to any PHP files. Props joelgarciajr84
- Fixed fields not being loaded from ES. Props stayallive
- Fixed inclusive check in date_query integration. Props EduardMaghakyan
Enhancements:
- Add support for category_name WP_Query parameter. Props ocean90
- Support limiting sites in network wide commands. Props bordoni
- Add support for method to un-integrate WP_Query. Props kingkool68
- Support
cache_resultsin WP_Query - Add action prior to starting WP-CLI index command
- Add missing headers to WP-CLI commands. Props chriswiegman
- Improve error reporting in bulk indexing during bad ES requests.
- Fix is_search check notice. Props allenmoore and allan23
- Added a filter to modify request headers. Props tuanmh
- Prevent bulk index from sending useless error emails. Props cmmarslender
- Add
--offsetparameter to cli indexing command. Stayallive - Change the syncing hook to play better with plugins. Props jonathanbardo
- Support like query in post meta. Props tuanmh
- Sanitization fixes for PHPCS. Props mphillips
- Added filter to set default sort order. Props HKandulla
- MySQL DB completely removed from integrated ElasticPress WP Query. Props EduardMaghakyan and crebacz
Version 1.4
Changelog
This version contains a number of bug fixes and small enhancements. The focus of this version is date query support. New date features will not work unless you do a reindex (wp elasticpress index --setup).
Bug Fixes:
- Duplicate sync post hooks separated. Props superdummy.
- Don't send empty index error emails. Props cmmarslender.
- Remove default shard and indices configuration numbers but maintain backwards compatibility. Props zamoose.
- Fix wrong author ID in post data. Props eduardmaghakyan.
Enhancements:
date_queryand date parameters now supported in WP_Query. Props joeyblake and eduardmaghakyan.- Make all request headers filterable.
- Add EP API key to all requests as a header if a constant is defined. Props zamoose.
- Add index exists function; remove indexes on blog deletion/deactivation. Props joeyblake.
- Refactor wp-cli stats for multisite. Props jaace.
- Index mappings array moved to separate file. Props mikaelmattsson.
- Support meta inequality comparisons. Props psorensen.
Version 1.3.1
Changelog:
- Support
datein WP_Queryorderby.
Version 1.3
- Support
meta_queryin WP_Query integration - Improved documentation. Each WP-CLI command has been documented
- Add
elasticsearchproperty to global post object to assist in debugging ep_integrateparam added to allow for WP_Query integration without search. (Formally called ep_match_all)- Filter added for post statuses (defaults to
publish). Change the sync mechanism to make sure it takes all post statuses into account. Props jonathanbardo - Bug fix: check if failed post exists in indexing. Props elliot-stocks
- Bug fix: properly check if setup is defined in indexing. Props elliot-stocks
- Bug fix: add WP_Query integration on init rather than plugins loaded. Props adamsilverstein
- Bug fix: Properly set global post object post type in loop. Props tott
- Bug fix: Do not check if index exists on every page load. Refactor so we can revert to MySQL after failed ES ping.
- Bug fix: Make sure we check
is_multisite()if--network-wideis provided. Props ivankruchkoff - Bug fix: Abide by the
exclude_from_searchflag from post type when running search queries. Props ryanboswell - Bug fix: Correct mapping of
post_statustonot_analyzedto allow for filtering of the search query (will require a re-index). Props jonathanbardo
Version 1.2
- Allow number of shards and replicas to be configurable.
- Improved searching algorithm. Favor exact matches over fuzzy matches.
- Query stack implementation to allow for query nesting.
- Filter and disable query integration on a per query basis.
- Support
orderbyparameter inWP_Query - (Bug) We don't want to add the like_text query unless we have a non empty search string. This mimcs the behavior of MySQL or WP which will return everything if s is empty.
- (Bug) Change delete action to action_delete_post instead of action_trash_post
- (Bug) Remove
_boostfrom mapping. _boost is deprecated by Elasticsearch. - Improve unit testing for query ordering.
Version 1.1
- Refactored
is_alive,is_activated, andis_activated_and_alive. We now have functionsis_activated,elasticsearch_alive,index_exists, andis_activated. This refactoring helped us fix #150. Props @jamesmehorter - Add support for post_title and post_name orderby parameters in
WP_Queryintegration. Add support for order parameters. Props @AaronHolbrook
Version 1.0
This marks the first version released to wordpress.org. Here is what we've added:
- Support
search_fieldsparameter. Support author, title, excerpt, content, taxonomy, and meta within this parameter. - Move all management functionality to WP-CLI commands
- Remove
ES_Queryand support everything throughWP_Query - Disable sync during import
- Check for valid blog ids in index names
- Improved bulk error handling
- No need for
ep_last_syncedmeta - No need for syncing taxonomy
- Improved unit test coverage
sitesWP_Queryparameter to allow for search only on specific blogs
Better syncing and WP_Query support
Changelog:
- Add better documentation surrounding
WP_Queryparameters (props @tlovett1) - Add option to allow for using
match_all(props @colegeissinger for suggestion) - Prevented filtering
WP_Queryin admin (props @cmmarslender) - Added better tests for some
WP_Queryparameters (props @tlovett1) - Updated tests to better conform to WordPress repo 5.2 compatibility (props @tlovett1)
- Made running re-indexing commands simpler and easier by adding support for a new
--setupflag on theindexcommand - Disable search integration during syncing
- Allow for manual control over search integration
- Add support for passing an array of sites to search against (props @tlovett1)
- Fix bug that would cause a post to stay in the index when a post was unpublished
- Fix bug that would cause site to be improperly switched after a
wp_reset_postdatawhile not in the loop - Fix bug that would cause EP to individually sync each post during an import - disabled syncing during import - requires a full re-index after import
- Add additional filter for controlling whether or not ElasticPress is enabled during a
wp_queryrequest - Add filter to allow adjusting which fields are searched (
ep_search_fields)
Fuzziness & Hooks
Minor adjustments including fuzzy default to .75 and some hooks/filters.
MVP Release
Stripped out cron and UI elements.
Now requires WP-CLI and an EP_HOST constant for the connection URL to your Elasticsearch application.