[ POPULAR STORIES ]

CATCH UP THE POPULAR STORIES

MYO – YOUR MUSCLE CAN TALK – HAND BASED GESTURE CONTROL

            The technology we use has changed a lot. We control the technology with voice, hand gestures, eye and many more. Control of electronic devices like smartphones and televisions are controlled with voice with the use of latest technology in hardware and software. In advanced televisions and gaming consoles like… Read More »

Read more
Alternative text

Sony PlayStation 4 – Upcoming nxGen Console Unveiled

          PlayStation & Xbox – The Legendary Fight. The latest news is that Sony has unveiled its latest next generation console PlayStation 4 in Sony press conference. The hardware specification of the console was announced by the company. But the console was not displayed which is the sad part. The hardware specification include a CPU with eight AMD… Read More »

Read more
Alternative text

Elasticsearch – Date/Time(String) Add/Subtract Duration – Days,Months,Years,Hours,Minutes,Seconds

Sample Query : POST /test/test/_search { "query": { "filtered": { "filter": { "bool": { "must": [{ "range": { "dateOrTimeAttribute": { "from": "16:31:15", "to": "16:31:15||+10m" } } }] } } } } } Examples: “16:31:15||+10m” “16:31:15||+1d” “2016-02-02||-1M”  

Read more
Alternative text

Ruby on Rails – Error installing mysql2: Failed to build gem native extension – Ubuntu Linux

      This is a very common issue where we get error “Error installing mysql2: Failed to build gem native extension” while installing mysql2 gem in Rails(in Ubuntu Linux OS). The problem is due to missing libmysql(from MYSQL) file. Linux Solution:       To solve the issue install the compnents libmysql-ruby and libmysqlclient-dev using the… Read More »

Read more
Alternative text

Elasticsearch – Use Script Filter/Conditon in Aggregation/Sub-Aggreagtion

Example 1 – REST: GET /INDEX/TYPE/_search { "size": 0, "aggs": { "FILTER_NAME": { "filter": { "script": { "script": "doc['field1'].value < doc['field2'].value" } } } } } Example 1 – Java API: SearchRequestBuilder searchRequestBuilder = esClient .prepareSearch("INDEX) .setTypes("TYPE") .setSize(0) .addAggregation( AggregationBuilders.filter("FILTER_NAME").filter(FilterBuilders.scriptFilter("doc['filed1'].value > doc['field2'].value"))); SearchResponse searchResponse = searchRequestBuilder.execute().actionGet(); Map<String, Aggregation> aggMap = searchResponse.getAggregations().asMap(); InternalFilter filter = (InternalFilter)… Read More »

Read more
Alternative text

[ LATEST STORIES ]

CATCH UP THE LATEST STORIES

[ SUBSCRIBE TO OUR BLOG ]