エラスティック検索をインストールしてテストしたところ、見栄えがよく、構成ファイルがあることを知る必要があります
elasticsearch.json
config
ディレクトリ内
{
"network" : {
"host" : "127.0.0.1"
},
"index" : {
"number_of_shards": 3,
"number_of_replicas": 1,
"refresh_interval" : "2s",
"analysis" : {
"analyzer" : {
"index_analyzer" : {
"tokenizer" : "nGram",
"filter" : ["lowercase"]
},
"search_analyzer" : {
"tokenizer" : "nGram",
"filter" : ["lowercase"]
}
},
"// you'll need lucene dep for this: filter" : {
"snowball": {
"type" : "snowball",
"language" : "English"
}
}
}
}
}
searching
そして、キーワードを検索
search
すると、何も見つからないという単語を含むドキュメントを挿入しました...
インデックスを作成する前にステムを作成しないか、構成で何かを見逃しました....