Searching - Word Breaks
FieldNameword=XX
Normally WebCatalog searches for any text in a field, regardless of where it is in a sentence or even if it is in the middle of a word. You can tell WebCatalog to search for whole words (letters surround by spaces, commas, etc) or only the beginning of a word by setting word-break options.
If your database has a field called "Description", and you want to look for records that contain "graph" only at the beginning of words in the Description field, the URL would look like this:
http://Results.tpl?command=search&woDescriptiondata=graph&Descriptionword=sw&db=SomeDatabase.db
|
word |
Description |
|---|---|
|
ss |
substring match Descriptionword=ss will look for "graphic" and find anywhere inside "I like typographic conventions" and "This is a graphic" and "Graphical user interfaces are cool" |
|
ww |
whole word match (can be modified with wbrk to define word-break
characters) Descriptionword=ww will look for "graphic" and will not find it inside "I like typographic conventions". It will be found inside "This is a graphic" |
|
sw |
start of word (can be modified with wbrk to define word-break
characters) Descriptionword=sw will look for "graphic" at the beginning of words, like "This is a graphic" and "Graphical user interfaces are good", but will not find it inside "I like typographic conventions" |