Hello,
My config is be like in the following and i want to search special characters like !, $, @, # too.
class ConversationIndexConfigurator extends IndexConfigurator
{
use Migratable;
protected $name = 'conversations';
// You can specify any settings you want, for example, analyzers.
protected $settings = [
'analysis' => [
'analyzer' => [
'my_ngram_analyzer' => [
'tokenizer' => 'my_ngram_tokenizer'
]
],
'tokenizer' => [
'my_ngram_tokenizer' => [
'type' => 'edgeNGram',
'min_gram' => '1',
'max_gram' => '10',
'token_chars' => [
'punctuation'
]
]
]
]
];
}
When i want to search only "!" the data is not returning. My search field name is "text".
I tried many search query like but they didn't work.
-
regexp => text => '!',
-
regexp => text => .'!' or i tried .\!*. and other combinations.
-
wildcard => text => '!';
What should i do search special characters too?