Book Search

Book Search Demo

This Book Search page uses Site Search ONE WordPress Plugin

Site Search ONE WordPress Plugin creates a search page in your default layout, it was edited in the WordPress Block editor to add a column containing a Paragraph block alongside the Shortcode block.

It demonstrates how WordPress Custom Fields can be used to filter search results.

This demo returns all book pages by default; you could enter a search manually to narrow the search like ‚Äď year¬†published contains 1591¬†to find all books first published in 1591, but it is generally quicker to click on the Fields Filter button (1), enter 1591 in the Year Published field, then click¬†Apply!

This image has an empty alt attribute; its file name is search-bar-filter-shadow.png

The Book Search demo has several Custom Fields:

  • Act¬†(try 1, 2 or 3)
  • Scene¬†(try 1,2 or 3)
  • Genre¬†(comedies, tragedies, histories)
  • Title¬†(e.g.¬†king¬†will limit the search to the King Henry 6th play)
  • Year Published¬†(currently the demo plays have published years of 1591, 1594, 1597 only)
  • Author¬†(Shakespeare. Not included in the filter drop down since all the plays are by Shakespeare; a search of¬†author contains shakespeare¬†will return all results)

Other Search Features

Stemming is on by default so that a search for officer for example will find pages with officers or office also, you can also apply stemming to a single word by appending a tilde like this  officer~  matches officer, officers, office

Synonyms uses the Wordnet Thesaurus, if you apply this option, a search on  petty will find pages with  little  or  small  for example. To apply synonyms to a single word append an ampersand (&) like this little&

Soundex is a phonetic algorithm for indexing names by sound, as pronounced in English. It also useful if you are not sure of the spelling of a word, but will give a very broad search and may return unrelated words. Example #antifolas will find pages mentioning Antipholus.