I have these mappings:
'indices' => [
'mappings' => [
'default' => [
'properties' => [
'id' => [
'type' => 'keyword',
],
'name' => [
'type' => 'text',
'analyzer' => 'english',
],
],
],
],
I need to store field stocks
arr[obj]
stock looks like:
{stock_id:uint, qty:uint, hidden: bool}
Then I need to query this index with search of name
where stocks.stock_id IN [1,2,3] and qty>0 and hidden != true
How I can implement this - does I need to change something in mapping settings?
Btw im using laravel scout with elastic engine under the hood. But your answer will helpful if you show me just raw query