syntax - How to do an IN query in Solr? -
i'm having documents multivalued field "sharedto" contains groups document shared to. want find documents shared @ least 1 of list of given groups. e.g. want find documents shared group "foo" or group "bar" or both. i'm building query this:
sharedto:"foo" or sharedto:"bar"
for each group add new or query part. works, wonder if there more efficient way of doing a
sharedto in ('foo', 'bar')
if default operator or, can give query
sharedto:('foo' 'bar')
if default operator and, you'll have this: sharedto:(foo or bar)
Comments
Post a Comment