elasticsearch-plugin

Integration of elasticsearch with neo4j database

蓝咒 提交于 2019-12-02 08:41:44
问题 Am trying to use elasticsearch with my neo4j database for fast querying.I tried many sites but they are all old articles so i didn't get any clear idea. Steps I followed until now, Installed neo4j Installed elasticsearch Copy pasted elastic search plugins into neo4j plugins folder added this line into neo4j. properties file elasticsearch.host_name=http://localhost:9200 elasticsearch.index_spec=people:Person(first_name,last_name), places:Place(name) Here my question is, How elasticsearch and

logstash index a text file

社会主义新天地 提交于 2019-12-02 08:07:39
I'd like to import a text file in Elasticsearch. The text file contains 3 values per line. After spending several hours of struggling, I didn't get it done. Help is greatly appreciated. Elasticsearch 5.4.0 with Logstash installed. Sample data: username email hash username email hash username email hash username email hash username email hash also built a python script but its too slow: import requests import json from elasticsearch import Elasticsearch es = Elasticsearch([{'host': 'localhost', 'port': 9200}]) i = 1 with open("my2") as fileobject: for line in fileobject: username, email, hash =

Integration of elasticsearch with neo4j database

馋奶兔 提交于 2019-12-02 05:36:14
Am trying to use elasticsearch with my neo4j database for fast querying.I tried many sites but they are all old articles so i didn't get any clear idea. Steps I followed until now, Installed neo4j Installed elasticsearch Copy pasted elastic search plugins into neo4j plugins folder added this line into neo4j. properties file elasticsearch.host_name=http://localhost:9200 elasticsearch.index_spec=people:Person(first_name,last_name), places:Place(name) Here my question is, How elasticsearch and neo4j are integrated. Please clarify me on this. I followed this , Link You have to install Apoc

can i change top menu bar and remove some options in kibana-4

感情迁移 提交于 2019-11-30 18:59:23
I have installed kibana-4 on my Linux machine. My requirement is that I want to delete options like save search fields in my kibana home page and i want to change the top menubar of kibana by my own customized menubar. here 's snapshot of what i want to do. Kibana 4 is not well documented yet. You might need to dig into the code to understand how things work. This being said, you may want to use 'embed=true|false' URL parameter to show or not the whole toolbar. This is useful when embeding kibana in iframe, so that parameters are injected from outside and users cannot change settings. Example

Like search in Elasticsearch

旧巷老猫 提交于 2019-11-30 13:15:58
问题 I am using elasticsearch for filtering and searching from json file and I am newbie in this technology. So I am little bit confused how to write like query in elasticsearch. select * from table_name where 'field_name' like 'a%' This is mysql query. How do I write this query in Elasticsearch? I am using elasticsearch version 0.90.7. 回答1: I would highly suggest updating your ElasticSearch version if possible, there have been significant changes since 0.9.x. This question is not quite specific

Like search in Elasticsearch

怎甘沉沦 提交于 2019-11-30 08:40:38
I am using elasticsearch for filtering and searching from json file and I am newbie in this technology. So I am little bit confused how to write like query in elasticsearch. select * from table_name where 'field_name' like 'a%' This is mysql query. How do I write this query in Elasticsearch? I am using elasticsearch version 0.90.7. I would highly suggest updating your ElasticSearch version if possible, there have been significant changes since 0.9.x. This question is not quite specific enough, as there are many ways ElasticSearch can fulfill this functionality, and they differ slightly on your

Reading a file in an Elasticsearch plugin

十年热恋 提交于 2019-11-30 07:41:04
问题 I am writing an elasticsearch plugin which relies on reading data from a file on disk. When I try to access this file in my code, I get the following exception. Caused by: java.security.AccessControlException: access denied ("java.io.FilePermission" "patient_similarity/codes.txt" "read") at java.security.AccessControlContext.checkPermission(AccessControlContext.java:472) at java.security.AccessController.checkPermission(AccessController.java:884) at java.lang.SecurityManager.checkPermission

How to run Elasticsearch 2.1.1 as root user in Linux machine

限于喜欢 提交于 2019-11-30 06:01:12
I am trying to run Elasticsearch 2.1.1 in my Linux machine which I am the root user of it. When I tried to execute the Elasticsearch.I am getting the following error: Exception in thread "main" java.lang.RuntimeException: don't run elasticsearch as root. at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:93) at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:144) at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:285) at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:35) Refer to the log for complete error details. I referred some

can i change top menu bar and remove some options in kibana-4

最后都变了- 提交于 2019-11-30 03:06:18
问题 I have installed kibana-4 on my Linux machine. My requirement is that I want to delete options like save search fields in my kibana home page and i want to change the top menubar of kibana by my own customized menubar. here 's snapshot of what i want to do. 回答1: Kibana 4 is not well documented yet. You might need to dig into the code to understand how things work. This being said, you may want to use 'embed=true|false' URL parameter to show or not the whole toolbar. This is useful when

Elasticsearch plugin to classify documents

别等时光非礼了梦想. 提交于 2019-11-29 12:24:28
Is there an elasticsearch plugin out there that would allow me to classify the documents that I enter in an index? The best solution for me would be a classifications of all the most recurrent terms (/ concepts) displayed in a sort of tags cloud that the user can navigate. Is there a way to achieve this? Any suggestions? Thanks The basic idea is to use a terms aggregations , which will yield one bucket per term. POST /_search { "aggs" : { "genres" : { "terms" : { "field" : "genre" } } } } The response you'll get will be ordered by decreasing amount of term occurrences: { ... "aggregations" : {