2013-10-15 29 views
-1

//這是行不通的,並顯示在創建索引... //相應穩固的字符c的錯誤,並根據custome場來elasticsearch:如何定義指數正好與分析,分詞器和過濾器

curl -XPOST localhost:9200/sports0/' -d" 
    "settings":{ 
    "analysis":{ 
     "analyzer":{ 
     "autocomplete":{ 
      "type":"custom", 
      "tokenizer":"standard", 
      "filter":[ "standard", "lowercase", "stop", "kstem", "ngram" ] 
     `enter code here`} 
     }, 
      filter:{ 
       type:"stop" ,stopwords:"stopwords.txt" 
} 
    } 
    } 
} 

回答

0
  • 您忘記了第一個{
  • 某些字符串不包含在雙引號中。

請做一個更好的json格式。

相關問題