Skip to content

Commit

Permalink
Merge 740eeac into 3b667c6
Browse files Browse the repository at this point in the history
  • Loading branch information
einorler committed Jun 17, 2016
2 parents 3b667c6 + 740eeac commit 80da2cc
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions Resources/doc/filter/match.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ This filter searches for a matching value in the specified field. Usual use case

## Configuration

| Setting name | Meaning |
|------------------------|--------------------------------------------------------------------------------------|
| `request_field` | Request field used to specify filter value. (e.g. `www.page.com/?request_field=4`) |
| `field` | Specifies the field in repository to apply this filter on. (e.g. `item_color`) |
| `tags` | Array of filter specific tags that will be accessible at Twig view data. |
| Setting name | Meaning |
|------------------------|------------------------------------------------------------------------------------------------|
| `request_field` | Request field used to specify filter value. (e.g. `www.page.com/?request_field=4`) |
| `field` | Specifies the field in repository to apply this filter on. (e.g. `item_color`) |
| `fuzziness` | Enables inexact matching of the results. |
| `operator` | Controls the clauses of the inner boolean query. Can be set to `or` or `and`, defaults to `or` |
| `tags` | Array of filter specific tags that will be accessible at Twig view data. |

Example:
Example of the configuration:

```yaml
# app/config/config.yml
Expand All @@ -26,6 +28,9 @@ ongr_filter_manager:
search:
request_field: 'q'
field: title
operator: and
fuzziness: 2

```
It also has to be mentioned that more than one field can be specified. If you want to apply the filter
to more than one field you can specify it by separating them with commas like so:
Expand Down

0 comments on commit 80da2cc

Please sign in to comment.