The MDEX Engine returns word interpretation match information in ESearchReport objects.

This word interpretation information is useful for highlighting or informing users about query expansion.

The Java ESearchReport.getWordInterps() method and the .NET ESearchReport.WordInterps property return the set of word interpretations used in the current text search. Each word interpretation is a key/value pair corresponding to the original search term and its interpretation by the MDEX Engine.

In this thesaurus example, assume that you have added the following one-way thesaurus entry:

cab > cabernet

If a search for the term cab finds a match for cabernet, a single word interpretation will be returned with this key/value pair:

Key="cab" Value="cabernet"

When there are multiple substitutions for a given word or phrase, they are comma-separated; for example:

Key="cell phone" Value="mobile phone, wireless phone"

In this Automatic Phrasing example, a search for the terms Napa Valley are automatically phrased to "Napa Valley". A key/value word interpretation is returned with the original search terms as the key and the phrased terms in double quotes as the value.

Key=Napa Valley Value="Napa Valley"

The following code snippets show how to retrieve word interpretation match information.

Copyright © Legal Notices