⚡ ElasticsearchBook is crafted by Jozef Sorocin (🟢 Book a consulting hour) and powered by:
- Spatialized.io (Elasticsearch & Google Maps consulting)
- in cooperation with Garages-Near-Me.com (Effortless parking across Germany)
Use Case
My document contains
- various date-time fields names
*Time
and*At
—shipmentTime
,createdAt
etc.
- boolean fields of the form
is_*
—is_premium
,is_company
etc.
- other fields that I all want to declare as
keywords
.
How can I auto-generate mappings for these 3 field varieties?
Approach
You already know you should be utilizing
match_mapping_type
along with match
and/or unmatch
so you may be tempted to use