how to set word variations
-
prakashreddy.imduriParticipant4 years ago #31366
I have uncommented this line in schema.xml,

also added an example synonym mapping in synonys.txt

and reindexed all data. Anything more needed to make this work ?
I tried to search for post having title limited, but it should also search for title containing ‘limtd’. I am testing this on localhost.wpsolrKeymaster4 years ago #31372You should use the synonym graph filter
prakashreddy.imduriParticipant4 years ago #31373We have different schema.xml, in which file, this needs to be added ?
wpsolrKeymaster4 years ago #31374solr.SynonymFilterFactory is marked as deprecated. The synonym graph filter is to be used instead. You can find examples in the documentation link.
prakashreddy.imduriParticipant4 years ago #31379As you mentioned to use : You should use the synonym graph filter.
I checked out this link : /manage-elasticsearch-and-solr-analyser-configuration-files/,
We are using Elastic index, is this still applicable to us ?
it has 2 parts: one for elastic search and another for Solr, Can I skip the second part.
We updated the schema and synonyms.txt file, still didnt see any changes related to synonyms, do we need to do those configuration changes mentioned in part 1 or 2 ?- This reply was modified 4 years ago by prakashreddy.imduri.
prakashreddy.imduriParticipant4 years ago #31383Okay. This synonym.txt file should be maintained in server side, or it will be inside plugin only. In case of elastic index, do we need to do anything with schema.xml, when I checked the plugin, I found multiple schema.xml file.
I am checking if we can keep synonym file in plugin, so that I can update frequently without having to push this to server.wpsolrKeymaster4 years ago #31384schema.xml is for Solr indexes only.
There is nothing inside the plugin to push synonyms to Elasticsearch, because there is no API to do that.
(Algolia is the only search engine that provides a way to set synonyms from a dashboard UI)
prakashreddy.imduriParticipant4 years ago #31385Okay, Can we add synonyms to existing index, or new index with synonyms must be created ?
Here, after adding my synonyms file in location [/analysis/synonym.txt], If I run this same command, it will be linked to existing index right ? without any data loss in the index.

- This reply was modified 4 years ago by prakashreddy.imduri.
wpsolrKeymaster4 years ago #31387No, it will not work. This documentation is related to a new index, not set with the WPSOLR’s index definitions.
You will have to create a new index from the command line, with a custom analyser including a synonyms filter.
Let me make some tests, and I’ll post here the command to execute.
prakashreddy.imduriParticipant4 years ago #31388Or is there any way to manipulate queries. We are trying to send the correct query if user enters some spelling mistakes, here not taking about suggestions. but even if user enters wrong spelling, trying to match that words in a text file and send that correct value to query. same concept as mapping in synonym file.. want to use such format of txt
wpsolrKeymaster4 years ago #31389The best way to do it with Elasticsearch is with synonyms files. But it’s not automatic, you’ll have to perform manual tasks (upload the file, and apply a command to reload it)
With Algolia, you can do it live on their UI.
With Weaviate, this is another level: search is based on meaning, and therefore is very resilient to any kind of mismatch between query and content.
prakashreddy.imduriParticipant4 years ago #31390Okay, let me if you get some commands to execute, after your tests.
You must be logged in to reply to this topic.