We are trying to search whether documents have a particular field value in a collection of possible values,
field:[value1, value2, value3, ..., valueN]
As @I4V mentioned, Lucene ORs terms by default, so this should give you the wanted result,
public Query In(string propertyName, IEnumerable collection)
{
var query = new QueryParser(version, propertyName, analyzer).Parse(string.Join(" ", collection));
return query;
}
based on,
field:value1, value2, value3, ..., valueN
will return any document with at least one value in the collection.