ElasticSearch Node Client vs Transport Client

Like Apache Solr has Java client Solrj, which offers a native java interface to add, update and query solr index, ElasticSearch also has Java client with which you can you can perform index operations, search queries and administrative tasks. A typical use-case is that you are connecting to a remote ElasticSearch cluster from a Java ...

ElasticSearch Query vs Filters

Query or Filter Throughout the ElasticSearch API you will see parameters with query or filter in the name, sometimes it’s confusing when you should use query, when to use filter, or when you want to combine queries with filters. When to use queries? Full text search Where the search result depends on score When to use ...

Prefix Query vs Fuzzy Query

I started to use ElasticSearch in my project. Today there’s one requirement from our customer, that is keyword search by matching the beginning letters of words, for example,  if the document contains “kimchi” as username, when searching for “kim”, “kimchi” should also be returned. So let’s see what ElasticSearch can offer Prefix Query Prefix Query: Matches ...