Question:

I have products with the name "Laptop" and the user write in the textbox "NoteBook" , So I need search result of Laptop.
How to set this configuration and the Solr and what file should I use?


Solution:


Changes are required in synonyms.txt , you can find this file at C:\solr-6.4.2\server\solr\<YourCoreName>\conf\synonyms.txt

You just need to add below line in the end of synonyms.txt.

NoteBook=>Laptop

[Note: Make sure you reload core once you make changes in synonyms.txt]