Regex Pattern Field Names

🏡 Home 📖 Chapter Home 👈 Prev 👉 Next
⚡ is crafted by Jozef Sorocin and powered by:

Use Case

My document contains
  • various date-time fields names *Time and *AtshipmentTime, 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?


You already know you should be utilizing match_mapping_type along with match and/or unmatch so you may be tempted to use
something along the lines of

Already purchased? Sign in here.