Dev/endeca

How to troubleshoot if a thesaurus entry is working

2ssoosike 2009. 3. 18. 20:05

How to troubleshoot if a thesaurus entry is working

-----Question-----

I am using a thesaurus entry but I'm not sure it is firing. How can I tell whether this entry is being used by the MDEX Engine?


-----Answer-----

Enable the --whymatch option on the MDEX Engine. Using an Endeca Reference application, search for the term that should trigger the thesaurus entry. The reference application will display a new property on each record called "DGraph.WhyDidItMatch" and the value for this property will include a tag specifying whether the match was produced by the thesaurus.

For example, in the sample wine data application, creating a one-way thesaurus entry for "French-> France" and searching for "French" causes the following property value to be returned:

DGraph.WhyDidItMatch: P_WineType: France (Thesaurus)