0
votes
2answers
42 views

Passing data between controllers of different modules

We are creating a Telecom App dashboard. We are trying to fetch the logs using Logstash and Elastic search, and displaying it on UI using ng-Table directive of Angularjs . We are able to obtain logs ...
0
votes
2answers
114 views

Value undefined inside Callback function

I'm using Elastic.js to access ElasticSearch and run query.... I need to run a facet and get the result and use this result for another query... I'm able to get the result of first one and run query ...
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){ ...
3
votes
1answer
4k views

AJAX Call with Elasticsearch Search

I've been trying to figure out how to correctly request data from elasticsearch using a jQuery AJAX call. I either get an parsing error or I'll get every document in the index I'm searching under. ...
2
votes
1answer
334 views

elasticsearch: create index with mappings using javascript

I'm trying to create an elasticsearch index with mappings using the official javascript client. My code is as follows: client.indices.create({ index: "aName", "mappings": { ...
1
vote
1answer
90 views

How to resolve or flatten object references in elasticsearch mongo river?

Is it possible to flatten or resolve references to other collections before indexing to Elasticsearch? Example I have this schema: var PartSchema = new mongoose.Schema({ title: { type: String, ...
0
votes
1answer
22 views

Elasticsearch exact match query, getMapping gives as follows

What would be the exact javascript elasticearch client.search-param to match exactly by email? I have tried a lot of variations, but on my test-data, which is only one document, I always get a match ...
0
votes
1answer
32 views

Elasticsearch how search in multiple fields

I am using elasticsearch 1.2.1 and I want to do a search from javascript with several fields, for instance, by title and content. My code is: var data = { q: 'title: test}; $.ajax({ ...
0
votes
1answer
46 views

How to call multiple grunt.run.task within one grunt.registerTask?

What I tried to accomplish, when I type grunt into my cmd shell, is the following: start mongod start elasticsearch start nodemon when mongod and elasticsearch runs, execute ...
0
votes
1answer
115 views

Is it possible to control the colors of the bars in Kibana?

I'm collecting clinical dosing data in elastic search. the mapping looks like this: "mappings" : { "dosing": { "properties" : { "sitename" : {"type" : "string", "index" : "not_analyzed"}, ...
0
votes
1answer
67 views

How to specify the fields I want with my facets

I'm using elasticJS and I want to get min/max values using facets : "StatisticalFacet". // javascript var client = ejs.Request().indices('index').types('types'); client.query(ejs.MatchQuery('field', ...
0
votes
1answer
43 views

ElasticSearch Query Creation

I am having an inordinate amount of trouble trying to structure an ElasticSearch query. I need to get the top 25 tweets based on the sum of two fields, favoritesCount and retweetCount. I also need ...
0
votes
1answer
396 views

AngularJs-elasticSearch: page not updated

I'm still new in Angular & elasticSearch. My goal is to key in a new tweet , then after clicking on the add button: the tweet will be indexed in elasticsearch) and a table results of tweets will ...
3
votes
0answers
617 views

Plotting an empty interval for elasticsearch date histogram

I'm using an elasticsearch date histogram to group responses by count over time. The date histogram facet works great for this but if an interval doesn't have any responses that fall within in it it ...
2
votes
0answers
160 views

IllegalAccessError after a few queries when using script filter in elasticsearch query

I have a 'users' elasticsearch index, where a user looks like: { "id" : 1, "name" : "Jeroen", "hours": [8,9,10,11,12,19,20,21,22,23], "country": "NL", "utc_offset": 1.0 } I want to find ...
1
vote
0answers
13 views

Abort elasticsearch request using elastic.js

Is there a way to cancel requests/queries to Elasticsearch using elasticjs? The web app I am working on performs a request/query every 5 seconds, but I would like to cancel the request if for some ...
1
vote
0answers
300 views

Custom Filters in kibana Dashboard

In Kibana, I am trying to create filters with default values similar to the existing time filter in header. I went through the code and found that this function is taken care in ...
1
vote
0answers
47 views

Autocomplete in Elasticsearch

I am getting all the fields in autocomplete elastic search.I want those fields which have related values only.Is it doable? I tried: { "query": { "bool": { "should": [ ...
0
votes
0answers
10 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 ...
0
votes
0answers
27 views

How to call ElasticSearch [endpoint]/search?search_type=count to get count?

I tried a curl request which works fine with ElasticSearch. Then I tried to create an equivalent Ajax call using that curl request. But the Ajax request does not give me the result i get by calling ...
0
votes
0answers
28 views

Elasticsearch needs to page reload

My question is quite simple actually I followed the tutorial here, and I made a dictionary sample. so after found the word with "searchkick" I click "clear" button and all javascript in the page ...
0
votes
0answers
17 views

Using elastic search's query string syntax in javascript .match function

I've got a series of strings that I want to match against the elastic search query string syntax. For those who don't know, it goes something like this F* --> Match an 'F' followed by zero or more ...
0
votes
0answers
127 views

Change graph colors in Kibana based on dashboard theme

Good afternoon everyone, I'm working with Kibana and I was wondering how I can adjust the colors used in the bar graphs based upon the dashboard that the user currently has selected. I know that the ...
0
votes
0answers
27 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
0answers
20 views

elastic search - implement date range search

I am stuck in a below range scenario. I have JSON data and I want to implement date range search on my data on client side (javascript). Could you please share some thoughts on how to implement date ...
0
votes
0answers
47 views

Angularjs & Danglejs running date histogram twice

I'm trying to run a modified demo elasticsearch's date_histogram, using Angluar.js and Dangle.js. (Example can be seen here: http://bl.ocks.org/karmi/5058288) I've changed it a bit to put it in my ...
0
votes
0answers
71 views

ElasticSearch - highlight matches

I am using ElasticSearch and I am trying to hightlight the matches of a query inside the retrieved documents. I am using Backbone.js to set the query model and I would also like to add some highlight ...
0
votes
0answers
129 views

ElasticSearch histogram facet exception

When I execute this query on my events index: { "query": { "query_string": { "query": "*" } }, "facets": { "histo1": { "histogram": { "key_field": ...
0
votes
0answers
68 views

elasticsearch.js ignoring query parameters

I'm trying to use the elasticsearch.js client in the browser to load data from an elasticsearch instance running on the same computer. To get the movies from the year 2003, the following code works: ...
0
votes
0answers
39 views

Elasticsearch query_string representation in java script

I am using AngularJS and ElasticJS for querying Elasticsearch. For the normal query given below, I have been able to write the corresponding script provided below the query QUERY { "query": { ...
0
votes
0answers
318 views

How to add Elasticsearch source filter to elastic.js request object

I am using Kibana which is based on Angular.js, elastic.js and others. In one of the modules, where elastic.js is used, I cant't figure out how to add a source filter (new feature in Elasticsearch ...
0
votes
0answers
71 views

jquery validator remote is not validating

I'm doing a form with a few fields and one of that is the username. The username must be unique and I want to validate after the user writes. For that, I have a elasticsearch running and I'm doing one ...
0
votes
0answers
623 views

elasticsearch jquery autocomplete - optimizing the code

What I am trying is very simple, integrate elasticsearch with jqeury. I am getting the result I wanted, but wanted to check if there is any easier way to do it. Scenario: 1 I am getting the ...
0
votes
0answers
301 views

Is searchkick or elastic search known to slow down response time?

So we just recently added searchkick and elastic search to our web app but when we run locally it randomly slows the loading time and it slows it down a lot. On our heroku server it doesn't seem to ...
0
votes
0answers
300 views

Elasticsearch javascript external script examples

I started exploring scripts in elasticsearch a few days ago and since then I couldn't find a single example on net to see how the simplest things can be done. If anyone did this before, it would be ...
-2
votes
0answers
31 views

Search results - Parse with PHP or Javascript

I'm getting JSON results and I want to parse it and display it as results to the user. I'm torn between usiing PHP and javascript Ajax. Since the bots can't use the search button (robots.txt) there is ...