Download the PHP package fork/craft-elastica without Composer
On this page you can find all versions of the php package fork/craft-elastica. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fork/craft-elastica
More information about fork/craft-elastica
Files in fork/craft-elastica
Package craft-elastica
Short Description A plugin to connect to Elasticsearch and persist elements via hooks
License MIT
Informations about the package craft-elastica
Elastica Plugin for Craft 5.x
Table of contents
- Features
- Requirements
- Setup
- Usage
- Roadmap
Features
- Index entries and other elements in Elasticsearch
- Customize Index data structures via hooks
- Define Index Templates to configure the Index and its fields and mapping in Elasticsearch
- Re-Index contents via utility or console command
Requirements
- Craft CMS >= 5.x
Version Matrix
Elastica Version | Craft Version | ElasticSearch Version |
---|---|---|
4.x | 5.x | 8.x |
3.x | 5.x | 7.x |
2.x | 4.x | 7.x |
Setup
1. Install
Install the package
2. Configuration
Go to the plugin settings page and enter a index prefix name which is prepended to the indexes being created in Elasticsearch. The name of the index is generated from this prefix. Also provide the hostname of the elasticsearch instance.
Usage
To generate the data to index register event handlers in your own module or plugin class like this:
Environment based configuration
You can make the plugin's configuration environment based by adding an elastica.php file in your config directory with the following contents. This is just an example, you can name your environment variables as you want.
Roadmap
- [x] Logo
- [x] Index categories
- [ ] Maybe include search proxy
- [ ] Exclude sites via settings
- [ ] Show index info / test index in utility
- [ ] More documentation
Brought to you by Fork Unstable Media GmbH