This project is read-only.

Projection Query : Tags filter - OR or AND?

Topics: General, Troubleshooting
Aug 9, 2012 at 9: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 4:13 AM

Try it ;)

Aug 10, 2012 at 11:00 AM

What is the intended behavior?

Aug 12, 2012 at 7: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 16, 2012 at 12:47 AM

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.