Skip to main content
Participant
September 8, 2016
Question

Solr inconsistant results with customized synonyms.txt file

  • September 8, 2016
  • 1 reply
  • 376 views

I'm am using a customized synonyms.txt file to create product / technical term synonyms as well as spelling corrections for product names.

There seems to be an issue with spaces. Some work and some don't. This doesn't have a pattern nor make any sense to me. Can someone help?

Config: ColdFusion v11.10 Ent. Win 2012 DC

reference: Adobe ColdFusion 9 * Solr search examples

Here's a the customized file:

Items in bold do not work.

# Some synonym groups specific to this example
"GB,gib,gigabyte,gigabytes"
"MB,mib,megabyte,megabytes"
"Television, Televisions, TV, TVs"
"#notice we use ""gib"" instead of ""GiB"" so any WordDelimiterFilter coming"
#after us won't split it into two words.

"ip edge, ipedge"

"telephone, phone"

"e-mail, email"

# Synonym mappings can be used for spelling correction too

pixima => pixma

vip edge => vipedge

ip-edge, ip edge => ipedge

uc edge,uc-edge => ucedge

zeds => phone

manger => manager

confrencing => conferencing

busness => business

fone => phone

collabortion => collaboration

fedration => federation

unfied => unified

comunication => communication

mobilty, moblity => mobility

telefone => telephone
presents => presence

fire wall => firewall

sofphone => softphone

mesaging, messging => messaging

servce =>  service

wirless => wireless

call centre => call center

cloud technolgy =>cloud technology

on site, on premise, on-premise => on-site

off site, off premise, off-premise => off-site

This topic has been closed for replies.

1 reply

WolfShade
Legend
September 9, 2016

It's been a while since I worked with Solr collections.  But, I did find this link that might give you some insight.  It might be a RegEx solution. 

HTH,

^_^

UPDATE:  OOOOH!!  I found an even better page that goes on to explain WHY it works the way it does, and how you might work around it.