Search syntax, search where not equal - e.g. field != searchterm

70 views
Skip to first unread message

Stephen Hoult

unread,
Jun 12, 2013, 5:57:33 AM6/12/13
to resour...@googlegroups.com
Hi 

Say we had a global field called 'sport' on all images.

Is it possible to do a search for resources where for example sport != football? 

This would show all resources where the 'sport' field is anything other than  'football'.

Cheers

Tom Gleason

unread,
Jun 17, 2013, 4:00:49 PM6/17/13
to ResourceSpace
try -football
> --
> 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/groups/opt_out.
>
>



--
Tom Gleason

Colorhythm LLC
http://www.colorhythm.com

Main Office: +1 415-399-9921
Fax: +1 253-399-9928
Mobile: +1 347-537-8465

tgle...@colorhythm.com

Tom Gleason

unread,
Jun 17, 2013, 4:10:52 PM6/17/13
to ResourceSpace
I believe this omission search only works in the global search
(searching all fields, not a specific one), so you WON'T be able to
limit this specifically to the sport field by using Advanced Search, a
field-specific Simple Search, or the equivalent 'sport:-football'.
So, if you have a baseball file with an indexed caption that says "but
baseball is not as exciting as football", you'd also be omitting that
baseball file incidentally.

Allison Stec

unread,
Jun 18, 2013, 8:36:53 AM6/18/13
to ResourceSpace
You could use advanced search to omit football by including all other options in the search. RS defaults to this search style via the config option below.

# For checkbox list searching, perform logical AND instead of OR when ticking multiple boxes.
$checkbox_and=false;

This is easily done with checkbox lists as long as the options aren't extensive. If you have a lot of options you could set up a smart collection once and share it.
Reply all
Reply to author
Forward
0 new messages