Search specific field in elastic search

Please format your code using </> icon as explained in this guide. It will make your post more readable.

Or use markdown style like:

```
CODE
```

Don't paste images if not useful. Better to paste the full error in your case so it's searchable.

The short answer is that you probably should use a bool query and should or must or filter clauses.

But I don't understand the model here TBH. What are you searching for? This group of persons or just individuals?

If the later, then index them one by one. One person per document.
Then if you just want to GET by id a person run:

GET person/doc/1

And you're done.