Creating relevance ranking strategies

You create relevance ranking strategies by modifying the RELRANK_STRATEGIES configuration document.

All configuration documents are present in the data files of the Oracle Endeca Server, for a particular data domain and its corresponding Dgraph process. You can edit them using the format specified in the Dgraph Configuration Reference appendix in this guide. After these documents are edited, you can send them to the Dgraph using the Configuration Web Service or Integrator ETL, thus specifying the configuration you want.

You create a relevance ranking strategy by adding one or more RELRANK_STRATEGY elements to the root RELRANK_STRATEGIES document.

Each RELRANK_STRATEGY element, in turn, contains one or more relevance ranking module elements, such as the RELRANK_INTERP and RELRANK_FIELD module elements in this WineMatch example:
<RELRANK_STRATEGIES>
  <RELRANK_STRATEGY NAME="WineMatch">
    <RELRANK_INTERP/>
    <RELRANK_STATIC NAME="Flavors" ORDER="ASCENDING"/>
    <RELRANK_FIELD/>
  </RELRANK_STRATEGY>
</RELRANK_STRATEGIES>

Keep in mind that the order of the module sub-elements defines the order in which the strategies are applied to the search results.

To create a relevance ranking strategy:

  1. Edit the contents of the RELRANK_STRATEGIES document to add or modify the RELRANK_STRATEGY elements.

    For details on these elements, see the appendix in this guide. The resulting contents of the edited document should look similar to the example above.

  2. Send the RELRANK_STRATEGIES document to the Dgraph using the Configuration Web Service or Integrator ETL.

The new relevance ranking strategy can now be added to a search interface.