Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Analysis: Synonym Token Filter #900
Add a synonym token filter. The synonym token filter can be configured in the following manner:
The above configured a
Here is a sample format of the file (uses the same solr file format):
I'd like to see Synonym analyzer added into ElasticSearch. The Solr equivalent is the SynonymFilterFactory.
My example use case is searching for jobs:
When I search for "ruby developer", I'd like also documents matching "ruby programmer", "ruby engineer", "ruby coder" returned.
When I search for "ZF developer", I'd like also documents matching "Zend Framework programmer", "ZF programmer" returned.
The synonym list could be passed similarly to the StopAnalyzer.
Is something like this possible to do with a custom analyzer in ES curently?
this has been refactored into the lucene analysis module in 4.0... might be a good start, you just have to construct the synonym map somehow from however you want the input file to look: