XML Configuration Reference : Search : RelatedTermModule
 
RelatedTermModule
com.exalead.mercury.mami.search.v20.RelatedTermModule
Expands the query using related terms. Related terms are popular ngrams detected at indexing time. They allow to match popular concepts spanning several words.
Parent elements:
com.exalead.mercury.mami.search.v20.UQLConfig (as UQLConfig)
Attributes:
Name
Type
Default value
Description
name
string
Name of the module. Referenced to target this module in query expansion config.
minSpan
int
3
Minimum number of words (excluding stop words) in a generated related term.
maxSpan
int
6
Maximal number of words (excluding stop words) in a generated related term.
keepLongestMatch
boolean
True
Keeps only the longest match. For example, if you have 5 tokens ('a', 'b', 'c', 'd', 'e') and 4 related terms 'a', 'a-c', 'b-c-d' and 'd-e'. This option will only keep 'b-c-d' and will remove all other related terms.
withPartOfSpeech
boolean
True
Automatically adds a PartOfSpeechTagger to the list of processors.