It's probably VERY simple question but still can't find a solution Say I have field id and want to get all records with id 1,2,3,4,5
Which query should I write?
I've tried something like
/select?q=id:1,2,3,4,5
and it does not work
thanks
It's probably VERY simple question but still can't find a solution Say I have field id and want to get all records with id 1,2,3,4,5
Which query should I write?
I've tried something like
/select?q=id:1,2,3,4,5
and it does not work
thanks
试试 /select?q=id:(1 2 3 4 5)
或者/select?q=id:("1" "2" "3" "4" "5")
在您的 id 需要转义的情况下
并检查您的默认运算符(OR|AND)是什么
如果您的id
领域是,int
那么这将不起作用。
csv
被视为String
. 您将不得不OR
像这样使用运算符,q=id:1 OR id:2 OR id:3 OR id:4 OR id:5
即使查询q=id:1 OR 2 OR 3 OR 4 OR 5
将被匹配但被视为String
.