Hello,
First of all I want to apologize if my post is not correct. This is my first time on this forum and my first time using Elastic Search.
I also take this opportunity to thank you in advance for the help.
I have an index of more than 32 million records and although it may seem simple, I want to do an exact search for a word.
I use Elastic Search 8.11.3.
I leave some information here in case it can be of help to you.
{
"mappings": {
"dynamic": "true",
"dynamic_templates": [
{
"all_text_fields": {
"match_mapping_type": "string",
"mapping": {
"analyzer": "iq_text_base",
"fields": {
"delimiter": {
"analyzer": "iq_text_delimiter",
"type": "text",
"index_options": "freqs"
},
"joined": {
"search_analyzer": "q_text_bigram",
"analyzer": "i_text_bigram",
"type": "text",
"index_options": "freqs"
},
"prefix": {
"search_analyzer": "q_prefix",
"analyzer": "i_prefix",
"type": "text",
"index_options": "docs"
},
"enum": {
"ignore_above": 2048,
"type": "keyword"
},
"stem": {
"analyzer": "iq_text_stem",
"type": "text"
}
}
}
}
}
],
"properties": {
"id_key": {
"type": "long"
},
"keyword": {
"type": "text",
"fields": {
"delimiter": {
"type": "text",
"index_options": "freqs",
"analyzer": "iq_text_delimiter"
},
"enum": {
"type": "keyword",
"ignore_above": 2048
},
"joined": {
"type": "text",
"index_options": "freqs",
"analyzer": "i_text_bigram",
"search_analyzer": "q_text_bigram"
},
"prefix": {
"type": "text",
"index_options": "docs",
"analyzer": "i_prefix",
"search_analyzer": "q_prefix"
},
"stem": {
"type": "text",
"analyzer": "iq_text_stem"
}
},
"analyzer": "iq_text_base"
},
"web_id": {
"type": "long"
}
}
}
}
I also attach an image of the document.
I simply want to do a search called "snow swnow" and only see the exact phrase within "keyword."
I have been reading for days and what worries me most is that I should delete my index and create a new one since I have more than 33 million records.
How can I do the search I need?
Thank you very much for the help.