0
votes
1answer
15 views

Elasticsearch sort on multiple queries

I have a query like so: { "sort": [ { "_geo_distance": { "geo": { "lat": 39.802763999999996, "lon": -105.08748399999999 ...
0
votes
1answer
33 views

ElasticSearch mixing query types

I'm having a profoundly hard time getting this elasticsearch query to cooperate. I'm currently trying to use a Bool Query to get results for both exact and analyzed/fulltext searches. Seems I cannot, ...
0
votes
0answers
9 views

find all index-types (i.e. tables/collection ) within index (database) in elastic search using js api

I want to find all types of an Index in elastic search, I have search for this , and I have found, it is possible through getMapping , but getMapping gives data-types as well as types of index , but I ...
-3
votes
1answer
26 views

putmapping elastic serach not working with js api

client.indices.putMapping({"index":"test","type":"persons","body":{"mappings":{"properties":{"mname":{"type":"string","store":true}}}}}, callback) I am getting this error: ...
0
votes
1answer
12 views

node.js elasticsearch multiple hosts

In my node application i have used "Elasticsearch" for data retrieval. When i connecting to only 1 host it works fine. for ex: try { elasticSearchClient = new ElasticSearchClient({ ...
0
votes
1answer
22 views

Clean down the index before each text (Mocha, Elastic)

How do we clear down the index before each test? (at the moment it fails my test, with a timeout) I have tried DeleteBy (I have tried the term and q) http delete delete the index I have the ...
0
votes
3answers
126 views

Elasticsearch index/cache not clearing/stuck

I'm using https://github.com/firebase/flashlight to index data for searches However, this morning I deleted the whole firebase index, so it should be empty (this has worked before, but it seems that ...
5
votes
1answer
52 views

Elasticsearch deployment in a 2 server load balanced node js application setting

I have the following production setup for my Node JS application: I am now going to integrate Elasticsearch in this setup. My question is regarding the best practices for deploying Elasticsearch in ...
0
votes
0answers
19 views

ElasticSearch sort by least views

Currently I randomly sorting content based on a provided seed that ties with the users session cookie in order to increase content exposure on one of my services, this seed assures that pagination ...
1
vote
1answer
46 views

NodeJS How To Confirm MongoDB Driver Is Not Bkocking

I've asked some general questions around this topic before (node and blocking). This time the question is a little more specific. Let's say I've got a node/express app which has a handle that is ...
0
votes
0answers
23 views

Error with geo_code with Mongoosastic and Elasticsearch 1.3.1

I'm getting this error when I index my models with the new version 1.3.1. Any ideas why? { error: 'RemoteTransportException[...][index]]; nested: MapperParsingException[failed to parse]; nested: ...
0
votes
1answer
30 views

Query ElasticSearch From Node.js

I have a Node.js application. I need to query an ElasticSearch instance that's running on http://myserver.com to see if it still "alive". I'm trying to identify two things: What is the most ...
0
votes
1answer
45 views

Express.js elasticsearch query not working

I'm trying to build an Express.js application that queries my elasticsearch running on a different server. I created an express scaffold app, and the only thing I've changed is in routes/index.js. I ...
0
votes
1answer
53 views

Node.js harmony: How to yield elasticsearch.js calls (using koa)

After an hour of trying various syntaxes and npm modules: How would I achieve yielding a call to the elasticsearch client? I'm looking at something like this: var res = yield *client.get({ index: ...
0
votes
1answer
27 views

How to do create_or_update for elasticsearch?

I have a simple example: var client = new elasticsearch.Client({ host: 'localhost:9200' }); client.create({ index: 't1', type: 't2', id : id, body: row},function(err,results) { ...
0
votes
0answers
35 views

How to insert data in elasticsearch over HTTP?

I have simple example: var request = require('request'); function run(row,callback) { request({ method : 'PUT', uri: 'url' + row.id, json: row, timeout: 100000 }, function (error, ...
0
votes
1answer
20 views

How do I turn logging off for Elasticsearch in Node.js?

I'm using the elasticsearch npm module. I get annoying yellow warnings because my elasticsearch server is currently off. How can I make it so that it doesn't log anything?
0
votes
0answers
26 views

Convert custom_filters_score query to newest function_score with ElasticSearch

In order to update a query created with an old version of ES (previous to v0.94) i am presented with a query called like this: json.query.bool.should = [ { ...
0
votes
1answer
75 views

How to run elasticsearch-hq?

I am trying to run elasticsearch-hq to monitor my ES cluster. As I understand it is a node.js application. I've tried to run npm install and it seems to be fine.. as far as I understand (that's ...
0
votes
0answers
38 views

Instantiation of Elasticsearch client in Nodejs

I am using a Nodejs app with npm module- elasticsearch. Should I instantiate Elasticsearch client every time I make a call to an ES API or should I create only 1 instance of ES client and use it for ...
3
votes
1answer
66 views

Querying for objects. “q” query does not work

With the Javascript API, I'm doing this: client.search({ index:'530d8aa855df0c2d269a5a58', type:'532a2b28495c533e5eaeb020', q:'slide' },function (error,response){ if(error){ ...
0
votes
0answers
33 views

Running node.js and elasticsearch together

I've today first used node.js and it's running on localhost:888 i've also installed elasticsearch to localhost:9200. When I start them from the terminal they start fine, but when I start one the other ...
1
vote
0answers
103 views

node js best elastic search client

I am new to node js and I am trying to work with elastic search. Tried a few clients node-es https://github.com/phillro/node-elasticsearch-client sage elasticsearch All of them had issues. My ...
1
vote
1answer
58 views

Query the number of elements matching a filter using elastic.js?

I'm building a leaderboard with elasticsearch. I'd like to query all documents who have points greater than a given amount using the following query: { "constant_score" : { "filter" : { ...
0
votes
2answers
136 views

Elasticsearch mapping

How to change mapping in existing index of elasticsearch? I need set type for location on geo_point type. { "stations": { "mappings": { "station": { ...
0
votes
0answers
56 views

Querying elasticsearch using request on Windows Server 2003 (EADDRINUSE)

Here's the code: // this fn is part of async.parallel, hence the callback // count is a variable going from 0-20000 function (parallelCallback) { request('http://localhost:9200/products/product/' + ...
0
votes
1answer
185 views

elastic.js + node.js : queries not making sense

As seen on the official documentation of FullScale, I've got : // The official one var elasticsearch = require('elasticsearch'); var client = new elasticsearch.Client({ host: conf.elastic.server ...
0
votes
0answers
47 views

Prevent Elasticsearch from overwriting specific field in revisions

I currently have a Node.js script that moves bulk amounts of data into Elasticsearch (ES) using the bulk API. Sometimes the bulk data can be a duplicate of an existing record. One field we generate ...
0
votes
1answer
76 views

elasticsearch node client using mget on index alias bringing back docs not in alias

I am using the node js client for ES. I am doing an mget but using alias for index field and not an actual index. It works in the sense it brings back results but one of the documents is not in the ...
0
votes
2answers
184 views

Node+ElasticSearch: Sending a body on a GET request?

I am using Node.js and the request module to create a backend, and we've chose Elasticsearch as our data storage. All fine so far, except it seems Node doesn't support request bodies on GET requests? ...
0
votes
0answers
91 views

error on requesting to elasticsearch

I'm new to ElasticSearch, and I can't solve the following problem. I work on node.js with ElasticSearch, and on this request var putOptions = { hostname: 'localhost', port: 9200, path: ...
4
votes
2answers
304 views

Requesting Elasticsearch from Node times out

I am setting up a simple Node.js REST service to interface with Elasticsearch, using the official Javascript client. I'm running this code locally, but the cluster is located remotely. When I go ...
2
votes
3answers
675 views

Elastic Search size to unlimited

Am new to elastic search. Am facing a problem to write a search query returning all matched records in my collection. Following is my query to search record { "size":"total no of record" // Here ...
0
votes
1answer
398 views

Elastic search search query with Filter

Am new to elastic search, this is my query to find a exact match in my collection. { "query": { "filtered": { "query": { "match": { "_id": { ...
0
votes
2answers
296 views

Elastic search delete operation

Am new to elastic search and struggling to delete an entry from my collection. I need a query similar to this one DELETE FROM message WHERE id='1323'" and created_user = "[email protected]". Following ...
0
votes
1answer
54 views

How to specify routing using nodejs elasticsearch client?

There doesn't seem to be a way to specify routing value during index operation. I attempted to use 'undocumented params' as mentioned here: https://www.npmjs.org/package/elasticsearch e.g. ...
0
votes
1answer
123 views

node.js - indexing elasticsearch documents - till infity

I'm pretty new to Node.js - and hope not to ask to dumb questions... I'm trying to index a document into elasticsearch - which works. var elasticsearch = require('elasticsearch'); function ...
0
votes
1answer
74 views

Neo4J text search through Node.Js app

There are questions like this on here, but no answers. I need to implement a feature where the two types of nodes (labelled :Hashtags and :Statements) in my Neo4J 2.0 database can be searched by the ...
2
votes
0answers
168 views

How to do Explicit mapping in elasticsearch Nodejs client

I'm using the Javascript client in nodejs for elasticsearch, but it doesn't seem very clear to me how to set the type of a document using the elasticsearch nodejs module. The problem I'm facing is ...
0
votes
1answer
190 views

how to implement a complex search in mongodb [closed]

I'm using nodeJs, express and mongodb for creating an application. This is an user based application and database is too much heavy. There are over 25 modules. Now I want to implement a function to ...
1
vote
0answers
213 views

Elastic Search with Mongoose - Embedded Schema

I have the following mongoose schema: var ReviewSchema = new Schema({ title: String, details: String, user: {type: ObjectId, ref:'User'}, }); var SubjectSchema = new Schema({ name: ...
1
vote
1answer
694 views

MongoDB Full Text Search of Rich Documents [closed]

I'm developing an Node.js app that stores HTML documents in a MongoDB database and want to provide full text search capabilities. From what I can see the full text search included in MongoDB expects ...
1
vote
1answer
573 views

Index multiple tables from MySQL to elasticsearch using jdbc river

I need to fetch data from MySQL to Elasticsearch, i am use Elasticsearch jdbc plugin for that. This plugin allows to set a query for getting data from MySQL, but query allows to get data only from one ...
0
votes
1answer
129 views

Searching on a variable-defined field with ElasticSearch

Here is the relevant code: var field = String(querystring.parse(postData).field).toLowerCase(); var qryObj = { "fields" : view_options, "query":{ "term" : { field : value} } }; The ...
1
vote
1answer
558 views

Building a “Filter Proxy” in Node.js

I have an elasticsearch Server which I would like to query, but before showing the result to the User I want to filter the results (looking up the rights for the User in a Database etc.) So I thought ...
3
votes
3answers
1k views

Server architecture for a scalable web application

we're planing to deploy a web-application with Amazon OpsWork and I just wanted to check with you, if our architecture might have any design flaws. We've 4 components: A load balanacer (Amazon ...
2
votes
0answers
129 views

Architecture for a recurring workorder system [closed]

I'm hoping for advice on designing a workorder system that has to support recurring workorders. For example, An administrator needs to be able to set a workorder to repeat in a unit of time like every ...
0
votes
1answer
111 views

How to specify credentials username/password for elasticjs client?

Where can we specify username and password for the elasticjs (http://www.fullscale.co/elasticjs/) client?
2
votes
2answers
1k views

How to index documents with elastic.js client?

So far I haven't found any samples of HOW the elastic.js client api (https://github.com/fullscale/elastic.js) can be used for indexing documents. There are some clues here & there but nothing ...
0
votes
1answer
390 views

MongoDB, elasticsearch URL indexing

I am new to Mongodb and ElasticSearch. My requirement would be to allow users to kind of bookmark either a full page or a part of the page. I handled the front end but would like to know how to ...