Configuring Sun Master Indexes

Master Index Query Builder Dialog Box Fields and XML Elements

The following table lists and describes the fields on the Basic Query Builder and Blocking Query Builder dialog boxes on the Configuration Editor, along with the corresponding elements and attributes in query.xml.

Configuration Editor Field 

XML Element/Attribute 

Description 

Query Builder Name

query-builder/name 

A unique ID that identifies the Query Builder and is referenced from midm.xml when specifying the query to use on a search page. It is also referenced from mefa.xml when specifying the query to use for matching. No spaces are allowed in the name. 

Query Builder Class

query-builder/class 

The fully qualified name of the query class. Two default Query Builder classes are provided. 

  • com.sun.mdm.index.querybuilder.BasicQueryBuilder – Builds dynamic queries using all the available input fields. When configured to use normalized and phonetic data, this query performs phonetic searches; when configured to not use normalized and phonetic data, this query is used for exact alphanumeric searches.

  • com.sun.mdm.index.querybuilder.BlockerQueryBuilder – Builds queries using the criteria defined in the block definitions defined for the query. When a blocking query is performed, the application searches only on the blocks for which they query has complete data.

Parser Class

query-builder/ parser-class 

The fully qualified name of the class that parses the configuration elements for each query. The default parser class is com.sun.mdm.index.configurator.impl.querybuilder. KeyValueConfiguration.

Standardize

query-builder/ standardize 

An indicator of whether any of the query criteria is standardized before being passed to the query. On the Configuration Editor, select this check box if any search fields are standardized. In the XML file, enter true if any search fields are standardized; otherwise enter false.

Phoneticize

query-builder/ phoneticize 

An indicator of whether any of the query criteria is phonetically encoded before being passed to the query. On the Configuration Editor, select this check box if any search fields are phonetically encoded. In the XML file, enter true if any search fields are phonetically encoded; otherwise enter false.

Use Wildcard 

option/key 

option/value 

An indicator of whether wildcard characters are allowed when executing this search. This parameter is available for basic queries only. On the Configuration Editor, select this check box if wildcard characters are allowed in any of the search fields.  

In the XML file, each option element configures one parameter for the query and contains a key and value pair. The key attribute names the parameter. For the default basic query, the name is UseWildCard. The value attribute specifies the value of the corresponding key attribute. For the UseWildCard parameter, specify true to allow wildcard characters for that query type; otherwise specify false.

When wildcard characters are enabled, you can enter a percent sign (%) into search criteria to represent multiple unknown characters. 


Note –

If you define a custom query, you can use key and value options to define any required parameters.