elasticsearch-plugin

Elasticsearch 6.0.1 NoSuchFieldError: LUCENE_6_0_0

流过昼夜 提交于 2019-12-10 17:13:03
问题 I am using elasticsearch 6.0.1 and on BulkRequest request = new BulkRequest(); I am getting the below error. I have checked online, mostly people said that this happens if I have different versions of lucene jars in the classpath. java.lang.NoSuchFieldError: LUCENE_6_0_0 at org.elasticsearch.Version.<clinit>(Version.java:44) at org.elasticsearch.common.logging.DeprecationLogger.<clinit>(DeprecationLogger.java:159) at org.elasticsearch.action.bulk.BulkRequest.<clinit>(BulkRequest.java:67) at

Unable to install Search Guard plugin for Elasticsearch-5.x

♀尐吖头ヾ 提交于 2019-12-10 13:56:43
问题 Due to the restrictions, I was not allowed to install any packages from internet. So, This command is not useful for me inorder to install search-guard. bin/elasticsearch-plugin install -b com.floragunn:search-guard-ssl:<version> However, I am able to install Search Guard successfully on a different network by running the above command. Because of this reason, I tried installing Search Guard from tar.gz or zip file by the below command as per documentation. /usr/share/elasticsearch# bin

ElasticSearch plugins: “Failed to resolve config path” error

╄→尐↘猪︶ㄣ 提交于 2019-12-08 15:58:32
问题 I install elasticsearch 1.7.3 on debian jessie. It uses default config files and works normally. But when i call sudo /usr/share/elasticsearch/bin/plugin it returns an error: Exception in thread "main" org.elasticsearch.env.FailedToResolveConfigException: Failed to resolve config path ["/usr/share/elasticsearch/config/elasticsearch.yml"], tried file path ["/usr/share/elasticsearch/config/elasticsearch.yml"], path file ["/usr/share/elasticsearch/config"/"/usr/share/elasticsearch/config

Nest ElasticSearch: Boolean Search using Nested Query and Nested Objects

大憨熊 提交于 2019-12-08 12:50:26
问题 I am using Nest Elastic and building the query for a Boolean search using Head plugin , i am combining multiple queries Notes about DB Structure and Elastic Mapping Each document in the database is linked to specific profileId which in turn has multiple attributes Each document has multiple attribute values associated with it In this query, i am trying to get all documents which has specific profile and attribute value > 30 keeping in mind that this attribute should have the attribute Id 2

ElasticSearch Indexing Key/Value Map

陌路散爱 提交于 2019-12-08 12:47:28
I'm using elasticsearch as indexing engine in my java project. I'm asking if there is anyway to index a java.util.Map a key/value Map. For example i have this java class: public class NextEvent extends NewtonResource{ private Map<String, String> metadata; private Instant executionDate; private String type; protected Boolean executed; private List<PatchOperation> jsonPatch; private List<String> crons; ... } I want to create an elasticsearch mapping including the Map of metadata variable. somethings like this: { "aliases": { "posc-alias-nextevent": {} }, "mappings": { "nextevent": { "properties"

ElasticSearch - How to make a 1-to-1 copy of an existing index

家住魔仙堡 提交于 2019-12-08 11:46:34
问题 I'm using Elasticsearch 2.3.3 and trying to make an exact copy of an existing index. (using the reindex plugin bundled with Elasticsearch installation) The problem is that the data is copied but settings such as the mapping and the analyzer are left out. What is the best way to make an exact copy of an existing index, including all of its settings? My main goal is to create a copy, change the copy and only if all went well switch an alias to the copy. (Zero downtime backup and restore) 回答1:

Installing readonlyrest plugin for elasticsearch getting error FileNotFoundException

十年热恋 提交于 2019-12-08 10:02:43
问题 I am trying to install elastisearch elasticsearch-readonlyrest-plugin. Now on its installation page Install,-Uninstall,-Build it was mentioned to use command sudo bin/plugin install https://github.com/sscarduzio/elasticsearch-readonlyrest-plugin/raw/master/download/elasticsearch-readonlyrest-v1.5_es-v2.1.1.zip . I tried to use above command but got error -> Installing from https://github.com/sscarduzio/elasticsearch-readonlyrest-plugin/raw/master/download/elasticse arch-readonlyrest-v1.5_es

ElasticSearch Indexing Key/Value Map

懵懂的女人 提交于 2019-12-08 07:33:28
问题 I'm using elasticsearch as indexing engine in my java project. I'm asking if there is anyway to index a java.util.Map a key/value Map. For example i have this java class: public class NextEvent extends NewtonResource{ private Map<String, String> metadata; private Instant executionDate; private String type; protected Boolean executed; private List<PatchOperation> jsonPatch; private List<String> crons; ... } I want to create an elasticsearch mapping including the Map of metadata variable.

How to filter out (broken) HTML Tags in ElasticSearch's Highlights?

时光怂恿深爱的人放手 提交于 2019-12-08 06:54:48
问题 I'm having trouble with the ElasticSearch Grails Plugin, namely the highlighting Feature. It is returning text with HTML tags, which would not be a big problem, but it is returning broken, cut-off HTML tags as well. i.e. " href=google.de> Link <a " Those can't be easily filtered out with a RegEx. The solution to this seems to be a custom analyzer like this: '{ "index" : { "analysis" : { "analyzer" : { "test_1" : { "char_filter" : [ "html_strip" ], "tokenizer" : "standard" }, "test_2" : {

How can I run script automatically after Docker container startup

不问归期 提交于 2019-12-07 10:20:44
问题 I'm using Search Guard plugin to secure an elasticsearch cluster composed of multiple nodes. Here is my Dockerfile: #!/bin/sh FROM docker.elastic.co/elasticsearch/elasticsearch:5.6.3 USER root # Install search guard RUN bin/elasticsearch-plugin install --batch com.floragunn:search-guard-5:5.6.3-16 \ && chmod +x \ plugins/search-guard-5/tools/hash.sh \ plugins/search-guard-5/tools/sgadmin.sh \ bin/init_sg.sh \ && chown -R elasticsearch:elasticsearch /usr/share/elasticsearch USER elasticsearch