Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
Opensearch 2.11.1
Describe the issue:
For example ,When I insert 1000 Date fields dynamically I can insert 1000 date fields successfully. But when i insert 1000 text fields dynamically only 500 is inserted. I have observed if its string automatically mapping is created as text and keyword.How to restrict this behavior to text field only and insert 1000 fields.
Kindly explain the behavior.
Configuration:
“test3”: {
“aliases”: {},
“mappings”: {
“properties”: {
“field1”: {
“type”: “text”,
“fields”: {
“keyword”: {
“type”: “keyword”,
“ignore_above”: 256
}
}
},
Relevant Logs or Screenshots:
POST http://localhost:9200/testdate/_bulk
{“index”:{“_id”:1}}
{“date_field1”: “2022-01-01”}
…
{“index”:{“_id”:1}}
{“date_field1000”: “2022-01-01”}
GET http://localhost:9200/testdate
{
“testdate”: {
“aliases”: {},
“mappings”: {
“properties”: {
“date_field1”: {
“type”: “date”
},
“date_field10”: {
“type”: “date”
},
“date_field100”: {
“type”: “date”
},
“date_field1000”: {
“type”: “date”
}
}
When i insert 1000 text fields dynamically, I could insert only 500 fields only.
POST http://localhost:9200/testtext/_bulk
{“index”:{“_id”:1}}
{“field1”: “Sample Text 1”}
…
{“index”:{“_id”:1}}
{“field1000”: “Sample Text 1”}
GET http://localhost:9200/test1
“field500”: {
“type”: “text”,
“fields”: {
“keyword”: {
“type”: “keyword”,
“ignore_above”: 256
}
}