SSG
SSG

Reputation: 1505

How to make ElasticSearch fields NON-searchable

I am using ElasticSearch Version: 6.2.3
How can we make few fields in document NON-searchable.

Upvotes: 1

Views: 337

Answers (1)

Pierre Mallet
Pierre Mallet

Reputation: 7221

Check here the documentation

In your mapping a field can have an index boolean attribute. Set it to false to not index this field, thus make it not searchable.

example :

... 
myNonSearchableField: {
    type: "keyword",
    index: false,
}
...

Upvotes: 2

Related Questions