Greetings,
I am looking for a way to perform a prefix query on _id without duplicating its value to another field. I am overriding _id with a custom string value as a "primary key" to prevent duplicates. Is it possible to redefine the mappings for the _id field to allow for this type of query?
{
'query': {
'prefix': {
'_id': 'deadbeef'
}
}
}
The error I'm receiving:
Can only use prefix queries on keyword and text fields - not on [_id] which is of type [_id]
Development is still in early stages so I'm still free to change how this works, I just need to keep storage requirements to a minimum. Thanks!