The Open Guide to London: the free London guide - Differences between Version 6 and Version 5 of Search Script

Version 6 Version 5
== Line 2 == == Line 2 ==
We (the OpenGuides team) are very interested in feedback on using the search - for how to give feedback, please refer to the pages [[bug reports]] and [[Feature Requests]].
''Note: this facility is currently being rewritten as a module for the main OpenGuides CGI Wiki; the page needs rewriting when this is complete. This documentation is out of date and reflects the behaviour of the usemod search software.'' --[[IvorW]]
== Line 4 ==
Please post any bugs or issues to [[bug reports]], and enhancement ideas to [[Feature Requests]].

== Line 12 == == Line 14 ==
The top of the list is [[Pub Crawls]]. This list runs to many pages - just click the ''''More'''' button to go on to the next set of 20 entries.
The top of the list is (unsurprisingly) [[Category Pubs]]. This list runs to many pages - just click the ''''More'''' button to go on to the next set of 20 entries.
== Line 14 == == Line 16 ==
==== More than one word ====
==== Wildcards ====
== Line 16 == == Line 18 ==
Similar to the Google search engine, you can look for more than one word at a time. For instance, if you are looking for pubs that do
vegan food
, try:
A single word search only matches literally that word. It will not match plurals or words beginning with the target. Although ''''pub'''' did not match on ''''pubs'''', it also did not match on ''''member of the public'''' or ''''public right of way''''.
== Line 19 == == Line 20 ==
[http://www.openguides.org/london/supersearch.cgi?search=pub+vegan pub vegan]
If you actually want to search for the beginning of a word, use the asterisk '*', as in ''''pub*''''. The asterisk is a ''wildcard'' which stands for zero or more letters. You can use the asterisk in place of any part or parts of the word. ''''[http://www.openguides.org/london/supersearch.cgi?search=h%2aow h*ow]'''' besides matching ''''how'''', matches ''''Harrow'''', ''''Hounslow'''' and ''''Heathrow''''.
== Line 21 == == Line 22 ==
Note that this can be considered a search for 'pub' AND 'vegan'.
Less useful is the wildcard '%', which stands for any single letter. Though it does have its uses, a search on ''''[http://www.openguides.org/london/supersearch.cgi?search=wc2%25 wc2%]'''' will find references to post codes in WC2 (which are suffixed by a letter).
== Line 23 == == Line 24 ==
==== More than one alternative ====
==== Multiple words ====
== Line 25 == == Line 26 ==
What if you have several alternatives for what you are looking for?
Use a list with commas:

If you string together a sequence of words, i.e. a phrase, the search will look for those words occurring together, in that order, ignoring completely any punctuation.
== Line 28 == == Line 28 ==
[http://www.openguides.org/london/supersearch.cgi?search=young's,+fuller's young's, fuller's]
==== Boolean logic ====
== Line 30 == == Line 30 ==
[http://www.openguides.org/london/supersearch.cgi?search=young's,+fuller's+brewery young's, fuller's brewery]
Advanced use of the search enables the results of several searches to be combined. The operators available are '&' (AND), '|' (OR), '!' (NOT) and the parentheses '('...')'.
== Line 32 == == Line 32 ==
Note the precedence. If you want different precedence, you can use
parentheses '(' ')'. For example to search for a cheap restaurant or a takeaway
:
Examples:
== Line 35 == == Line 34 ==
[http://www.openguides.org/london/supersearch.cgi?search=(cheap+restaurant),+takeaway (cheap restaurant), takeaway]
* ''''[http://www.openguides.org/london/supersearch.cgi?search=king%27s+head&fuller%27s king's head&fuller's]''''
* ''''[http://www.openguides.org/london/supersearch.cgi?search=veg%2aan%26takeaway veg*an&
takeaway]''''
* ''''[http://www.openguides.org/london/supersearch.cgi?search=%28pub%7cbar%29%26food
(pub|bar)&food]''''
== Line 37 == == Line 38 ==
==== Phrase search ====
==== Quoted literal text ====
== Line 39 == == Line 40 ==
What if you want the words you are looking for to only appear in
a certain order
? Place a set of quotes "" around the phrase
What if you actually want to search on something including punctuation and "funny characters"? You can do this with a literal text match. use a pair of ""s around your text, and it will be treated as it is (note: this type of search will also be case sensitive). You can use this in place of a sequence of words. Note that you cannot mix the sequence of words with quoting, but you can combine the searches with the boolean operators.
== Line 42 ==
[http://www.openguides.org/london/supersearch.cgi?search=%22the+king's+head%22 "the king's head"]


== Line 47 ==
edit_type='Normal edit'

OpenGuides uses a powerful search mechanism we have developed ourselves.

Note: this facility is currently being rewritten as a module for the main OpenGuides CGI Wiki; the page needs rewriting when this is complete. This documentation is out of date and reflects the behaviour of the usemod search software. --IvorW

Please post any bugs or issues to bug reports, and enhancement ideas to Feature Requests.

Simple searches

Just by entering a single word into the search box will bring up a list of pages containing the word. The page with the most occurrences of the word will appear at the top, though only the first 6 occurrences are listed. Note that occurrences of the word in the title are significantly weighted up, so these appear at the top of the search.

Example: (Please try it by clicking the link)

Search: pub

The top of the list is (unsurprisingly) Category Pubs. This list runs to many pages - just click the 'More' button to go on to the next set of 20 entries.

Wildcards

A single word search only matches literally that word. It will not match plurals or words beginning with the target. Although 'pub' did not match on 'pubs', it also did not match on 'member of the public' or 'public right of way'.

If you actually want to search for the beginning of a word, use the asterisk '*', as in 'pub*'. The asterisk is a wildcard which stands for zero or more letters. You can use the asterisk in place of any part or parts of the word. 'h*ow' besides matching 'how', matches 'Harrow', 'Hounslow' and 'Heathrow'.

Less useful is the wildcard '%', which stands for any single letter. Though it does have its uses, a search on 'wc2%' will find references to post codes in WC2 (which are suffixed by a letter).

Multiple words

If you string together a sequence of words, i.e. a phrase, the search will look for those words occurring together, in that order, ignoring completely any punctuation.

Boolean logic

Advanced use of the search enables the results of several searches to be combined. The operators available are '&' (AND), '|' (OR), '!' (NOT) and the parentheses '('...')'.

Examples:

Quoted literal text

What if you actually want to search on something including punctuation and "funny characters"? You can do this with a literal text match. use a pair of ""s around your text, and it will be treated as it is (note: this type of search will also be case sensitive). You can use this in place of a sequence of words. Note that you cannot mix the sequence of words with quoting, but you can combine the searches with the boolean operators.


List all versions