Hi,
I noticed that when using the following:
analysis:
filter:
ngram:
type: nGram
min_gram: 2
max_gram: 32
arabic_stop:
type: stop
stopwords: _arabic_
arabic_stemmer:
type: stemmer
language: arabic
analyzer:
search_arabic:
tokenizer: keyword
filter:
- lowercase
- arabic_normalization
index_arabic_ngram:
tokenizer: standard
filter:
- lowercase
- arabic_normalization
- ngram
search_arabic_ngram:
tokenizer: standard
filter:
- lowercase
- arabic_normalization
nameAr:
type: text
analyzer: search_arabic
fields:
ngram:
type: text
analyzer: index_arabic_ngram
search_analyzer: search_arabic_ngram
raw:
type: keyword
index: false
And I'm querying nameAr.ngram with a Match query. I noticed that some phrases have bigger score even though they are longer. Example: you search "word" and "some word here" has lower score than "word in another phrase", What would be the easieast way to boost the criteria of length in ES 6.3?