Projection Query : Tags filter - OR or AND?

Topics: General, Troubleshooting
Aug 9, 2012 at 8:00 AM

When you filter on multiple tags, does it filter using OR or AND?

ie: What happens if I supply multiple tags?

Aug 10, 2012 at 3:13 AM

Try it ;)

Aug 10, 2012 at 10:00 AM

What is the intended behavior?

Aug 12, 2012 at 6:17 PM

Here's the code in TagsFilter:

x.ContentPartRecord<TagsPartRecord>().Property("Tags", "tags"), x => x.In("TagRecord.Id", ids)

From this you can infer that it looks for items that have any tag that is in the provided list. So that's OR.

Aug 15, 2012 at 11:47 PM

As you can already add a new Group to indicate an OR filter it would be nice if selecting multiple tags in a single filter resulted in an AND.