Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [elasticsearch]

Elasticsearch is a search server based on Lucene. It provides a distributed, multitenant-capable, full-text search engine with a RESTful web interface and schema-free JSON documents. Elasticsearch is developed in Java and is released as open source under the terms of the Apache License. Elasticsearch is the second most popular enterprise search engine.

1
vote
0answers
15 views

Python Elasticserch DSL integration with Django [closed]

There is a big Pull Request in django-elasticsearch-dsl. Can anyone take some time and review the pull request? We are changing from python MetaClass to a decorator ...
1
vote
0answers
51 views

Can parallel_bulk compete with curl command for insert in ES?

I got some documents (size about 300o/doc) that I'd like to insert in my ES index using the python lib, I got huge time difference between the code and using ...
2
votes
1answer
3k views

Building a dynamic Elasticsearch query using NEST

I am using Elasticsearch v6 and NEST to search the advertisements that I create on my website. This is my Document (from which I build the Index): ...
2
votes
0answers
107 views

Classes for an online shopping website, using a combination of Inheritance and Composition

I am developing an online shopping website. I have a class Item, which contains all the common attributes of all products (I will explain the interfaces at the end) ...
2
votes
1answer
91 views

Too slow JSON data processing using SQL

I have a case study where I need to take data from a REST API do some analysis on the data using an aggregate function, joins etc and use the response data in JSON format to plot some retail graphs. ...
6
votes
2answers
104 views

Boolean string to elasticsearch query OSS module

I am putting together a little module for oss release that will let you parse a boolean expression consisting of and/AND/or/OR's (no brackets yet) and output a ...
1
vote
0answers
63 views

Parsing JSON documents in java

I consume JSON data from Kafka Topics, and parse the JSON to create a Document ID (Unique Identifier) to persist the JSON into Elasticsearch. IDGenerator.java ...
1
vote
0answers
167 views

Java Client with ElasticSearch SearchQuery if the value of field is not empty

I developed a java Client to interrogate with elasticsearch. I want to pass in my method a java bean (with many attributes) as a parameter, and I want also that my query apply search just on field ...
5
votes
1answer
748 views

Python script to manage elasticsearch backups

The following is a Python 3 script I wrote to take and delete elasticsearch snapshots. Could anyone please point out any issues? I am concerned that I have structured the code poorly (particularly the ...
4
votes
3answers
82 views

Create elasticsearch document from php

Can you please provide some improvement advice for the following function? It is working OK now, but as I have zero experience with PHP I guess there is a lot of room for improvement. ...
4
votes
1answer
556 views

Converting Logstash YAML style configuration file into ElasticSearch Logstash JSON style config

I am new in python and have written first code to convert Logstash YAML style configuration file into ElasticSearch Logstash JSON style config. Please have a look at my piece of code and let me know ...
0
votes
1answer
38 views

Getting all the master nodes in an elasticsearch cluster

I am trying to get all the master nodes in an elasticsearch cluster using this code. Can I reduce/simply this or optimize further? ...
2
votes
0answers
800 views

Elasticsearch: Simple name search

I'm trying to implement a simple name search using elasticsearch and a java app as the client. Schema: ...
2
votes
0answers
210 views

Wrapping a node.js module using elasticsearch

I need to use elasticsearch in my node.js project, whose API looks like the following: ...
2
votes
1answer
586 views

NodeJS script to dump data from Redis to Elasticsearch

I have about a million records in Redis which I want to dump into Elasticsearch periodically. I just want to make sure that my script is decent enough in terms of speed and no memory leaks. ...
2
votes
0answers
758 views

elastic search index/mapping creation

Including the full module, but the method I'm interested in is createIndex, feels more complicated than I think it should be. Still new at both node and elasticsearch ...
1
vote
1answer
611 views

Saving comments and submissions from Reddit using Elasticsearch

I wrote a script to save comments and submissions from Reddit using Elasticsearch. Is there any way to improve the speed of inserting new items into Elasticsearch? ...
3
votes
1answer
383 views

Searching for something at a location

I'm using Searchkick in a situation where a user might write the location they are searching for, or the thing they are searching for, or both. I've been working on the below code for most of the ...
2
votes
0answers
4k views

Little script to change the mapping of an existing ElasticSearch index while reindexing it

I tried to implement the idea given in the elasticsearch doc about reindexation albeit I think they must code it inside ElasticSearch and expose it as an API. ...