The SearchFormHandler class lets you specify multiple search types in a single request. For example, you can search on both keywords and text, or you can combine advanced searching with hierarchical searching to find only items in a particular category.

Search types are combined according to the following rules:

The query can be expressed in this format:

(KeywordConditions OR TextConditions) AND HierarchicalConditions AND

For example, you have a set of recipes and you configure a SearchFormHandler to allow all four types of searches. The site visitor enters the following search criteria:

textInput="boston lettuce"
.fatContent="5 grams"

The search locates all appetizers plus all recipes whose ingredients mention Boston lettuce, but returns only the subset of those recipes that are found in the vegan category and have 5 grams of fat.

Copyright © 1997, 2012 Oracle and/or its affiliates. All rights reserved. Legal Notices