Is it possible to add a second synonym list?

(from github.com/zackhorvath)
Hello,

I was wondering if there was a way to add a second (or more!) synonym.txt file to Fess and have it appear in the UI? We are crawling a few different sites that will likely have different synonym sets. I’ve tried manually creating a “synonym_test.txt” in /usr/share/fess/app/WEB-INF/classes/fess_indices/fess and adding an additional block to esclient.xml, but I am unfamiliar with the UI side of Fess. I imagine that there is also an issue with getting synonym_test into .configsync as well.

Thanks!

(from github.com/zackhorvath)
Thinking aloud here - I think the best course of action here would probably be to run each separate site in a dockerized Fess instance - that way we don’t need to deviate from the original Fess design. Has anyone else spent any time on multiple synonym lists on a single Fess instance?

(from marevol (Shinsuke Sugaya) · GitHub)

I’ve tried manually creating a “synonym_test.txt” in /usr/share/fess/app/WEB-INF/classes/fess_indices/fess and adding an additional block to esclient.xml

and

  • Modify doc.json to add synonym_test.txt
  • Run Reindex on Maintenance page

(from github.com/zackhorvath)
Will doing this also allow us to edit the new “synonym_test.txt” file from the Fess UI? Or will we need to do manual edits?

Thank you!

(from github.com/zackhorvath)
Oh! There it is! Thanks for the help :slight_smile:

Edit: For other people reading this, I added a second synonym list by adding it to fess.json, mapping it in doc.json, and modifying esclient.xml with a block that looks for synonym_test.txt. The end-state for this will be to have separate synonyms for significant terms, misspellings, and more.