Ryan Eom
Ryan Eom

Reputation: 387

Solr: how to add unicode character to synonyms?

Right now I have this in my synonyms.txt file, which didn't work:

\u00be, three-quarter, three quarter

I also tried:

\\u00be, three-quarter, three quarter

As well as:

"\u00be", three-quarter, three quarter

Which didn't work either. How do I do this?

Upvotes: 1

Views: 138

Answers (1)

Abhijit Bashetti
Abhijit Bashetti

Reputation: 8668

Add the character into the synonym.txt file.

Re-opened the file in notepad and saved it with UTF-8 encoding.

This would take the character as expected and there is no need to go with unicode code.

Upvotes: 1

Related Questions