M2A Search allows searches on event data including the name, description, date fields, and asset IDs. Search results are ordered top to bottom by relevance, and each can be opened to show the events page.
Note
- M2A Search is based on Lucene Query Syntax
- Limitations: Date does not appear in search results but does appear in the event information when clicked on. Label-based searches are not currently supported.
1. Free Text Search
Manchester City
Will return any search result with either Manchester or City in the indexed data. Results with a better match will appear first, ie results containing both of the words Manchester and City will be shown first.
“Manchester City”
Placing quotation marks around the words will return only results that match exactly the search string Manchester City, exactly in that order.
Manchester City v Manchester United
Will return results with any of the above 5 search terms.
2. Search using Boolean operators
Manchester AND City
Will return results with both Manchester and City present
Manchester NOT City
Will return results containing Manchester but exclude those with City, i.e. Manchester United would appear.
City OR United
Will return results with either search term
3. Date-based Search
Date searches must use format “YYYY-MM-DD”. The date must be contained within quotation marks.
Manchester AND "2021-02-10"
Will return results containing Manchester on that date.
4. Numeric range-based Search
You can search for fields within a specific range, using square brackets [] for inclusive range searches and curly braces {} for exclusive range searches:
[3718 TO 3720]
Return all results that contain 3718 or 3719 or 3120
5. Wildcard-based Search
You can use the * character for multiple character wildcards or the ? character for single character wildcards:
Ma?s
Will match Mars, Mass, and Maps, i.e. ? is a wildcard for single characters r, s, p
Ma*s
Will match Mars, Matches, and Massachusetts, i.e. * is a wildcard for single and multiple characters r, tche, ssachusett
6. Fuzzy Search
Adding ~ (a tilde) to the search query will return results that contain words that look like the search word. This helps when knowingly misspelling difficult words.
Manchestur~
Will return results that contain words that look like Manchester.
7. Regex-based Search
Regexes give you even more power. Just place your regex between single quotes and slashes, i.e.
‘/HERE/’
'/303[58]/'
Will return 3035 and 3038 but not 3033