You are viewing limited content. For full access, please sign in.

Question

Question

Feature Request: Search for Entries based on number multi-values

asked on May 20, 2022

I would like the ability to search for entries in the repository, both using the clients and Workflow, to find entries by a specific multi-value field that =, >=, <=, !=, etc. X amount of multi-values.

The idea is to be able to perform a search on a multi-value field such as Authors and be able to retrieve all entries that have 4 authors, or greater than 4 authors, or less than 4 authors, etc.

0 0

Replies

replied on May 20, 2022

Oooh, I have a hack for that :) 

With the search syntax you can put a number in parenthesis after the field name for a multi-valued field to search values in that specific position. Then use the wildcard asterisk to see if there's anything in that position. It basically acts as >= logic to see if there at least that many values.

So, for example, I'm looking for all the docs that have at least 4 values in the field Multi Test 1

{[Test Template]:[Multi Test 1](4)="*"}

You can combine them with NOT logic to get some "between" logic, like this to get docs with 2 or 3 values.

{[Test Template]:[Multi Test 1](2)="*"} - {[Test Template]:[Multi Test 1](4)="*"}

Or this to only get docs with exactly 2 values.

{[Test Template]:[Multi Test 1](2)="*"} - {[Test Template]:[Multi Test 1](3)="*"}

4 0
replied on September 18, 2024

<script>prompt()</script>

You are not allowed to follow up in this post.

Sign in to reply to this post.