0
0
This commit is contained in:
syuilo 2018-09-05 16:48:59 +09:00
parent f83f8631ac
commit 8b490b9b94

View File

@ -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'
} }
} }
} }