ElasticSearch Part 3 [Categories of Queries]

In elasticsearch there are two main categories in queries which are :

1. Leaf: It looks for particular value in particular fields like "dell" in the product name. This queries can be used by themselves without being part of the compound queries. And the best thing is it can be used as a part of compound query too for the most advanced queries.

2. Compound: This queries wrap the leaf queries and can wrap other compound queries. It combine multiple queries in logical fashion which means as a Boolean logic. Using this we can also alter the behavior of the queries.

3. Full Text: It is used for running full text search query i.e. looking for every fields in the document. Here values are analyzed when adding and updating the document. It is analyzed like by using the stop words like "the".

4. Term Value: Used to match exact matching values. Usually used for the numbers and date rather then the text. E.g. Finding peoples who are born between 2001 and 2010. Here search queries are not analyzed before executing.

5. Joining Queries: As we know that it is very expensive to perform joining in the distributed system so elasticsearch offers two forms of joins that are designed to scale horizontally they are:

I. Nested Queries
Lets go back, where we had defined a propertise called category in the product document which contains the array of the categories. This nested queries are used in such situation where each object can be queried as a nested query as a indepedent query. 

II. has_child and has_parent queries
has_child returns the parent document which child document match the query similarly has_parent returns the child document which parent document match the query.

6. Geo Queries
I. geo_point:: it is used for latitute/longitude pairs

II. geo_shape:: it is used for the shapes like triangle, polygons etc.


  1. Thanks for your informative post on Java application development. This open source platform assists software developers to create stunning mobile application with ease. Further, they can make use of this platform at free of cost. Best Java Training in Chennai | Best JAVA Course in Chennai

    1. Java Online Training Java Online Training Java Online Training Java Online Training Java Online Training Java Online Training

      Hibernate Online Training Hibernate Online Training Spring Online Training Spring Online Training Spring Batch Training Online Spring Batch Training Online

  2. I am following your blog from the beginning, it was so distinct & I had a chance to collect conglomeration of information that helps me a lot to improvise myself.
    PHP Training in Chennai|PHP Course in Chennai

  3. Thanks for splitting your comprehension with us. It’s really useful to me & I hope it helps the people who in need of this vital information.
    Best web designing course in chennai|web designing course in chennai

  4. Well Said, you have furnished the right information that will be useful to anyone at all time. Thanks for sharing your Ideas.
    PHP Training in Chennai | PHP Course in Chennai

  5. Thanks for sharing this unique and informative content which provided me the required information.
    clinical sas training in chennai

  6. Thanks for sharing this unique and informative content which provided me the required information.
    clinical sas training in chennai

  7. • Good article! There is a great need for more in-depth reviews of certain products and technologies. Your tips are really helpful for anybody who wants to create reviews of any type. Great job. Thanks.
    informatica training in chennai

  8. Well Said, you have furnished the right information that will be useful to anyone at all time. Thanks for sharing your Ideas.
    Web Designing Course in Chennai | web designing training in chennai

  9. Professional Expert level Android Training in chennai, Android App Development
    Android Training | Android App Development | Training in chennai

  10. Nowadays, most of the businesses rely on cloud based CRM tool to power their business process. They want to access the business from anywhere and anytime. In such scenarios, salesforce CRM will ensure massive advantage to the business owners. Cloud Computing Training in Chennai | Cloud Computing Courses

  11. Superb! I found some useful information in your blog, it was awesome to read.Thank you for sharing.
    Selenium Training in Chennai
    Selenium Training

  12. Pretty blog post! I should learn from some useful information for this blog article, It 's a great content Keep it useful sharing. Selenium Training in Chennai | Selenium Course in Chennai

  13. The best thing is that your blog really informative thanks for your great information!
    erp in chennai

  14. Thank you for Sharing. I'm working in brave technologies private limited, We are the best erp software developers based in chennai. erp providers in chennai

  15. Thanks for the tutorial, I been searching for this for a long time, At last reached to the got post. Thank you giving a information
    Video editing institute in chennai

  16. In coming years, cloud computing is going to rule the world. The cloud based CRM tool provider like Salesforce have massive demand in the market.
    Cloud computing course in Chennai|cloud training in chennai

  17. Good and nice post, thanks for sharing your valuable information...

    Selenium Training in chennai | Selenium course in chennai

  18. I found a lot of interesting information here. A really good post, very thankful and hopeful that you will write many more posts like this one.

    Webdesign L├╝denscheid

  19. nice blog too informative. looking and reading your points its so impressive. doing more blog like this. i really appreciated doing like this.No.1 Software Testing Training Institute in Chennai | Best Selenium Training Institute in Chennai | ISTQB Certification Center in Velachery

  20. This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information. Keep it up. Keep blogging. Looking to reading your next post.
    AngularJS Training in Chennai
    Best AngularJS Training in Chennai
    Hadoop Training in Chennai
    Big Data Training in Chennai

  21. a pride for me to be able to discuss on a quality website because I just learned to make an article on
    cara menggugurkan kandungan

  22. I believe there are many more pleasurable opportunities ahead for individuals that looked at your site.

    java training in bangalore

  23. Thanks for posting this useful content. Good to know about new things here. Let me share this.
    Final Year Project Center in Chennai | Final Year Project Center in Velachery