After you define the criteria fields for the MIDM search, you can specify certain options for the search, such as the types of available searches, whether each search is weighted, and whether the search allows wildcard characters.
Wildcards should not be allowed for blocking queries or phonetic searches.
Complete Step 2: Define the Search Fields.
In the simple-search-page element you created, create a search-option element.
For example:
<simple-search-page> <screen-title>Simple Person Search</screen-title> <search-result-id>2</search-result-id> <search-screen-order>1</search-screen-order> <show-euid>false</show-euid> <show-lid>false</show-lid> <field-group> ... </field-group> <search-option> </search-option> </simple-search-page> |
In the new search-option element, create the elements listed in Record Details Search Option Elements and enter the appropriate value for each element.
For example:
<search-option> <display-name>Alpha Search</display-name> <query-builder>ALPHA-SEARCH</query-builder> <weighted>false</weighted> <parameter> <name>UseWildCard</name> <value>true</value> </parameter> </search-option> |
Repeat the previous two steps for each search type you want to make available on the selected search page.
If you define multiple search option elements, an option button (labelled by the value of the display-name element) appears on the search page for each search option.
Save and close the file.