mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-29 13:27:31 -07:00
This commit is contained in:
parent
78b77eb474
commit
4269eed6fa
1 changed files with 8 additions and 1 deletions
|
@ -4,6 +4,12 @@ import config from '../config';
|
||||||
const index = {
|
const index = {
|
||||||
settings: {
|
settings: {
|
||||||
analysis: {
|
analysis: {
|
||||||
|
normalizer: {
|
||||||
|
lowercase_normalizer: {
|
||||||
|
type: 'custom',
|
||||||
|
filter: ['lowercase']
|
||||||
|
}
|
||||||
|
},
|
||||||
analyzer: {
|
analyzer: {
|
||||||
bigram: {
|
bigram: {
|
||||||
tokenizer: 'bigram_tokenizer'
|
tokenizer: 'bigram_tokenizer'
|
||||||
|
@ -24,7 +30,8 @@ const index = {
|
||||||
text: {
|
text: {
|
||||||
type: 'text',
|
type: 'text',
|
||||||
index: true,
|
index: true,
|
||||||
analyzer: 'bigram'
|
analyzer: 'bigram',
|
||||||
|
normalizer: 'lowercase_normalizer'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue