• September 1, 2020

    Elasticsearch – Advance Query [Aggrega...

    The from and size is almost like pagination. It will show 0 to 20 results.The sort is sorting the return data. What is happening here, it will us...
  • September 1, 2020

    Elasticsearch – Advance Query [DSL Fil...

    Filters don’t have relevance scores. And filters are cached, so queries that we have already run, elasticsearch is going to cached. The filter is fa...
  • December 2, 2019

    Elasticsearch – Advance Query [DSL Que...

    DSL Query Context [crayon-5fc75b6ddb40c676603628/] [crayon-5fc75b6ddb410502006210/] The exists checks if the field email exists under the professor no...
  • November 15, 2019

    Elasticsearch – Full Text Queries

    In the previous section, we went through a number of term level queries, which are used for exact matches. While we can use term level queries for sea...
  • November 14, 2019

    Elasticsearch – Term Level Queries...

    These are most commonly used to query structured data such as dates and numbers. We can use term level queries to query text fields too. But searching...
Code-Ark 2.0
Important

Code-Ark 2.0

Few months back I started a small project for a client of mine. He wanted a custom PHP framework, for his application to run on, hence the birth of Code-Ark….

Software Architecture – Layered Architecture

Layered architecture is a Monolithic architecture style, with a well-defined responsibility. And each of these players will have some relationship of modularity and components within them, but all along with…

Elasticsearch – Advance Query [Aggregations]

The from and size is almost like pagination. It will show 0 to 20 results.The sort is sorting the return data. What is happening here, it will use the query and fetch method. It will…

Elasticsearch – Advance Query [DSL Filter Context]

Filters don’t have relevance scores. And filters are cached, so queries that we have already run, elasticsearch is going to cached. The filter is faster than a query. A basic filter…

Elasticsearch – Advance Query [DSL Query Context]

DSL Query Context

The exists checks if the field email exists under the professor not that if there is any value exists or not.

Under the “must”…

Elasticsearch – Full Text Queries

In the previous section, we went through a number of term level queries, which are used for exact matches. While we can use term level queries for searching for long…

Elasticsearch – Term Level Queries

These are most commonly used to query structured data such as dates and numbers. We can use term level queries to query text fields too. But searching a description field…

Elasticsearch – Searching and Querying

Searching with Request URI The query DSL is the most common approach. The way you issue a search request is to send a get request to the search API, then…

Elasticsearch – Analyzers in Mapping and Adding Analyzers to existing Indices

Let’s see how we can use analyzers in field mappings. All it takes is an analyzer parameter within a field mapping with the name of an analyzer.

As we…

Elasticsearch – Analyzer Part 2

Configure the built-in tokenizer We can configure the built-in analyzers, some of them can be configured through parameters. In the following example, we will configure the standard analyzer to remove…

Elasticsearch – Analysis Process

All this process does is tokenizing and normalizing a block of text. This is done to make the text easier to search. We have full control over the analysis process. The analyzed term is stored within the inverted index. That means whenever we perform search queries we are searching through the results of the analysis process and not the document.