- Get link
- X
- Other Apps
- Get link
- X
- Other Apps
As of now we have created custom Index. let's implement synonyms words for search.
Please follow
Custom Oak Indexes Part-1 for Custom Index Creation
synonyms : In most of the search implementation search should work for synonym words. Example : If a user is searching for Mumbai or Bombay or BOM , results should be same.
Or
- Create analyzers node : type - nt:unstructured
- Create default node : type - nt:unstructured
- Create filters node : type - nt:unstructured
- Create Synonym node : type - nt:unstructured
Properties
synonyms : synonyms.txt [String]
- Create synonyms.txt file : type - nt:file
After reindex changes will start reflecting.
Hope this helps!!
Happy Coding 🙏
- Get link
- X
- Other Apps
Comments
I have configured porter stem under cqPgeLucene as shown below and ran the reindexing but its not working as expected. Does it need any synonys.txt or dictionary for the PorterStem to work.
ReplyDeleteHow I tested is, I have added a word "investor" and "investors" on two different pages and when I search using "investor" then its listing only one page and its is not showing the page where "investors" word is present.
Hi Arun,
DeleteCan you please share the image/screenshot of your custom index. And meanwhile make sure to create the file in the same hierarchy as shown in the blog.
Thanks