我正在尝试执行一个搜索,其中外部case ref使用通配符进行部分匹配,但是组织id需要匹配某个id,文件名需要启动/包含ds57,它存储在ds57.pdf、ds57test.pdf等内部,但不确定如何真正实现这一点?
"index" => "document"
"type" => "documents"
"body" => array:4 [▼
"query" => array:1 [▼
"bool" => array:3 [▼
"should" => array:1 [▼
"wildcard" => array:1 [▼
"external_case_ref" => "*itaq*"
]
]
"boost" => "1.0"
"filter" => array:1 [▼
"bool" => array:1 [▼
"must" => array:2 [▼
0 => array:1 [▼
"term" => array:1 [▼
"organisation_id" => 1
]
]
1 => array:1 [▼
"term" => array:1 [▼
"filename" => ".*DS57.*"
]
]
]
]
]
]
]
"highlight" => array:1 [▼
"fields" => array:1 [▼
"external_case_ref" => array:1 [▼
"type" => "plain"
]
]
]
"sort" => array:1 [▼
0 => array:1 [▼
"updated_at" => "desc"
]
]
"explain" => true
]
]
暂无答案!
目前还没有任何答案,快来回答吧!