NarimanN2 / ParsiAnalyzer

Persian Analyzer For Elasticsearch.
151 stars 28 forks source link

error when install #4

Closed srmarjani closed 4 years ago

srmarjani commented 6 years ago

C:\elastic\elasticsearch-6.3.2>bin\elasticsearch-plugin install https://www.dropbox.com/s/2sczcj1372xsq7k/ParsiAnalyzer-%206.3.2.zip?dl=1 -> Downloading https://www.dropbox.com/s/2sczcj1372xsq7k/ParsiAnalyzer- 6.3.2.zip?dl=1 [=================================================] 100%بب ERROR: This plugin was built with an older plugin structure. Contact the plugin author to remove the intermediate "elasticsearch" directory within the plugin zip.

NarimanN2 commented 6 years ago

Please tell me what is your elasticsearch version?
You can use Elasticsearch version 6.3.2 or change plugin version as follows: incompatible with elasticsearch 6.1

srmarjani commented 6 years ago

سلام من از نسخه 6.3.2 استفاده میکنم.

iamajid commented 6 years ago

I use elasticsearch 6.4.0 and have same issue.

NarimanN2 commented 6 years ago

Hi the problem is now solved. please download and install the latest version of ParsiAnalyzer.

Katerou22 commented 5 years ago

ERROR: elasticsearch directory is missing in the plugin zip version: 5.6

Updated:

After fix the elasticsearch directory error by this link:

https://www.dropbox.com/s/0xlrs980er66ati/elasticsearch.zip?dl=1 this error occured! ,

Exception in thread "main" java.lang.IllegalArgumentException: plugin [ParsiAnalyzer] is incompatible with version [5.6.13]; was designed for version [6.4.2]

NarimanN2 commented 5 years ago

Please download and install Elasticsearch version 6.4.2. you are using an older version of elasticsearch

Katerou22 commented 5 years ago

what if i want to use this version?

NarimanN2 commented 5 years ago

1- Download the latest source code 2- Open pom.xml file 3- Under dependecies tag, change elasticserach version from 5.6.3 to 6.1.2 and save it 4- Open plugin-descriptor.properties file 5- Change elasticsearch.version from 6.4.2 to 5.6.13 6- Run this maven command: mvn clean package -DskipTests 7- In the folder target/releases you’ll now find a zip file called ParsiAnalyzer. install the plugin using this command: bin/elasticsearch-plugin install file:///path/to/ParsiAnalyzer.zip

Katerou22 commented 5 years ago

[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? [INFO] 1 error [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.704 s [INFO] Finished at: 2018-12-19T08:18:50+03:30 [INFO] Final Memory: 13M/303M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project ParsiAnalyzer: Compilation failure [ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException