Skip to content

Allow custom field name in HighlightBackend#302

Open
barseghyanartur wants to merge 2 commits intomasterfrom
allow-custom-field-name-in-highlight-backend
Open

Allow custom field name in HighlightBackend#302
barseghyanartur wants to merge 2 commits intomasterfrom
allow-custom-field-name-in-highlight-backend

Conversation

@barseghyanartur
Copy link
Owner

Allow custom field name in HighlightBackend.

    highlight_fields = {
        "body": {"enabled": True, "options": {"fragment_size": 50, "number_of_fragments": 1_000}},
        "name": {"field": "name.text", "enabled": True, "options": {"fragment_size": 50, "number_of_fragments": 1_000}},
    }

Allow custom field name in `HighlightBackend`.

```python
    highlight_fields = {
        "body": {"enabled": True, "options": {"fragment_size": 50, "number_of_fragments": 1_000}},
        "name": {"field": "name.text", "enabled": True, "options": {"fragment_size": 50, "number_of_fragments": 1_000}},
    }
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant