- Change plugin icon
- Update Readme
- Fix polish analyzer (thanks @sfsmfc, closes #26)
isIndexInSync
will always result in a cache miss if index is not in sync (thanks @aloco, closes #22)
- [BREAKING]: Make the plugin compatible with Craft 4 (closes #23)
- Fix an incorrect default value for the
highlight.pre_tags
&highlight.post_tags
settings, that could lead to an exception when running a search - Fix a overridden setting warning shown even when the
blacklistedEntryTypes
setting isn't overriden
- Ability to index digital products (thanks @aloco)
- Fix index analyzer detection for sites having a "complex" locale (ie. language + country code)
- Fix Elasticsearch 6 compatibility (fixes #17)
- Fix a timezone-related bug affecting the
postDate
&expiryDate
fields (#16)
- Ability to index assets
- Console commands to reindex only entries, assets or products
- Code refactoring
SiteController
: it was originally used as a part of the reindexation process when called from the Craft CLI, but this was changed in 1.2.0 and it was useless since then.
- Compatibility with Elasticsearch 7
- Ability to prefix the Elasticsearch indices names (thanks @vviacheslavv)
- Compatibility with project-config (Fixes #7)
- Use looser version constraints in composer.json (possibly fixes #11)
- Test for Yii2 debug module before adding the Elasticsearch panel to it (fixes #12)
- Fix a bug where disabled elements where indexed anyway
- Entries indexing was broken in Craft CMS 3.2 due to a last minute change
{warning} This update introduce a way to honor post and expiry dates for entries and products. The default search query has been updated in order to filter indexed elements based on those fields. If you used
ElasticsearchRecord::EVENT_BEFORE_SEARCH
event to alter the search query, please be sure to update to reflect these changes. See README for more infos. After plugin update, Elastisearch indexes will be rebuilt in order to take these changes in consideration.
- Craft CMS 3.2 compatibility
- Instructions to setup a DDEV environment
postDate
andexpiryDate
are now available in search results- Default search query has been updated in order to filter live elements
- All enabled entries and products are indexed now regardless of their live status.
- Console command
elasticsearch/elasticsearch/reindex-all
do not need additional parameter in order to run.
- The search method now honor
postDate
andexpiryDate
to only show live elements
{warning} The way page content are indexed have changed and now rely on a Guzzle client implementation. If your entries are not indexed anymore after upgrade, please check you network configuration (specially when using docker containers) and the documentation for
elementContentCallback
new configuration parameter to override the Guzzle implementation if needed.
- Craft Commerce product support (#1)
- Ability to index and search additional data (#2)
rawResult
in result fields to get a reference to the raw ElasticsearchRecord result objectelementHandle
in result fields to be able to get the element type related to the resultresultFormatterCallback
configuration callback in order to make changes to the results dataelementContentCallback
configuration callback to be able to implement custom method to get the element content to indexEVENT_BEFORE_CREATE_INDEX
,EVENT_BEFORE_SAVE
andEVENT_BEFORE_SEARCH
events ofElasticsearchRecord
can be listened to customized various aspects of the Elastisearch life cycle
- Guzzle 6 is now used to get page content of elements instead of the Twig template renderer
- Updated documentation
IndexEntryException
class has been replaced byIndexElementException
- Merge highlight results for all fields
- Removed default highlight for title field
- Prefixed table names configuration where leading to a 'Column not found Error' (#3)
- Initial release