• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Solr inconsistant results with customized synonyms.txt file

New Here ,
Sep 08, 2016 Sep 08, 2016

Copy link to clipboard

Copied

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

Views

248

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 09, 2016 Sep 09, 2016

Copy link to clipboard

Copied

LATEST

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. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation