[ POPULAR STORIES ]

CATCH UP THE POPULAR STORIES

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

Mycestro – The Next Generation Innovative 3D Mouse

          Mouse is one of the prime device in desktops. Even the laptop users use mouse instead of touch-pad for better control over the system. The design of mouse was not changed since the invention of computers except that there was an innovation with laser mouse. There are some advancements in… Read More »

Read more
Alternative text

Append/Write CRON Output to Log File in Linux (Unix)

Append CRON Output to Log :            The following syntax can be used to append the output of the shell scripts to the given file. Syntax : CRON_EXPRESSION COMMAND >> /OUTPUT_LOG_FILE_PATH/LOF_FILE 2>&1 Example :            The following example will append the output of the shell script test.sh to cron_output.log in the… Read More »

Read more
Alternative text

Linked List in C – Insertion Sort

DATA STRUCTURES IN C – LINKED LIST (20 PROGRAMS) Try DATA STRUCTURES IN C – LINKED LIST (20 PROGRAMS) Linked List in C – Insertion Sort : Source Code : #include<stdio.h> struct node { int data; struct node *next; }; struct node *head=NULL; void insert_sort(int data) { struct node *temp=head; struct node *prev=NULL; struct node *ptr;… Read More »

Read more
Alternative text

iMotion – Haptic Feedback Virtual Reality Motion Controller

      We are now in the generation of virtual reality. Virtual reality displays and Virtual reality controllers are becoming very popular. Some of the examples are GlassUp – An augmented reality eye wear, MYO – YOUR MUSCLE CAN TALK – HAND BASED GESTURE CONTROL, Oculus Rift – nxtGen Virtual Reality Headset and many more.       iMotion,… Read More »

Read more
Alternative text

[ LATEST STORIES ]

CATCH UP THE LATEST STORIES

[ SUBSCRIBE TO OUR BLOG ]