Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# we also index a keyword version of the field
name = Text(
analyzer=my_custom_analyzer,
fields={'keyword': es.Keyword()}
)
# and use it with facets like this
'city': TermsFacet(field='user.city.name.keyword'),
# so now we can use the same field for free text search as well as filters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment