The QueryRequest class has a parserOptions property for specifying natural language processing options. These options are encoded as XML in the search request. To simplify the coding of your pages, the parserOptions property is set to a component of class atg.search.routing.command.search.ParserOptions; rather than constructing the XML directly, you specify the options by setting properties on this component, in either a properties file or a JSP. When a query is issued, the ParserOptions component takes care of constructing the XML and including it in the input sent to Oracle ATG Web Commerce Search.

The following is an example of setting a property of the ParserOptions component in a JSP:

<p>Maximum expansions: <dsp:input type="text"
    bean="${FH}.searchRequest.parserOptions.wildcardMax"/>

You can also specify the XML directly by setting the xml property of the ParserOptions component. This is useful if you want to initialize the XML in a properties file. For example:

xml=<parserOptions><language>en_US</language></parserOptions>

For information about the natural language processing options and their possible values, see the ATG Search Query Guide.