Giter Club home page Giter Club logo

elasticsearch-analysis-greeklish's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

elasticsearch-analysis-greeklish's Issues

Unable to use plugin on Elasticsearch 5.4.0

Hi,
Although the plug in installs fine and logs show it's been loaded:

[2017-09-13T13:05:29,350][INFO ][o.e.p.PluginsService ] [PCName] loaded plugin [elasticsearch-analysis-greeklish]

when i try to use it on a custom analyzer, i get an error like:

{
  "error": {
    "root_cause": [
      {
        "type": "illegal_argument_exception",
        "reason": "Unknown filter type [greeklish] for [greeklish_analysis]"
      }
    ],
    "type": "illegal_argument_exception",
    "reason": "Unknown filter type [greeklish] for [greeklish_analysis]"
  },
  "status": 400
}

Here 's an example for an index that tries to use the plugin

PUT greek_sample
{
  "settings": {
    "analysis": {
      "analyzer": {
        "my_custom_analyzer": {
          "type":      "custom",
          "tokenizer": "standard",
          "filter": [
              "greek_lowercase", 
              "greeklish_analysis"
          ]}
      },
      "filter": {
        "greek_lowercase": {
          "type":       "lowercase",
          "language":   "greek"
        },
        "greeklish_analysis":{
                "type": "greeklish",
                "max_expansions": 15
        }  
      }
    }
  },
  "mappings": {
    "person": {
        "properties": {
            "name": {
                "type": "multi_field",
                "fields": {
                    "greek":  { "type": "string", "analyzer": "greek" },
                    "greeklish": { "type": "string", "analyzer": "my_custom_analyzer" }
                }
            }
        }
    }
  }
}

Elasticsearch: 5.4.0
Plugin version: 5.4.0.1

The case o 'b` as `mp`

Maybe we should consider the usage of mp as b. For example tamplet should be equal to ταμπλετ or tablet.

What do you think;

Plugin Installation

Hi, I am trying o install your plugin and I get the following error:
ERROR: Unknown plugin gr.skroutz/elasticsearch-analysis-greeklish/0.11

The command o install plugins in the current elastic version is:
elasticsearch-plugin install gr.skroutz/elasticsearch-analysis-greeklish/0.11

I have also tried the following command which follows the current version's documentation with no luck.
elasticsearch-plugin install elasticsearch-analysis-greeklish

Please advise.
Thank you.

Unknown filter type [greeklish] for [greeklish_analysis]

Even I have already use this mapping with ES2... Now when I'm trying to create this mapping with ES5, I'm getting the following error

{ "settings":{ "analysis":{ "analyzer":{ "greeklish_analyzer":{ "type":"custom", "tokenizer":"standard", "filter": ["lower_greek","greeklish_analysis"] }, "stem_analyzer":{ "type":"custom", "tokenizer":"standard", "filter": ["lower_greek","stem_greek"] } }, "filter": { "lower_greek": { "type":"lowercase", "language":"greek" }, "stem_greek": { "type":"skroutz_stem_greek" }, "greeklish_analysis":{ "type": "greeklish", "max_expansions": 15 } } } }, "mappings": { "shooters": { "properties": { "activated": { "type": "boolean" }, "company": { "type": "string", "analyzer": "stem_analyzer", "fields": { "english": { "type": "string", "analyzer": "english" }, "greeklish": { "type": "string", "analyzer": "greeklish_analyzer" } } }, "description": { "type": "string", "analyzer": "stem_analyzer", "fields": { "english": { "type": "string", "analyzer": "english" }, "greeklish": { "type": "string", "analyzer": "greeklish_analyzer" } } }, "email": { "type": "string" }, "name": { "type": "string", "analyzer": "stem_analyzer", "fields": { "english": { "type": "string", "analyzer": "english" }, "greeklish": { "type": "string", "analyzer": "greeklish_analyzer" } } }, "username": { "type": "string" } } } } }

ERROR:

{ "error": { "root_cause": [ { "type": "illegal_argument_exception", "reason": "Unknown filter type [greeklish] for [greeklish_analysis]" } ], "type": "illegal_argument_exception", "reason": "Unknown filter type [greeklish] for [greeklish_analysis]" }, "status": 400 }

File plugin-descriptor.properties is missing while installing for elastic 7.13.3

I am trying to install in elastic 7.13.3 and I am facing the following error

