Return only items where multi-managed-metadata field contains ONLY certain values

We have a situation where a large document library has a managed managed field for a term with ~1000 terms, such that every document typically has between 1 or 20 or so terms specified.

The issue is that we want to create a view that shows the documents that ONLY use a particular subset of those terms. E.g. if the terms were called A001...A999, then we want to show documents that specify only A001, A002 or A003. If they specify any other term, they shouldn't be shown.  In the simplest case in fact we want a view that only shows documents where the field value is just "A001" and nothing else.

But no matter what combination of <IN> or <Eq> or <Contains> or <Includes> I seem to use, I can't seem to get this to work. Strangely enough for a multi-*CHOICE* field, I can do it, by using <IN> and then all 6 possible subsets of A B & C, formatted as #;A#;B#;C#; as the possible set of values, but for managed metadata <IN> actually seems to act the same as <Eq> - i.e. it simply means "is ONE of the values equal to this", and at any rate I can't seem to find a way of formatting multiple values that causes a match.

If there were only say, 50 or so possible terms then it could be done by simply using a series of <Neq> operations for each value that's not permitted, but when there's 1000+ it breaks the internal query engine.

Any suggestions welcome!

August 25th, 2015 1:39am

Hi,

As I understand, you cannot filter the items on the managed metadata field but it can be achieved in multi-*CHOICE* field in SharePoint 2013.

 How do you filter the items in the managed metadata field? Where do you use the <IN>, <Eq>, <Contains> and <Includes>? Could you please provide more details about the issue?

If you want a view to filter the item based on the managed metadata field, you could create a view and create a filter based on the managed metadata field.

If you filter on the managed metadata field, you could refer to the article below for more detailed information.

The article below is about how to filter on a Managed Metadata column via REST in SharePoint 2013.

http://www.cleverworkarounds.com/2013/09/23/how-to-filter-on-a-managed-metadata-column-via-rest-in-sharepoint-2013/

More reference:

The article below is about Managed Metadata Column Limitations.

http://www.sharepointanalysthq.com/2011/06/managed-metadata-column-limitations/

Best regards,

Sara Fan

Free Windows Admin Tool Kit Click here and download it now
August 26th, 2015 2:57am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics