Created
April 28, 2015 10:33
-
-
Save rakusai/abb86105da4352d7ab6a to your computer and use it in GitHub Desktop.
elastic search 検証クエリ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -XPUT 'http://localhost:9200/image3/' -d' | |
{ | |
"settings": { | |
"index":{ | |
"analysis":{ | |
"tokenizer" : { | |
"kuromoji" : { | |
"type" : "kuromoji_tokenizer" | |
} | |
}, | |
"analyzer" : { | |
"analyzer" : { | |
"type" : "custom", | |
"tokenizer" : "kuromoji" | |
} | |
} | |
} | |
} | |
} | |
}' | |
{ | |
"query":{ | |
"more_like_this" : { | |
"fields" : ["text"], | |
"ids": ["24b06de5c93d8e4bf4db4aa2efe11158"], | |
"min_term_freq": 1, | |
"min_doc_freq": 1 | |
} | |
} | |
} | |
{ | |
"query" : { | |
"match": { | |
"text": "ビジュアルプログラミング" | |
} | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment