Giter VIP home page Giter VIP logo

elasticsearch-croatian's Introduction

Elasticsearch compatible Hunspell dictionary for Croatian

Build Status

This dictionary is meant to be used in combination with Elasticsearch's Hunspell Stemmer in order to provide support for searching of Croatian words inside documents. It's based on the hr-hunspell project.

Differences

Removed diacritics

All diacritic letters (č, ć, đ, š, ž) have been substituted with their ASCII equivalents since native Croatian speakers don't tend to use them at search time.

Removed comments

All comments have been omitted from the affix file in order to preserve compatibility with Apache Lucene's dictionary parser.

Building

Building is currently only supported on Linux platforms. You'll need the following tools: awk, bash, cut, grep, sed, wc, zip

  • From the root of the repository run script/build.sh.
  • Grab the release.zip archive from the .build directory and follow the installation instructions.

Installation

  • Extract the downloaded or built ZIP archive contents to <path.conf>/hunspell/hr_HR/. The configuration directory will be at a different location depending on how you installed Elasticsearch.
  • If Elasticsearch is already running, restart it.

Testing

To run tests you'll need to have Docker (17.09+), Python (3.0+) and the following tools: bash, cat, cut, curl, head, tail

  • Build the dictionary.
  • Navigate to the root of the repository.
  • Build the Docker image with docker build --build-arg ES_VERSION=6.5.1 -t spideyfusion/elasticsearch-croatian ..
  • Start the Docker container with docker run --rm -p 9200:9200 spideyfusion/elasticsearch-croatian.
  • Run the tests by executing script/test.sh.

NOTE: You can specify which version of Elasticsearch you want to build using the ES_VERSION build argument (e.g. 5.6.4).

Credits

  • Thanks to Kruno for maintaining the original dictionary.

License

See the LICENSE file for license rights and limitations (MIT). The unmodified dictionary license can be found in the README_hr_HR text file.

elasticsearch-croatian's People

Contributors

spideyfusion avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.