om

t.c
ar
EXPERIMENTS

m
MULTI-WORD SYNONYMS
is
br
hy

CONFIDENTIAL 35
GOAL

om
MULTI-WORD SYNONYMS

t.c
ar
m
* hybris/Solr has a limited support of multi-word synonyms

is
br
hy

CONFIDENTIAL 36
MULTI-WORD SYNONYMS

om
• Worked in the previous versions of Hybris
• latest versions of Hybris doesn’t support MWS

t.c
• partially the issue is fixed in Solr 6.5 (hybris 6.6?)

ar
m
is
weed whacker
br string trimmer
hy

CONFIDENTIAL 37
MULTI-WORD SYNONYMS

om
Index-time Query-time • Index-time expansion
expansion expansion
• Query-time expansion
What is the What is the

t.c
United
capital of capital of
Airlines
America the USA
• Example:
• Original document:
Query
what is the

ar
Analyzer
Washington is the capital of ADDED
first President the USA United • “Washington is the first president
of the USA United
of the USA”

m
States of
States of America
America
ADDED • Synonyms:

is
Index
Analyzer Documents
Documents • USA->USA, United States of America
with
with USA
States • Queries:
br • What is the capital of America
Documents Documents
with with
• United Airlines
hy
America United
Washington is the
first President Documents with Documents with
• What is the capital of the USA
of the USA Capital what

CONFIDENTIAL 38
MULTI-WORD SYNONYMS

om
Hybris OOTB doesn’t support MWS:

t.c
the USA -> the United States Of America

ar
Very useful for all markets:

m
BIGRAM MATCHING: TYPOS AND MISSPELLINGS: Supporting Acronyms and Slang

is
• High heels -> Highheels • Espreso->espresso
• Highheels -> High heels • Expresso maker -> espresso maker
br
Special cases
• Coca-cola -> cocacola
hy
• 7UP -> 7 UP • Беларусь=Белоруссия
• 7 UP -> 7UP (different ways to name the country)

CONFIDENTIAL 39
om
t.c
ar
MULTI-WORD SYNONYMS

m
SOLUTION
is
br
hy

CONFIDENTIAL 40
MULTI-WORD SYNONYMS

om
User Query: The rule used in the example:
the first president of the USA
“the USA” => “the United

t.c
Phrases used in the the United States of America
search (single words States of America”
aren t here for the United States of America SUBPHRASE BOOST-4

simplicity)

ar
of the United States of America SUBPHRASE BOOST-3

president of the United States of America SUBPHRASE BOOST-2

m
first president of the United States of America SUBPHRASE BOOST-1

the first president of the United States of America PHRASE BOOST

is
USA
the USA
br SUBPHRASE BOOST-4

of the USA SUBPHRASE BOOST-3
hy
president of the USA SUBPHRASE BOOST-2
first president of the USA SUBPHRASE BOOST-1

the first president of the USA PHRASE BOOST

CONFIDENTIAL 41
DRAWBACKS?

om
• Long and complex queries! GET requests limit!
• Subphrase boost value?

t.c
• Depends on the subphrase length but not value

ar
• Stopword removal is needed to avoid subphrases with the stopwords
• Because internally in SOLR

m
“of the USA” === “USA”

is
if “of” & “the” are stop words
br
• However, sometimes it is not correct (“to be or not to be”)
hy

CONFIDENTIAL 42
MULTI-WORD SYNONYMS

om
t.c
ar
m
is
br
hy

CONFIDENTIAL 43