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

Version 10 Version 5
== Line 0 == == Line 1 ==
This page has now moved to http://openguides.org/page/search_help . Please update your bookmarks.
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: [http://www.openguides.org/london/supersearch.cgi?search=pub 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. ''''[
http://www.openguides.org/london/supersearch.cgi?search=h%2aow 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 ''''[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).

==== 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:

* ''''[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]''''

==== 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.

== Line 2 == == Line 43 ==
edit_type='Normal edit'
category='Wiki Info'
== Line 5 ==
host='82.69.47.157'
== Line 7 ==
major_change='1'

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