[ POPULAR STORIES ]

CATCH UP THE POPULAR STORIES

Error – “Plugin execution not covered by lifecycle configuration” for Spring Data Maven Builds – Eclipse/SSTS/GGTS Maven Proxy Issue when ...

You may have encountered this error when using MAVEN in corporate environments which is due to the proxy issue.  You may even get this error even after configuring proxy setting in Eclipse- > Window -> Preferences -> General -> Network Connections. The problem is that MAVEN wont use this PROXY setting for downloading the dependency… 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

Elasticsearch Java API – Get Type List from given Index

The following is sample Java program to get the list of type for a given index name in an Elasticsearch instance. Sample Program: package com.report.test; import java.util.ArrayList; import java.util.List; import java.util.concurrent.ExecutionException; import org.elasticsearch.action.admin.indices.mapping.get.GetMappingsRequest; import org.elasticsearch.action.admin.indices.mapping.get.GetMappingsResponse; import org.elasticsearch.client.Client; import org.elasticsearch.client.transport.TransportClient; import org.elasticsearch.cluster.metadata.MappingMetaData; import org.elasticsearch.common.collect.ImmutableOpenMap; import org.elasticsearch.common.hppc.cursors.ObjectObjectCursor; import org.elasticsearch.common.settings.ImmutableSettings; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.common.transport.InetSocketTransportAddress; public class SampleProgram{ public static… Read More »

Read more
Alternative text

Milliarcsecond to Degree Conversion and Degree (Decimal Format) to DMS (degree/minute/second) for Latitude/Longitude Conversion

Milliarcsecond to Degree (Latitude and Longitude) Degree (for both Latitude and Longitude) = Milliarcsecond  value/3600000   Milliarcsecond  Range Latitude Range   :   -324,000,000 to +324,000,000 Longitude Range:   -648,000,000 to +648,000,000 Degree Range (Decimal Format) Latitude Range   :   -90 to +90 Longitude Range:   -180 to +180 Degree (Decimal Format) to DMS (degree/minute/second) Format Degree=int(Degree)… Read More »

Read more
Alternative text

MinnowBoard – Open source computer powered by Intel Atom processor

           Open source software and hardware projects are new and innovative all over the world. Developers are contributing a lot for open source projects and most of the those projects really come out well. Some of the successful open source projects are Linux OS, Parallella etc. Intel is another company to join in… Read More »

Read more
Alternative text

[ LATEST STORIES ]

CATCH UP THE LATEST STORIES

[ SUBSCRIBE TO OUR BLOG ]