这是我的数据......
code
我正在寻找一个过滤范围查询,它也应该包含INCLUDE空值。
我试过这个...并期待所有3个结果,但它返回了0个结果......?
---
output: html_document
runtime: shiny
---
```{r}
f1 <- function(){
inputPanel(selectInput("n_breaks", label = "Number of bins:",choices = c(10, 20, 35, 50), selected = 20))
renderPlot({hist(faithful$eruptions, probability = TRUE, breaks = as.numeric(input$n_breaks))})
}
```
```{r,code = as.character(body(f1))[-1]}
```
非常感谢任何帮助...... 感谢
答案 0 :(得分:1)
您需要做的是bool/should
有range
个查询或缺少score
字段
{
"query": {
"bool": {
"should": [
{
"range": {
"score": {
"lte": 100
}
}
},
{
"bool": {
"must_not": {
"exists": {
"field": "score"
}
}
}
}
]
}
}
}