Questions tagged [elasticsearch-api]

Elasticsearch is a search server based on Lucene.

Elasticsearch is a search server based on Apache 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.

56 questions
0
votes
1 answer

Multiple functions in restify function to elasticsearch client

I'm building a REST API using node and restify that communicaties with an elasticsearch database. Now when I delete an object, I want this to do a kind of cascading delete to some other objects. I know this is not really what to use elasticsearch…
Matthias
  • 330
  • 3
  • 7
  • 20
0
votes
0 answers

Elasticsearch query builder `IN` query

I am trying to replicate a in SQL query in elastic search... something similar to select * from products where id in ('123, '345'); I have something like the below - Set searchIds = new…
g0c00l.g33k
  • 2,458
  • 2
  • 31
  • 41
0
votes
2 answers

ElasticSearch Java Api: Update Existing Document

I am currently in the process of attempting to update an ElasticSearch document via the Java API. I have a groovy script with the following code: static updateRequestById(String agencyIndex, String type, String id, def policy) { …
dionysus
  • 439
  • 3
  • 12
  • 26
0
votes
1 answer

ElasticSearch PHP client v2.0 keeps throwing "No alive nodes found in your cluster"

The elasticSearch runs fine on my centos as a non-service. I run it as "sh bin/elasticsearch". The client I installed using composer is PHP v2.0. It just won't do anything it used to do before. I used this before and I could search, index documents,…
Vladimir Despotovic
  • 3,200
  • 2
  • 30
  • 58
0
votes
1 answer

Elasticsearch minBy

Is there a way in elasticsearch to get a field from a document containing the maximum value? (Basically working similarly to maxBy from scala) For example (mocked): { "aggregations": { "grouped": { "terms": { …
Bomaz
  • 1,871
  • 1
  • 17
  • 22
0
votes
1 answer

ElasticSearch api parse nested string json dashboard

I am using ElasticSearch GET to get the json file of a dashbaord: for example: http://ES_IP:9200/kibana-int/dashboard/my_Dashboard/ This returns me a json file…
user2620348
  • 309
  • 4
  • 15
0
votes
1 answer

Ruby Elasticsearch API: Returning the latest entry to an index

I've enabled the "_timestamp" field in the index mapping and I successfully retrieved the latest entry to an index using the elasticsearch REST API. The body of the POST request I used looks like this: { "query": { "match_all": {} …
jkazuop
  • 1
  • 3
0
votes
0 answers

Do we need to close elastic search client when an exception is thrown?

I've currently a piece of code which closes elastic search client when an exception is throw in the update request. Like this: static Client client; try{ .....async update which causes document missing …
0
votes
2 answers

Elasticsearch - search across multiple indices with conditional decay function

I'm trying to search across multiple indices with one query, but only apply the gaussian decay function to a field that exists on one of the indices. I'm running this through elasticsearch-api gem, and that portion works just fine. Here's the query…
daino3
  • 4,386
  • 37
  • 48
0
votes
1 answer

Get index by name with the ElasticSearch ruby gem

My Model: class Package < ActiveRecord::Base include Elasticsearch::Model include Elasticsearch::Model::Callbacks end When I ask if the index exists, I get true: Package.__elasticsearch__.client.indices.exists(index: "packages") => true But…
Robin
  • 21,667
  • 10
  • 62
  • 85
1 2 3
4