Can anybody tell me what the standard operators for searching in Drupal are?

I know I can use "OR" to search for multiple words and use " " to specify word order, but are there others? Can't find them anywhere on the webs

Much appreciated :)

Comments

skifter’s picture

Hi

Its over a yearh since your post. So this is to answer for all the other users that find this post and need the result :-)

You can use AND / OR Operators
You can use excact sentences
And negative words

Excample: (taken from "Pro Drupal Development" - http://goo.gl/f1EIj)
Beatles OR John Lennon "penny Lane" -insect

This searches for Beatles OR John Lennon AND "penny Lane"
But ignores all searches with the word "insect".

It searches in all nodes and forums and looks at the title and body fields:

You can change the index weight for the search result here:
http://next.next.bellcom.dk/admin/settings/search

This is not "in dept" knowlegde so feel free to comment :-)

/Skifter

spartlow’s picture

That's not how my Drupal 7 installation works. I don't know if it's a bug or not but currently, if my I search for this:
Beatles OR John Lennon "penny Lane" -insect
Then it searches for (case does not matter):
("beatles" OR "john") AND "lennon" AND "penny Lane" (and ignores all results that include "insect").
So it's not what you'd expect, or at least it's not what I'd expect. Too bad we can't use parens to choose the order of operations such as:
("beatles" OR ("john" AND "lennon")) AND "penny Lane"