jprante / elasticsearch-analysis-naturalsort

Natural sort plugin for Elasticsearch
https://jprante.github.io/elasticsearch-analysis-naturalsort/
Apache License 2.0
38 stars 19 forks source link

Updated README.md file with install instructions #5

Closed gplocke closed 10 years ago

gplocke commented 10 years ago

Added some simple installation instructions for how to package and install the plugin since you can't install non-site plugins with the the elasticsearch plugin installer anymore.

jprante commented 10 years ago

This is not correct. You can install plugins with the Elasticsearch plugin tool.

jprante commented 10 years ago

I will update the plugin and create binary distribution packages soon.

gplocke commented 10 years ago

Not in the newer versions for non-site plugins. I know...I just spent an hour and a half figuring this out. If you try to install it from the source without it being packaged first you get this error:

root@ip-10-11-141-57:/usr/share/elasticsearch/bin# ./plugin --install jprante/elasticsearch-analysis-naturalsort -> Installing jprante/elasticsearch-analysis-naturalsort... Trying https://github.com/jprante/elasticsearch-analysis-naturalsort/archive/master.zip. .. Downloading ..............DONE Installed jprante/elasticsearch-analysis-naturalsort into /usr/share/elasticsearch/plugins/analysis-naturalsort Usage: -u, --url [plugin location] : Set exact URL to download the plugin from -i, --install [plugin name] : Downloads and installs listed plugins [*] -r, --remove [plugin name] : Removes listed plugins -l, --list : List installed plugins -v, --verbose : Prints verbose messages -s, --silent : Run in silent mode -h, --help : Prints this help message

[*] Plugin name could be: elasticsearch/plugin/version for official elasticsearch plugins (download from download.elasticsearch.org) groupId/artifactId/version for community plugins (download from maven central or oss sonatype) username/repository for site plugins (download from github master)

Message: Error while installing plugin, reason: IllegalArgumentException: Plugin installation assumed to be site plugin, but contains source code, aborting installation.

You can also see messages to this effect in the ElasticSearch users Nabble forums: http://elasticsearch-users.115913.n3.nabble.com/Install-non-site-plugin-get-quot-IllegalArgumentException-Plugin-installation-assumed-to-be-site-plu-td4044239.html

Thanks,

Garrison

On Mon, Jun 30, 2014 at 10:36 AM, Jörg Prante notifications@github.com wrote:

This is not correct. You can install plugins with the Elasticsearch plugin tool.

Reply to this email directly or view it on GitHub https://github.com/jprante/elasticsearch-analysis-naturalsort/pull/5#issuecomment-47539079 .

jprante commented 10 years ago

You try to install a Java plugin as a site plugin. This was never supported.

gplocke commented 10 years ago

Right, I discovered that was what it was doing I got that error about it being a non-site plugin. But you still need a compiled version to install with the plugin tool. So I had to package it with maven before I could use the plugin installer. That was the missing key piece for me.

On Mon, Jun 30, 2014 at 10:50 AM, Jörg Prante notifications@github.com wrote:

You try to install a Java plugin as a site plugin. This was never supported.

Reply to this email directly or view it on GitHub https://github.com/jprante/elasticsearch-analysis-naturalsort/pull/5#issuecomment-47540942 .

jprante commented 10 years ago

Released version 1.2.1.0 to work with Elasticsearch 1.2.1, new README added with installation instructions.