免責事項:この記事はブロガーオリジナル記事です、続くBY-SAのCC 4.0を著作権契約、複製、元のソースのリンクと、この文を添付してください。
http:// localhostを:9200 /ブログ置く方式
{
"mappings":{
"hello":{
"properties":{
"id":{
"type":"long",
"store":true
},
"title":{
"type":"text",
"store":true,
"analyzer":"ik_smart"
},
"content":{
"type":"text",
"store":true,
"analyzer":"ik_smart"
}
}
}
}
}
お問い合わせ
http:// localhostを:9200 /ブログ/ハロー/ _searchポスト方式
{
"query":{
"query_string":{
"default_field":"content",
"query":"小米是中国的"
}
}
}