[ POPULAR STORIES ]

CATCH UP THE POPULAR STORIES

Smartphones – How we use them

Co-produced by :Rebateszone & Technology Source

Read more
Alternative text

Elasticsearch Java API – Get Index List

The following is sample Java program to get the list of indices in an Elasticsearch instance. Sample Program: package com.report.test; import org.elasticsearch.client.Client; import org.elasticsearch.client.transport.TransportClient; import org.elasticsearch.common.settings.ImmutableSettings; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.common.transport.InetSocketTransportAddress; public class SampleProgram{ public static void main(String[] args) { String hostname = "localhost"; String clusterName = "elasticsearch"; Settings settings = ImmutableSettings.settingsBuilder().put("client.transport.sniff", true).put("cluster.name", clusterName).build(); Client esclient… Read More »

Read more
Alternative text

Samsung Galaxy S4 – Its a Superphone!!!

            We live in a mobile world.We travel a lot. We always want to be connected with other. Smartphones are one choice which makes it. But how about a super smartphone which replaces desktop, laptop, tablet, iPod  camera etc. We have all the above mentioned electronic products in one form Samsung Galaxy S4… Read More »

Read more
Alternative text

Linked List in C- Reversing Every N Nodes of Linked List using Recursion

DATA STRUCTURES IN C – LINKED LIST (20 PROGRAMS) Try DATA STRUCTURES IN C – LINKED LIST (20 PROGRAMS) Linked List in C- Reversing Every N Nodes of Linked List using Recursion : Input: 1->2->3->4->5->6->7->8 Output: 3->2->1->6->5->4->8->7 Source Code : #include<stdio.h> struct node { int data; struct node *next; }; struct node* reverse(struct node **head,int N) { struct… Read More »

Read more
Alternative text

Elasticsearch – Compare/ScriptFilter/Condition on Two Fields using Script Filter – REST Query + Java API

Example 1: GET /INDEX/TYPE/_search { "query": { "filtered": { "filter": { "script": { "script": "doc['field1'].value < doc['field2'].value" } } } } } Example 2: GET /INDEX/TYPE/_search { "query": { "filtered": { "filter": { "script": { "script": "doc['field1'].value - doc['field2'].value > 10" } } } } } Java API: import org.elasticsearch.index.query.FilterBuilders; import org.elasticsearch.action.search.SearchRequestBuilder; import org.elasticsearch.action.search.SearchResponse; import… Read More »

Read more
Alternative text

[ LATEST STORIES ]

CATCH UP THE LATEST STORIES

[ SUBSCRIBE TO OUR BLOG ]