Technology Source

[ POPULAR STORIES ]

CATCH UP THE POPULAR STORIES

Leap Motion – A Gester Based Motion Sensing Controller for Desktops and Laptops

               Remember the movie Iron Man where Robert Downey Jr. (Tony Stark / Iron Man) uses his hands to control the computers and huge displays. Have you ever thought of having such technology with you? Here it comes, Leap Motion – a touch free motion sensing controller where you… Read More »

Read more
Alternative text

Neo4j Query Tutorial – MATCH and MERGE

Example 1: Match two nodes and create a relationship between them. MATCH (person1:LABEL{id:'1234'}),(person2:LABEL{id:'5678'}) MERGE (person1)-[r:FRIEND]-(person2) Example 2: Match two nodes and create/update a relation between them. Optionally set properties to the nodes or relationships with ON CREATE SET or ON MATCH SET. Use r+={property:’value’} to add properties or update existing properties. MATCH (user1:USER{id:'123'}),(user2:USER{id:'456'}) MERGE (user1)-[r:FRIEND]-(user2) ON CREATE SET… Read More »

Read more
Alternative text

Elasticsearch Java API – Get Index Type List Mapping

The following is sample Java program to get the list of indices with corresponding type in an Elasticsearch instance. Sample Program: package com.report.test; import java.io.IOException; import java.net.Socket; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Set; import java.util.concurrent.ExecutionException; import org.elasticsearch.action.admin.cluster.state.ClusterStateResponse; import org.elasticsearch.action.admin.indices.mapping.get.GetMappingsRequest; import org.elasticsearch.action.admin.indices.mapping.get.GetMappingsResponse; import org.elasticsearch.client.transport.TransportClient; import org.elasticsearch.cluster.ClusterState; import org.elasticsearch.cluster.metadata.AliasMetaData; import org.elasticsearch.cluster.metadata.IndexMetaData; import… Read More »

Read more
Alternative text

Linked List in C – Split a Linked List into 2 Linked List

DATA STRUCTURES IN C – LINKED LIST (20 PROGRAMS) Try DATA STRUCTURES IN C – LINKED LIST (20 PROGRAMS) Linked List in C- Split a Linked List into 2 Linked List : Input:         Head Pointer: head1         Original linked list: node 1->node 2->node 3->node 4->node 5->node 6->node 7 Output:    … Read More »

Read more
Alternative text

Execute Raw Elasticsearch Query using Transport Client – Java API

           The following sample program details on how to execute raw Elasticsearch query using Transport Client (Java API).  Maven Dependencies: <dependencies> <dependency> <groupId>org.elasticsearch</groupId> <artifactId>elasticsearch</artifactId> <version>1.5.0</version> </dependency> <dependency> <groupId>org.json</groupId> <artifactId>json</artifactId> <version>20140107</version> </dependency> </dependencies>            Add the above MAVAN dependencies to the POM file or add the JARs specified in… Read More »

Read more
Alternative text

[ LATEST STORIES ]

CATCH UP THE LATEST STORIES

[ SUBSCRIBE TO OUR BLOG ]

Close Bitnami banner
Bitnami