'index' => 'contact',
'body' =>
[
'settings' =>
[
'number_of_shards' => 3,
'number_of_replicas' => 2,
"analysis"=>
[
"normalizer"=>[
"lowercase_normalizer"=> [
"type"=> "custom",
"filter"=> ["lowercase"]
]
],
"tokenizer" =>[
"comma" =>[
"type" => "pattern",
"pattern" => "|**|",
]
],
"analyzer" =>[
"comma" =>[
"type" => "custom",
"tokenizer" => "comma"
]
]
]
],
'mappings' => [
'_source' => [
'enabled' => true
],
'properties' =>
[
'appId' =>
[
'type' => 'long',
],
'bank' => [
"type" => "text",
"analyzer" => "comma"
];
]
This is the code iam using .
It is working when change pattern '||' to ','
But '||' this is the pattern i used . comma is not suitable for me