0
나는 elasticsearch 6.x에서 시도했다. 그러나 결과는 없습니다.검색 배열 매개 변수에 'terms'를 사용하는 방법 Elasticseach
PUT suciptox
{
"mappings": {
"data": {"properties": {
"time_format":{ "type": "date" },
"fieldx": { "type": "text", "fielddata":true, "index": "not_analyzed"
}
}
}
}
}
가져 오기 쿼리
"query": {
"terms": {
"fieldx": [ "L333","xxxx"]
}
}
처럼해야 하는가? 매핑 만들기? 뭔가 검색? – sam
내 쿼리 : GET의 suciptox/데이터/_search { \t "종류": [{ \t \t "TIME_FORMAT": { \t \t \t "순서": "ASC" \t \t} \t}], \t "쿼리": { \t \t \t "용어": { \t \t \t "fieldx"[ \t \t \t "L333"는 \t \t \t \t \t } \t } –
I 참조} \t \t \t] \t \t \t를 "XXXX". 그래서 당신은'fieldx'라는 필드를 가지며 그 데이터 타입은 [배열 타입] (https://www.elastic.co/guide/en/elasticsearch/reference/current/array.html)입니다. 옳은? 그리고'fieldx' 필드가'[ "L333", "xxxx"]'와 일치하는 문서를 찾으려고합니다. – sam