Phrase module behavior

This topic describes some aspects of the behavior of the Phrase module with other features of the Oracle Endeca Server.

Effect of search modes

Oracle Endeca Server provides a variety of search modes to facilitate matching during search (Any, All, Partial, and so on). These modes only determine which results match a user’s query, they have no effect on how the results are ranked after the matches have been found. Therefore, the Phrase module works as described in this section, regardless of search mode. The one exception to this rule is Boolean. Phrase, like the other relevance ranking modules, is never applied to the results of Boolean queries.

Results with multiple matches

If a single result has multiple subphrase matches, either within the same field or in several different fields, the result is slotted into a stratum based on the length of the longest subphrase match.

Stop words

When using the Phrase module, stop words are always treated like non-stop word terms and stratified accordingly.

For example, the query "raining cats and dogs" will result in a rank of two for a result containing "fat cats and hungry dogs" and a rank of three for a result containing "fat cats and dogs" (this example assumes subphrase is enabled).

Cross-field matches

An entire phrase, or subphrase, must appear in a single field in order for it to be considered a match. In other words, matches created by concatenating fields are not considered by the Phrase module.

Notes about the Phrase module

Keep the following points in mind when using the Phrase module:
  • If a query contains only one word, then that word constitutes the entire phrase and all of the matching results will be put into one stratum (score = 1). However, the module can rank the results into two strata: one for records that contain the phrase, and a lower-ranking stratum for records that do not contain the phrase.
  • Because of the way hyphenated words are positionally indexed, it is recommended to enable subphrase if your results contain hyphenated words.