The PARTIAL_MATCH element specifies if partial query matches should be supported for the SEARCH_INTERFACE that contains this element.
For details about searching and search modes, see the information on search features in this guide.
<!ELEMENT PARTIAL_MATCH EMPTY> <!ATTLIST PARTIAL_MATCH MIN_WORDS_INCLUDED CDATA #IMPLIED MAX_WORDS_OMITTED CDATA #IMPLIED >
The PARTIAL_MATCH element has the following attributes.
MIN_WORDS_INCLUDED
Specifies that search results match at least this number of terms in the search query. This value must be an integer greater than zero. The default value of this attribute is two.
MAX_WORDS_OMITTED
Specifies the maximum number of query terms that may be ignored in the search query. This value must be a non-negative integer. If set to zero or left unspecified, any number of words may be omitted (i.e., there is no maximum). The default value of this attribute is two.
The PARTIAL_MATCH element has no sub-elements.
In this example, the search interface is subject to partial matching in which at least two of the words in the search query are included, and no more than one is omitted.
<SEARCH_INTERFACE CROSS_FIELD_BOUNDARY="ALWAYS" CROSS_FIELD_RELEVANCE_RANK="0" DEFAULT_RELRANK_STRATEGY="BikeRelRank" NAME="BikePartSearch"> <MEMBER_NAME RELEVANCE_RANK="2">Body</MEMBER_NAME> <MEMBER_NAME RELEVANCE_RANK="1">Description</MEMBER_NAME> <PARTIAL_MATCH MAX_WORDS_OMITTED="1" MIN_WORDS_INCLUDED="2"/> </SEARCH_INTERFACE>