2
탄성을 찾아 내 항목은 다음과 같다 :"-"대시 그들에 탄성 검색을
입력 :
curl -XPUT "http://localhost:9200/movies/movie/4" -d'
{
"uid": "a-b"
}'
쿼리
curl -XGET "http://localhost:9200/movies/movie/_search" -d '
{
"query" : {
"term" : { "uid": "a-b" }
}
}'
출력 :
{"took":2,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":0,"max_score":null,"hits":[]}}
감사합니다.
또는 uid 필드에 not_analyzed를 사용할 수 있습니다. – vierja