elasticsearch-plugin

Elasticsearch 2.3 Delete all documents in a type by query using PHP LIbrary

亡梦爱人 提交于 2020-01-17 06:04:35
问题 I want to be able to delete documents by query using the elasticsearch php library. I actually ideally want to delete all documents in my type. I can achieve this using a normal curl XDELETE request in sense, however I cant get it to work using elastic search's PHP library. Yes I have installed the delete-by-query plugin hence why raw request works. my current code: $params = [ 'index' => 'sanctions_lists', 'type' => $listName, 'body' => [ 'query' => [ 'match_all' => [] ] ] ]; return $this-

Grails Elastic Search Plugin SEVERE: Unexpected transforming call sites grails elasticsearch

て烟熏妆下的殇ゞ 提交于 2020-01-14 19:21:08
问题 I'm trying to install the elastic search plugin (elasticsearch:0.0.4.4) on my Grails project (grails version 2.4.4) and after adding the plugin dependency and running the app (grails run-app) I get some rather severe errors. Stacktrace: Apr 02, 2015 9:44:08 AM org.springsource.loaded.agent.SpringLoadedPreProcessor preProcess SEVERE: Unexpected problem transforming call sites java.lang.IllegalStateException: Unexpected problem processing bytes for class at org.springsource.loaded

Equivalent of `GET _mapping` marvel/sense in Python?

五迷三道 提交于 2020-01-06 04:18:14
问题 I'm trying to explore an elasticsearch cluster using python, and I'm new to elasticsearch. If I use Marvel/Sense, I can see the cluster's schema using GET _mapping . Is there an equivalent way to do this in Python? If so I can see the "schema" of the cluster! More generally, I'd like to discover programmatically all the indicies, each indices' doc_types, classify the doc_types' fields (are they text strings, ints, floats, what range to the numeric ones take, ..) basically learn the schema and

Elasticsearch 5 how to start writing a native Java plugin

℡╲_俬逩灬. 提交于 2020-01-01 03:53:07
问题 I am currently trying to write an Elasticsearch plugin (mainly for testing purposes), and I am struggling with the documentation which simply states: These examples provide the bare bones needed to get started. For more information about how to write a plugin, we recommend looking at the plugins listed in this documentation for inspiration. So basically, after finding a few tutorials (which kind of disagree with each other besides the maven part), see http://david.pilato.fr/blog/2016/07/27

what is the better way to index data from Oracle/relational tables into elastic search?

别说谁变了你拦得住时间么 提交于 2019-12-31 17:46:06
问题 What are the options to index large data from Oracle DB to elastic search cluster? Requirement is to index 300Million records one time into multiple indexes and also incremental updates having around approximate 1 Million changes every day. I have tried JDBC plugin for elasticsearch river/feeder , both seems to be running inside or require locally running elastic search instance. Please let me know if there is any better option for running elastic search indexer as a standalone job (probably

python3 UnicodeEncodeError: 'charmap' codec can't encode characters in position 95-98: character maps to <undefined>

大憨熊 提交于 2019-12-30 05:32:06
问题 A month ago I encountered this Github: https://github.com/taraslayshchuk/es2csv I installed this package via pip3 in Linux ubuntu. When I wanted to use this package, I encountered the problem that this package is meant for python2. I dived into the code and soon I found the problem. for line in open(self.tmp_file, 'r'): timer += 1 bar.update(timer) line_as_dict = json.loads(line) line_dict_utf8 = {k: v.encode('utf8') if isinstance(v, unicode) else v for k, v in line_as_dict.items()} csv

Understanding Elasticsearch synonym

无人久伴 提交于 2019-12-25 08:35:35
问题 Being very new in Elasticsearch, I'm not sure what's the best way to use synonym. I have two fields, one is hashtag and another one is name. Hashtag containing names in lower case without whitespace whereas name contains actual name in camel case format. I want to search based on name in the right format and want to get all matching names along with those docs where it matches hashtag as well. For example, name contains "Tom Cruise" and hashtag is "tomcruise". I want to search "Tom Cruise"

Logstash Elasticsearch Input Plugin for streaming data

陌路散爱 提交于 2019-12-25 07:59:56
问题 I would like to know if we can use logstash-input-elasticsearch plugin for streaming data , ex: if I have data available in my database and I run ElasticSearch input plugin , it will index the data into an output, but if after some time more data comes of ElasticSearch database , Is ElasticSearch input plugin is able to index that data without restarting the logstash ? Thank you for your attention and your help. 回答1: By default, the elasticsearch input will run a scroll query on your ES

Invalid FieldReference occurred when attempting to create index with the same name as request path value using ElasticSearch output

断了今生、忘了曾经 提交于 2019-12-25 01:55:24
问题 This is my logstash.conf file: input { http { host => "127.0.0.1" port => 31311 } } filter { mutate { split => ["%{headers.request_path}", "/"] add_field => { "index_id" => "%{headers.request_path[0]}" } add_field => { "document_id" => "%{headers.request_path[1]}" } } } output { elasticsearch { hosts => "http://localhost:9200" index => "%{index_id}" document_id => "%{document_id}" } stdout { codec => "rubydebug" } } When I send a PUT request like C:\Users\BolverkXR\Downloads\curl-7.64.1-win64

Elastic search- search exact matching string using query UI

戏子无情 提交于 2019-12-24 19:09:01
问题 Here is my JSON . { "id":100, "name":"xxx", "hobbies":["cricket","footbal","singing & dancing"] } I need to filter "singing & dancing" string from "others". Executed below query. http://localhost:9200/employeed/data/_search?q={"query":{"query_string":{"query" : "hobbies:Singing & dancing"}}} I am getting below exception. "type": "illegal_argument_exception", "reason": "request [employee/data/_search] contains unrecognized parameter: [ Singing\"}}}]" Any help? 回答1: You're attempting to send a