Questions tagged [elasticsearch.js]

ElasticSearch is an Open Source (Apache 2), Distributed, RESTful, Search Engine built on top of Lucene. This tag should be used only for the use of ElasticSearch in JavaScript.

Elasticsearch is an Open Source (under the Apache 2 License), Distributed, RESTful, Search Engine built on top of and developed in .

It is often combined with and ; referred to as .

According to Wikipedia

It provides a distributed, multitenant-capable full-text search engine with a RESTful web interface and schema-free documents. It is also document oriented and presents a various set of APIs: native Java, HTTP RESTful.

Elastic is the parent company of Elasticsearch the product.

29 questions
0
votes
1 answer

Get API in elasticsearch.js

I am using elasticsearch js client and currently I send my requests in such a way: // my service function(indexName, docType, payload){ return elasticClient.search({ index: indexName, type: docType, …
Jack Hudzenko
  • 157
  • 3
  • 14
0
votes
0 answers

Get method instead of Post method in elasticsearch.js Client search api

is there a way to search elastic using GET rather than POST method , since i can do this in curl curl -XGET 'localhost:9200/tvseries/internindex/_search?size=5&from=5&pretty' -H 'Content-Type: application/json' -d' { "query": { "bool": { …
Rizwan Patel
  • 538
  • 2
  • 9
  • 27
0
votes
1 answer

Nodejs stream modification for elasticsearch bulk

i wanted to append below object to every object in stream {"index":{"_index":"tvseries","_type":"internindex"}} my stream looks like this [ {"showname":"The X Files","episode":"04","content":"Before what?","season":"1"}, {"showname":"The X…
0
votes
1 answer

couldn't search integers in elasticsearch

I'm new to elasticsearch, i am using amazon's elasticsearch 5.3. this is my json data [ { "Sl. No.": 5, "Code No.": "0101.21.00", "Name of Commodity": "Live Horses" }, { "Sl. No.": 6, "Code No.": "0101.29.00", "Name…
0
votes
1 answer

how do I scan and scroll with elasticsearch-js and elasticsearch 5.0

I was using elasticsearch-scrolltoend as a plugin previously, after upgrading to 5.0 the plugin doesn't seem to work. How can I scan and scroll a large dataset with elasticsearch 5.0? I also received an error when attempting to use the…
ilovett
  • 3,240
  • 33
  • 39
0
votes
0 answers

What could be the cause for client.ping to return error when using elasticsearch.js?

I wanted to check if elasticsearch.js was connected to the internet. So I ran client.ping in my production environment as follows. client.ping({ requestTimeout: 30000, }, function (error) { if (error) { console.error('elasticsearch cluster…
tet
  • 1,287
  • 1
  • 17
  • 36
0
votes
2 answers

Elasticsearch.js analyzer error using custom analyzer

Using the latest version of the elasticsearch.js and trying to create a custom path analyzer when indexing and creating the mapping for some posts. The goal is creating keywords out of each segment of the path. However as a start simply trying to…
ServerStorm
  • 59
  • 1
  • 9
0
votes
1 answer

ElasticSearch and searching documents unpredictable

Something very very strange is happening with ES JS Client. client.search() method seems to work properly, index and search data work correctly, but if a restart the elasticsearch.bat then the client stops working. I mean, client.search gives me 0…
Facundo La Rocca
  • 3,786
  • 2
  • 25
  • 47
0
votes
1 answer

Elasticsearch is not using template and mapping while indexing data from Firebase

I have multiple indices to index data from Firebase to Elasticsearch. I am using client.indices.putTemplate to put template in the elasticsearch. which is successfully getting saved, but the same is not being used when the indexer starts to index…
0
votes
1 answer

Elasticsearch.js AngularJS autocomplete

I'm trying to implement an autocomplete feature using Elasticsearch, angularJS and bootstrap. I've got inspired by this solution : autocomplete/typeahead angularjs bootstrap on elasticsearch This is my Angular code: angular.module('cineAngularApp') …
Mahdi DIF
  • 159
  • 1
  • 10
0
votes
2 answers

Map a book in elasticsearch with many levels, nested vs parent-child relationship

When creating the mappings for an index that can search through multiple books, is it preferable to use nested mappings like below, or using documents with a parent-child relationship book: { properties: { isbn: { //- ISBN of the…
Ryan White
  • 2,366
  • 1
  • 22
  • 34
0
votes
0 answers

Issue getting the latest elasticsearch entry every x seconds

Basically I have multiple log entries going to elasticsearch every couple seconds. I'm trying to write a live streaming log viewer that polls elastic search every say 2 seconds for the most recent 20 logs. The issue I'm running into is every time I…
ShaneIsrael
  • 148
  • 1
  • 8
0
votes
1 answer

elasticsearch.js bulk insert error

I am trying to insert/update data with the javascript elasticsearch client, but I am getting the error: { "error": { "root_cause": [ { "type": "illegal_argument_exception", "reason": "Malformed…
Automatico
  • 12,420
  • 9
  • 82
  • 110
0
votes
1 answer

Non partial update on elasticsearch node API

As the 2.0 docs say, updates performed are partial - they do not override the whole document but only merge the existing one with the value given. Is there a way to perform a full update using this API?
abyx
  • 69,862
  • 18
  • 95
  • 117
1
2