Custom queries

In addition to customizing how results are displayed, you can use a component’s Custom Query attribute to customize how AutoComplete searches for matching values. You can use custom queries to search for matches based on properties other than the one for which AutoComplete is configured. For example, the AutoComplete for Building.ApplicationType uses this custom query to search for application type codes based on either a code or a description:

{ApplicationType}* OR {Description}*

As shown below, when a user begins typing an application type description in the Application Type field, AutoComplete shows each code that matches that description.

Application Type field

Custom queries use Lucene.net query syntax. For documentation, see:

http://lucene.apache.org/core/2_9_4/queryparsersyntax.html