In the Projects window, expand the Configuration node in the project you want to modify, and then double-click query.xml.
The file opens in the NetBeans XML editor.
Scroll to the query-builder element that contains the query you want to modify.
Modify any of the attributes listed in Master Index Query Builder Dialog Box Fields and XML Elements.
For example:
<query-builder name="ALPHA-SEARCH" class= "com.sun.mdm.index.querybuilder.MyQueryBuilder" parser-class= "com.sun.mdm.index.configurator.impl.querybuilder.KeyValueConfiguration" standardize="true" phoneticize="false"> </query-builder> |
To add a new query parameter (for custom query builders only):
In the new config element, create an option element and then define key and value attributes for the new element.
For example:
<config> <option key="SearchAlias" value="true"/> </config> |
See Master Index Query Builder Dialog Box Fields and XML Elements for information about the key and value pairs available to the default basic queries.
To modify a parameter, scroll to the option element that defines the parameter and then change the value of the value attribute.
To delete a parameter, scroll to the config element of that query, and then delete the option element containing the parameter to remove.
For example, to remove the SearchAlias parameter in the following sample, delete the boldface text.
<config> <option key="SearchAlias" value="true"/> <option key="UseWildCard" value="false"/> </config> |
For blocking queries, you can modify query blocks by performing any of the following procedures:
Save and close the file.
To modify or define values to be excluded as criteria (for blocking queries only), go to Filtering Default Values From Master Index Processes.