how to represent required fields in index mapping in elastic search

Viewed 301
mapping: {
  dynamic: 'strict',
  properties: {
    name: { type: 'text', index: false },
    email: { type: 'keyword' },
    phoneNumber: { type: 'text', index: false },
  },
},

How to add the required field for name, email and phone number?

0 Answers
Related