A DIMSEARCH_CONFIG element sets up the configuration of standard and managed attributes for value searches. Value searches search against the text collection that consists of the names of all the attribute values in the data set.
<!ELEMENT DIMSEARCH_CONFIG (COMMENT?, PARTIAL_MATCH?)> <!ATTLIST DIMSEARCH_CONFIG FILTER_FOR_ANCESTORS (TRUE | FALSE) "FALSE" RELRANK_STRATEGY CDATA #IMPLIED >
The DIMSEARCH_CONFIG element has the following attributes.
FILTER_FOR_ANCESTORS
When set to TRUE, the results of a value search return only the highest ancestor attribute value. This means that if both bike clothes and bike vests match a search query for "bike" and FILTER_FOR_ANCESTORS is set to true, only the bike clothes attribute value is returned. When set to FALSE, then both attribute values are returned. The default value is FALSE.
RELRANK_STRATEGY
Specifies the name of a relevance ranking strategy for value search.
The following table provides a brief overview of the DIMSEARCH_CONFIG sub-elements.
Sub-element | Brief description |
---|---|
COMMENT | Associates a comment with a parent element and preserves the comment when the file is rewritten. This element provides an alternative to using inline XML comments of the form <!-- ... -->. |
PARTIAL_MATCH | Specifies if partial query matches should be supported for the managed attribute. |
This example shows a configuration that displays ancestor attribute values.
<DIMSEARCH_CONFIG FILTER_FOR_ANCESTORS="FALSE"/>