[ POPULAR STORIES ]

CATCH UP THE POPULAR STORIES

Elasticsearch – Apply Nested Filter on Nested (Inner) Aggregation

           The following query can be used to apply filter on nested (inner) aggregation. In our example aggregationName2 is the nested aggregation. The filter (bold content) in the input JSON will be applied only for the aggregation aggregationName2. aggregationName2 takes in the output of aggregationName1, then applies the filter which is then processed by aggregationName2… Read More »

Read more
Alternative text

ASUS Transformer AiO – Desktop & Tablet

         Desktops, laptops, mobile, tablet are used for everyday computing. It is a part of daily life. We even own desktop, tablet and laptop which we use for browsing, playing, social networking, watching movies and the list goes on. But we wont be able to use all the three since any one… 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

Spark Error – java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop binaries

           The following error is due to missing winutils binary in the classpath while running Spark application. Winutils is a part of Hadoop ecosystem and is not included in Spark. The actual functionality of your  application may run correctly even after the exception is thrown. But it is better to have it… Read More »

Read more
Alternative text

Displair – An Interactive, Screenless and Virtual Display

           The world we live in has become virtual. We are able to feel the technology. In the movies Iron Man, Star Wars we can see a lot technologies particularly interactive displays where the images and videos will be projected in air. They were first just a computer graphics. But its… Read More »

Read more
Alternative text

[ LATEST STORIES ]

CATCH UP THE LATEST STORIES

[ SUBSCRIBE TO OUR BLOG ]