This example shows a simple query rule. Assume that your company sells clothing. The content tags Men’s and Women’s clothing with an item property, but these words themselves do not appear in the searchable text. Therefore, if a user searches for “Men’s shoes” the only matching term is “shoes,” and the results include both men’s and women’s shoes. The query rules check for the terms man, boy, woman, and girl (which also match their plural forms) and adds a property constraint as appropriate.
Pattern | Action |
---|---|
|
|
|
|
|
|
|
|
With these query rules in use, a search for “men’s shoes” triggers an action that adds a property constraint, so that only items where the property Category.Name
has the value Mens
are searched.