-> Installing file:/root/org.elasticsearch-elasticsearch-7.13.3.zip
-> Downloading file:/root/org.elasticsearch-elasticsearch-7.13.3.zip
[=================================================] 100%
-> Failed installing file:/root/org.elasticsearch-elasticsearch-7.13.3.zip
-> Rolling back file:/root/org.elasticsearch-elasticsearch-7.13.3.zip
-> Rolled back file:/root/org.elasticsearch-elasticsearch-7.13.3.zip
Exception in thread "main" java.nio.file.NoSuchFileException: /usr/share/elasticsearch/plugins/.installing-6769439075775869049/plugin-descriptor.properties
at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
at java.base/sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:219)
at java.base/java.nio.file.Files.newByteChannel(Files.java:375)
at java.base/java.nio.file.Files.newByteChannel(Files.java:426)
at java.base/java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:420)
at java.base/java.nio.file.Files.newInputStream(Files.java:160)
at org.elasticsearch.plugins.PluginInfo.readFromProperties(PluginInfo.java:173)
at org.elasticsearch.plugins.InstallPluginCommand.loadPluginInfo(InstallPluginCommand.java:786)
at org.elasticsearch.plugins.InstallPluginCommand.installPlugin(InstallPluginCommand.java:845)
at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:245)
at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:215)
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:75)
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:116)
at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:80)
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:116)
at org.elasticsearch.cli.Command.main(Command.java:79)
at org.elasticsearch.plugins.PluginCli.main(PluginCli.java:36)

It seems that latest version of elastic requires the file plugin-descriptor.properties which is missing.

The same issue is facing while trying to install to elastic 7.15.2

Am I doing something wrong??

lower_greek and stem_greek works fine... But "greeklish".. doesn't work...
Am I doing something wrong??

I'm trying to find "Dimitris" but never get name "Δημήτρης" to my results

{
"settings":{
    "analysis":{
        "analyzer":{
            "stem_analyzer":{
                "type":"custom",
                "tokenizer":"standard",
                "filter": ["lower_greek", "stem_greek","greeklish_analysis"]
            }
        },
        "filter": {
            "lower_greek": {
                "type":"lowercase",
                "language":"greek"
            },
            "stem_greek": {
                "type":"skroutz_stem_greek"
            },
            "greeklish_analysis":{
                "type": "greeklish",
                "max_expansions": 15
            }
        }
    }
},
"mappings": {
        "shooters": {
            "properties": {
                "name": {
                    "type": "string",
                    "analyzer": "stem_analyzer"
                }
            }
        }
    }
}

Expanding of the word «κινητη»

Right now, «κινιτη» expands to «κινητος», «κινητους», «κινητεων», «κινητης» and «κινητων».

We would like to also get the forms «κινητο» and «κινητα», which are valid for this specific word but not for the general case of «-η» words (e.g. «ψυξη»).

Do you oppose the idea of adding exceptions to the general rules (as we already do in the various stemmers) to handle that kind of cases? My only worry is that I'm not sure whether this kind of behaviour is valid globally or tied to a specific use case (such as «κινητά τηλέφωνα»/«κινητή τηλεφωνία»). If so, maybe the exceptions could be supplied by the user in a text file (but this might be overengineering things a bit).

Would like to hear your thoughts @astathopoulos @chief

uses examples?

Hello. do you have a usage example or can you suggest something? i am new in ES ant try to use the plugin but i have stuck. i have installed successful but what next?
should i make a default settings for lowercase greeklish?
should the greek must put in the ES as lowercase?
is it able to make a short example?

The analyzer keeps the analysis of former analyzed tokens in the results

Hi everyone!

I am trying to use the greeklish analyzer in ElasticSearch 6.7.1 but the analyzer keeps appending the analysis of former tokens.

For example i use the token "αυγο" and i get a first analysis.
Then is use the token "παιχνιδι" and i get the analysis of "παιχνιδι" but then appended in the results i see the analysis of "αυγό".

Can you help me?
Thank you in advance

Installation issue (bad github url?)

Hello there, I tried installing this plugin on Raspbian Stretch with the relevant command

sudo /usr/share/elasticsearch/bin/plugin install gr.skroutz:elasticsearch-analysis-greeklish:5.4.2.1 -verbose

and I got the following error:
-> Installing gr.skroutz:elasticsearch-analysis-greeklish:5.4.2.1... Trying https://github.com/null/gr.skroutz:elasticsearch-analysis-greeklish:5.4.2.1/archive/master.zip... Failed: IOException[Can't get https://github.com/null/gr.skroutz:elasticsearch-analysis-greeklish:5.4.2.1/archive/master.zip to /usr/share/elasticsearch/plugins/gr.skroutz:elasticsearch-analysis-greeklish:5.4.2.1.zip]; nested: FileNotFoundException[https://github.com/null/gr.skroutz:elasticsearch-analysis-greeklish:5.4.2.1/archive/master.zip]; nested: FileNotFoundException[https://github.com/null/gr.skroutz:elasticsearch-analysis-greeklish:5.4.2.1/archive/master.zip]; Failed to install gr.skroutz:elasticsearch-analysis-greeklish:5.4.2.1, reason: failed to download out of all possible locations..., use -verbose to get detailed information

It seems this URL for the .zip is not correct. Any ideas on how to resolve this?
https://github.com/null/gr.skroutz:elasticsearch-analysis-greeklish:5.4.2.1/archive/master.zip

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.