diff --git a/plugin.xml b/plugin.xml
index 2342cf9d7..0bb0f6427 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -18,7 +18,7 @@
-
+
diff --git a/src/main/resources/fess_indices/fess.json b/src/main/resources/fess_indices/fess.json
index 664262610..b77e390a1 100644
--- a/src/main/resources/fess_indices/fess.json
+++ b/src/main/resources/fess_indices/fess.json
@@ -685,6 +685,15 @@
"expand_ngram": true,
"reload_interval": "1m"
},
+ "unigram_search_tokenizer": {
+ "type": "ngram_synonym",
+ "n": "1",
+ "synonyms_path": "${fess.dictionary.path}synonym.txt",
+ "dynamic_reload": true,
+ "expand": false,
+ "expand_ngram": false,
+ "reload_interval": "1m"
+ },
"bigram_tokenizer": {
"type": "ngram_synonym",
"n": "2",
@@ -1145,6 +1154,23 @@
"stemmer_en_filter"
]
},
+ "standard_search_analyzer": {
+ "type": "custom",
+ "char_filter": [
+ "mapping_filter"
+ ],
+ "tokenizer": "unigram_search_tokenizer",
+ "filter": [
+ "disable_graph",
+ "alphanum_word_filter",
+ "cjk_bigram",
+ "lowercase",
+ "stopword_en_filter",
+ "english_keywords",
+ "english_override",
+ "stemmer_en_filter"
+ ]
+ },
"empty_analyzer": {
"type": "custom",
"tokenizer": "standard",
@@ -1157,7 +1183,7 @@
"char_filter": [
"mapping_ja_filter"
],
- "tokenizer": "unigram_tokenizer",
+ "tokenizer": "unigram_search_tokenizer",
"filter": [
"alphanum_word_filter",
"cjk_bigram",
diff --git a/src/main/resources/fess_indices/fess/doc.json b/src/main/resources/fess_indices/fess/doc.json
index 8b5bcdae7..2628c0931 100644
--- a/src/main/resources/fess_indices/fess/doc.json
+++ b/src/main/resources/fess_indices/fess/doc.json
@@ -498,6 +498,7 @@
"content": {
"type": "text",
"analyzer": "standard_analyzer",
+ "search_analyzer": "standard_search_analyzer",
"term_vector": "with_positions_offsets"
},
"content_minhash": {
@@ -576,6 +577,7 @@
"title": {
"type": "text",
"analyzer": "standard_analyzer",
+ "search_analyzer": "standard_search_analyzer",
"term_vector": "with_positions_offsets"
},
"thumbnail": {