Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vincentchalnot/siduselasticafilterbundle
Extension for sidus/filter-bundle to handle Elastic Search index search
https://github.com/vincentchalnot/siduselasticafilterbundle
Last synced: 4 days ago
JSON representation
Extension for sidus/filter-bundle to handle Elastic Search index search
- Host: GitHub
- URL: https://github.com/vincentchalnot/siduselasticafilterbundle
- Owner: VincentChalnot
- License: mit
- Created: 2018-01-11T16:27:38.000Z (almost 7 years ago)
- Default Branch: v1.0-dev
- Last Pushed: 2021-02-17T17:53:19.000Z (over 3 years ago)
- Last Synced: 2024-05-22T11:07:21.433Z (6 months ago)
- Language: PHP
- Size: 38.1 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
SidusElasticaFilterBundle
=========================This bundle is an extension for sidus/filter-bundle that enables Elastic Search index search in query handlers.
## Installation
[Follow FOS/ElasticaBundle's installation guide](https://github.com/FriendsOfSymfony/FOSElasticaBundle/blob/master/README.md)
## Configuration
Configure your indexes corresponding to the data you want to search for.
In your filter configuration, set the provider to ```sidus.elastica``` and in the options, set the ```reference```
option to ```fos_elastica.finder.{{name_of_your_index}}.{{name_of_your_type}}```### Example
Example with a Doctrine ORM entity:
```yml
fos_elastica:
indexes:
my_index:
types:
my_type:
properties:
id:
type: integer
label:
type: keyword
persistence:
driver: orm
model: MyBundle\Entity\MyEntity
```Filter configuration:
```yml
sidus_filter:
configurations:
my_entity:
provider: sidus.elastica
options:
reference: fos_elastica.finder.my_index.my_type
sortable:
- id
- label
filters:
label: ~
```## Supported filters
@todo
### Choice
### Date range
### Text