0
過濾器我有一個工作彈性的搜索查詢:Elasticsearch - 定義查詢字符串,如C#
{
"query": {
"filtered": {
"filter": {
"bool": {
"must": [
{
"term": {
"IsDeleted": false
}
},
{
"query": {
"query_string": {
"fields": [
"payPlan.PayPlanData.*"
],
"query": "(StartInterval :[1 TO 100] AND (EndInterval :[1 TO 9999999]))"
}
}
}
]
}
}
}
}
}
是否有可能將它定義爲C#Nest.FilterDescriptor
元素? 的主要問題是定義一個QueryStringQuery
作爲篩選
您使用的是什麼版本的巢? –
NEST 1.7.1,Elasticsearch.Net 1.7.1 – Avishay