Using entity search

The IbsenStage entity search employs the MySQL full text search system. The search format is based on word hits, but you can also search for exact literal phrases and with string expansion. The syntax follows many standard search engines, like google etc. The notion "word" is defined by strings separated by space or punctuation characters. All searches are case sensitive.

Simple options

In the IbsenStage entity search, you can use the following syntax when searching

  • searchword

    Words prepended by nothing implicits "or". If you type in several words in the search box, you'll get all hits containing any of the words, or both, naturally.

  • +searchword

    "+" means "AND". Thus, if you type in several words prepended by "+", you get all entities containing all words. For instance, if you search for "+ibsen +dukkehjem", you get all entities containing both "ibsen" and "dukkehjem".

  • -searchword

    "-" means "NOT". Thus, if you type in a word prepended by a "-", you'll get all entities NOT containing the specified word.This can be combined with + (AND) and - (NOT). If you search for type in "+ibsen -dukkehjem", you get all entities containing "ibsen" but not those containing "dukkehjem".

  • search*

    "*" is the string expansion character. Thus searching for "search*" will return entities containing "searchhits" as well as "searchwords".

  • "search phrase"

    Enclosing a phrase in quotation marks will return all entities in which the search phrase can be found.

Advanced options

In addition to the simple options you can use advanced functions, for instance commands to specify distance between words hit, raise or lower hit relevance "weight". See http://dev.mysql.com/doc/refman/5.6/en/fulltext-boolean.html for a complete list of what you can do. The most important feature is the ability to specify word distance:

  • Distance between words: "word1 word2 word3" @3

    This search string will look for "word1", "word2" and "word3" where these three words are at a maximum distance of 3 words from each other.