Skip to content

Instantly share code, notes, and snippets.

@harshvb7
Last active Jul 10, 2019
Embed
What would you like to do?
# an example from elasticsearch-dsl docs
from elasticsearch_dsl import analyzer
html_strip = analyzer('html_strip',
tokenizer="standard",
filter=["standard", "lowercase", "stop", "snowball"],
char_filter=["html_strip"]
)
class Post(Document):
title = Text()
category = Text(
analyzer=html_strip
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment