Search filter syntax query

177 views
Skip to first unread message

ddbtest...@gmail.com

unread,
Oct 26, 2015, 8:16:54 AM10/26/15
to ResourceSpace

Hi,

Is it possible to apply a "not equals" search filter, based on two criteria?


document type!=internal;country!=UK


I'd like this to return search results for all assets, excluding internal documents where the country is set to UK.
However, this particular syntax seems to return results for documents that aren't internal, AND documents that aren't UK...

I hope that makes sense.  I need to combine the two criteria basically.

Many thanks for any assistance with this.

Allison M Stec

unread,
Oct 27, 2015, 1:28:10 PM10/27/15
to resour...@googlegroups.com
Without looking too deeply at this, "and" search filters should work in the way you're expecting them to.

I do see that document type is two words, which won't work as a shorthand name. Considering you're saying that non-internal documents are being returned, this might be your issue.

Here's the shorthand name note:

Important: Shorthand name must be set for the field to be appear on the search bar, in Advanced search or to be used in search/edit filters. It must contain only lowercase alphabetical characters - no spaces, numbers or symbols.
--
ResourceSpace: Open Source Digital Asset Management
http://www.resourcespace.org
---
You received this message because you are subscribed to the Google Groups "ResourceSpace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to resourcespac...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
--
ResourceSpace Developer
Reseller of Colorhythm's Prismpoint Portal DAM

Dan Huby

unread,
Oct 28, 2015, 9:00:24 AM10/28/15
to ResourceSpace
Allison is exactly right - it should work as you describe, but the short name containing a space is the issue here.

Dan

ddbtest...@gmail.com

unread,
Oct 28, 2015, 10:00:31 AM10/28/15
to ResourceSpace
Thanks both, really appreciate the responses.
Apologies, in fact my example should have read more along the lines of:

documenttype!=internal document;country!=UK

As the field value itself has a space in, is it necessary to put this in quotes?  e.g

documenttype!="internal document";country!=UK

Or will it take the quotes as literal values?

I would just change the value of "internal document" to "internal-document", but then I'll be left with inconsistent metadata on previous assets..

Allison M Stec

unread,
Oct 29, 2015, 4:37:22 PM10/29/15
to resour...@googlegroups.com
You shouldn't have to surround the phrase in quotes due to the space.

If documenttype is a dropdown, checkbox, radio, or dynamic keyword field you can use the manage field options area to change the keyword as you like.

I can't seem to recreate this issue. Is it possible that the results that should be filtered have custom access? Aside from that or an issue with stemming, I'm out of ideas.
--
ResourceSpace: Open Source Digital Asset Management
http://www.resourcespace.org
---
You received this message because you are subscribed to the Google Groups "ResourceSpace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to resourcespac...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages