You can enable wildcard matching for a search interface by adding one or more wildcard-enabled properties and dimensions to the search interface.
Use the Search Interface editor in Developer Studio to add the desired properties and dimensions. Wildcard search can be partially enabled for a search interface. That is, some members of the search interface are wildcard-enabled while the others are not.
Searches against a partially wildcard-enabled search interface follow these rules:
The search results from a given member follow the rules of its configuration. That is, results from a wildcard-enabled member follow the rules of wildcard search while results from non-wildcard members follow the rules for non-wildcard searches.
The final result is a union of the results of all the members (whether or not they are wildcard-enabled).
You should keep these rules in mind when analyzing search results. For
example, assume that in a partially wildcard-enabled search interface,
Property-W
is wildcard-enabled while
Property-X
is not. In addition, the asterisk
(*
) is not configured as a search character. A record search
issued for
woo*
against that search interface may return
the following results:
However, because the returned record set is a union, the user will see
all the records. A possible source of confusion might be that if snippeting is
enabled, the records from
Property-X
will not have
wood
and
wool
highlighted (if they exist), while the records
from
Property-W
will have all the search terms
highlighted.
To enable wildcard search with the Search Interface editor in Developer Studio:
Note
If you have a partially wildcard-enabled search interface, the
MDEX Engine logs an informational message similar to the following example:
Search interface "MySearch" has some fields that have
wildcard search enabled and others that do not. A wildcard search will behave
differently when applied to wildcard enabled fields than when applied to other
fields in this search interface (see the documentation for more details).
Fields with wildcard indexing enabled: "Authors" "Titles" Fields with wildcard
indexing disabled: "Price".
The message is only for
informational purposes and does not affect the search operation.