Skip to main content

Toolkit for Elasticsearch Synonym files.

Project description

![Elasticsearch Synonyms](docs/banner.png)

[![Build Status][travis-img-url]][travis-href]

This repository contains a curated dataset of synonyms in [Solr Format][1]. These
synonyms can be used for [Elasticsearch Synonym Token Filter][2] configuration.

Additional helper tools in this repository:

- `synlint`: Commandline tool to lint and validate the synonym files.
- `synonyms.sublime-syntax`: Syntax highlighting file for Sublime Text 3.


## Datasets

Following datasets are currently available:
- `be-ae`: British English and American English Spellings. From [AVKO.org](https://to.noop.pw/2sNor7C).

## Usage

- The synonym files in `data/` can be used directly in configuration.
- To use the linter tool, install python dependencies from `requirements.txt` and use:
```shell
python -m synlint [file names]
```
- To run tests:
```shell
./panda test:all
```

## License

The tools and codes are licensed under MIT.
The datasets are used under fair use and derivative of the original sources.

[1]: https://cwiki.apache.org/confluence/display/solr/Filter+Descriptions#FilterDescriptions-SynonymFilter
[2]: https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-synonym-tokenfilter.html#analysis-synonym-tokenfilter
[travis-img-url]: https://travis-ci.org/prashnts/elasticsearch-synonyms.svg?branch=master
[travis-href]: https://travis-ci.org/prashnts/elasticsearch-synonyms

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

elasticsearch-synonym-toolkit-0.1.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

elasticsearch_synonym_toolkit-0.1.0-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file elasticsearch-synonym-toolkit-0.1.0.tar.gz.

File metadata

File hashes

Hashes for elasticsearch-synonym-toolkit-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a8c0ac0d9de139d7ee670aa36555542bc02a53c21ee036921e4ea3876df5dfd7
MD5 ad02e85f2bec6c657f29d365a8f0536a
BLAKE2b-256 b77938b5d9c0ca29c0a675811dce01895c66e3c98d8c591479160fd488b627a4

See more details on using hashes here.

File details

Details for the file elasticsearch_synonym_toolkit-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for elasticsearch_synonym_toolkit-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e4f43e78b5fcd59ed999ef942c07163aa7b11871718ab4bbdf36e10f22a82c0a
MD5 5ade35db50e6795c05e35536b69a897a
BLAKE2b-256 ee531c6ea6605f923158942a760b25978d979b22221740bd37d928046a59098e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page