COI Toolkit Beta


6
Search

Top level advice on how to implement simple and advanced search on your site, and the essentials of providing search results that can be readily understood and refined


6a Search form design


Simple search

  • Make simple search available from every page (a simple search form or a link to a search page – see note below)
  • Provide an obvious and appropriate label (or hint in the text box) that provides the scope of the search
    • For example, ‘search this site’
  • For a simple search form use a single text entry box
  • Provide an obvious button to submit the search
  • Place the search consistently across the site
  • Only provide extra options (such as extra filters) if these are likely to be used frequently and your site is big enough that it is likely to produce enough results to warrant it
    • If using extra filters, ensure the default is set appropriately in case it goes unnoticed
    • Choose the most simple form elements for the filter – a radio button, check boxe or a drop-down menu [see 5c]

Advanced search

  • Include an advanced search to assist people if they need to perform complex searches, such as:
    • Combinations of search terms using AND/OR (known as ‘boolean logic’)
    • Searching in a certain area or for a certain category of output only (sometimes called ‘faceted search’)
  • If it is likely to be often needed, include a link to an advanced search next to the simple search form
    • Otherwise make the advanced search option available once an initial search has been made to allow the user to refine the results
  • In the advanced search form:
    • Use appropriate form elements to assist people to construct more complex searches without them needing to understand Boolean logic
    • Provide the most useful filters

Additional considerations:

If possible implement a search algorithm that performs ‘fuzzy’ rather than exact matching so results will be returned for:

  • Plurals and fragments of words
  • Misspellings
  • Related words and concepts

If possible, provide the ability for expert searchers to construct boolean and other more complex queries by typing directly into the simple search box, rather than having to fill out the advanced search

Notes and discussion points

Should it just be a link to basic search on every page instead of a simple form?
If search is going to be used a lot on your site, put a form directly on each page that will enable a simple search to be executed – otherwise you might consider just a link to an appropriate search form

For a simple search ensure that it is obvious what is being searched – e.g. use <search this site> as a label for the text box or as the button text. If it is obvious due to its placing in the page what is being searched then more minimal labels can be used (just <search> for the text box and <go> for the button For a simple search provide filters only if necessary. Choose the most simple control (usually a radio button or drop down) Advanced search link directly under the simple search Screenshot of the advanced search from Directgov showing help with entering Boolean logic, dropdown filters for date ranges and checkboxes for restricting the search to sections of the site

© Crown Copyright 2004-2010