Questions tagged [elasticsearch-analyzers]
145 questions
0
votes
1 answer
Elasticsearch query to find exact match on string field ( Without analyzing )
We are storing category in our index, here is the mapping for the category
"name": {
"type": "string",
"analyzer": "autocomplete",
"search_analyzer": "standard"
}
Now, we want to do an exact search for this field, here is the query…

Ramesh
- 1,872
- 2
- 20
- 33
0
votes
1 answer
Elastic search Phonetic analyzer returns zero results?
I am getting 0 results using ES phonetic analyzer.
Using the built-in plugin in AWS - https://aws.amazon.com/about-aws/whats-new/2016/12/amazon-elasticsearch-service-now-supports-phonetic-analysis/.
Before indexing, I used this code to set up the…

Shawn
- 261
- 1
- 7
- 25
0
votes
2 answers
Does tokenizer work for indexing or query or both in Elasticsearch?
I am looking at tokenizer in Elasticsearch 6.8. I know that it defines how we tokenize the text into words when it builds an index. As an example, It would convert a "Quick brown fox!" text into terms [Quick, brown, fox!].
If I have a field in…

Joey Yi Zhao
- 37,514
- 71
- 268
- 523
0
votes
1 answer
How can I remove one delimiter from elasticsearch tokenizer?
I am using elasticsearch 6.8 for text searching. And I realised that elasticsearch tokenizer breaks text into words by using delimiters listed here: http://unicode.org/reports/tr29/#Default_Word_Boundaries. I am using match_phase to search one of…

Joey Yi Zhao
- 37,514
- 71
- 268
- 523
0
votes
0 answers
Sorting a keyword field alphabetically on Elasticsearch
While applying sort on a keyword type field, it goes lexicographical and for the given data:
AAAAAAAAAAA
AAAAaaaa
Aaaaaa
jjjjjaaa
jjjjjAAA
JJJJJJjjjj
aaaJJJJJjjjj
After sort…

James Jithin
- 10,183
- 5
- 36
- 51
0
votes
2 answers
How to exclude asterisks while searching with analyzer
I need to search by an array of values, and each value can be either simple text or text with askterisks(*).
For example:
["MYULTRATEXT"]
And I have the next index(i have a really big index, so I will simplify it):
................
{
"settings":…

user4785882
- 91
- 2
- 10
0
votes
2 answers
Elasticsearch 'failed to find analyzer' error & analyzer not shown by Settings API
I'm trying to get my Elasticsearch indices to use the Porter stemming algorithm, but my custom analyzer isn't defined when I test with the _analyze endpoint.
I've looked at the ES documentation and similar questions on SO, and I'm not sure what the…

soda_hobart
- 25
- 6
0
votes
2 answers
Elastica Mapping include_type_name
I'm trying to create a mapping from Elastica.
Here is my code to create my index with params of mapping :
$elasticaClient = new ElasticaClient;
$elasticaIndex = $elasticaClient->getIndex('products');
$elasticaIndex->create(
array(
…

Fabrice
- 47
- 10
0
votes
1 answer
Elasticsearch Update mapping Analyzer
i tried to update mapping from CURL with many filter's setting.
In fact, i want optimized my elasticsearch for have better result in French
I use Elasticsearch 7.0.1
I also use Rufli/Elastica on PHP7.4 on symfony 4.3
curl -XPUT…

Fabrice
- 47
- 10
0
votes
1 answer
Elasticsearch analyzer doesn't replace the apostophes (')
Using Elasticsearch v7.0
This is the analyzer I've implemented (http://phoenyx2:9200/search_dev/_settings?pretty=true):
{
"search_dev": {
"settings": {
"index": {
"refresh_interval": "30s",
…

Anders Metnik
- 6,096
- 7
- 40
- 79
0
votes
1 answer
How to add additional separators to the standard tokenizer?
Given this text (example from nginx logs)
646#646: *226999 SSL_do_handshake() failed (SSL: error:1417D18C:SSL routines:tls_process_client_hello:version too low) while SSL handshaking, client: 192.0.2.0, server: 0.0.0.0:443
the standard tokenizer…

OrangeDog
- 36,653
- 12
- 122
- 207
0
votes
1 answer
Elasticsearch mapping: How to analyze or map to numeric fields?
I want to index the month field of a bibtex entry into elasticsearch and make it searchable via the range query. This requires the underlying field type to be some kind of numeric datatype. In my case short would be sufficient.
The bibtex month…

Thurse
- 253
- 1
- 3
- 16
0
votes
1 answer
elasticsearch synonyms analyzer gives 0 results
I am using elasticsearch 7.0.0.
I am trying to work on synonyms with this configuration while creating index.
{
"settings": {
"index": {
"analysis": {
"analyzer": {
"synonym": {
"tokenizer": "whitespace",
…

Azima
- 3,835
- 15
- 49
- 95
0
votes
1 answer
elasticsearch 6.4 does not count search_analyzer in fields
I have a problem with ElasticSearch mapping.
for example the mapping for field name is:
{
"name": {
"type": "keyword",
"fields": {
"ngram": {
"type": "text",
"analyzer":…

Saeed K
- 13
- 6
0
votes
2 answers
SQL like query in ELasticsearch with AND OR
Hi I am still playing around with elasticsearch(V6.1.3) and found it amazing but still struglling.I can do single term query search easily and code follows for my setup:
from elasticsearch import Elasticsearch
es = Elasticsearch()
if not…

Paul85
- 647
- 1
- 11
- 27