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

  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

  24. Appreciation for really being thoughtful and also for deciding on certain marvelous guides most people really want to be aware of.

    AWS Training in Chennai

  25. Thanks a lot very much for the high quality and results-oriented help.
    I won’t think twice to endorse your blog post to anybody who wants
    and needs support about this area.

    white label website builder

  26. Thanks for posting this useful article,Keep updating such a Great information of Blog..
    Mobile Computing Projects in Chennai | Mobile Computing Projects in Velachery

  27. Thanks for sharing this kind of wonderful explanation with us.in this informative blog,we learn more things about.... which is involves the detailed information about optimization of blogger.
    CompTIA Security+ Certifications Training in Chennai | Best S+ Exams in Taramani

  28. Wonderful blog & good post.Its really helpful for me, awaiting for more new post. Keep Blogging!
    VMware Exam Centers in Chennai | VMware Exam Centers in Velachery

  29. I simply wanted to write down a quick word to say thanks to you for those wonderful tips and hints you are showing on this site.

    Python Training in Chennai
    Python Training

  30. You have provided an nice article, Thank you very much for this one. And i hope this will be useful for many people.. and i am waiting for your next post keep on updating.... CompTIA Security Plus Certifications Course in Chennai | Best CompTIA Security+ Training in Mandaveli

  31. Really awesome blog. Your blog is really useful for me. Thanks for sharing this informative blog. Keep update your blog.
    CompTIA A Plus Certifications Coaching Center in Chennai | No.1 CompTIA Security+ Training in Pallavaram

  32. Your blog is really amazing with useful information you are shared.Thank you so much for sharing such an wonderful article with us..keep updating....
    Mobile Computing Project Center in Chennai | Mobile Computing Projects in Velachery

  33. Wonderful blog & good post.Its really helpful for me, awaiting for more new post. Keep Blogging!
    Multimedia Course in Chennai | Multimedia Course in Velachery

  34. I really enjoyed while reading your article, the information you have delivered in this post was damn good. Keep sharing your post with efficient news...
    VLSI Project Center in Chennai | VLSI Project in Velachery

  35. It's interesting that many of the bloggers your tips helped to clarify a few things for me as well as giving.. very specific nice content.
    Real Time Project Center in Chennai | Real Time Project in Kanchipuram

  36. Thank you for your post. This was really an appreciating one. You done a good job. Keep on blogging like this unique information with us.
    NS2 Project Center in Chennai | NS2 Training in Velachery

  37. You gave your ideas in an effective way which will reach the readers more and it will impact the others wrong thoughts.thanks for giving the commenting opportunity.
    iOS Training in Chennai
    Android Training in Chennai
    Selenium Training in Chennai
    Digital Marketing Training in Chennai
    German Classes in Chennai
    ios training in velachery

  38. Thanks for your great and helpful presentation I like your good service. I always appreciate your post. That is very interesting I love reading and I am always searching for informative information like this.Also Checkout: blockchain technology training chennai | blockchain training institute in chennai | best blockchain training in chennai | blockchain certification training in chennai

  39. Outstanding blog thanks for sharing such wonderful blog with us ,after long time came across such knowlegeble blog. keep sharing such informative blog with us.

    Check out : hadoop training in chennai cost
    hadoop certification training in chennai
    big data hadoop course in chennai with placement
    big data certification in chennai

  40. The Project Management Institute (PMI)is a nonprofit membership association and certification body, best known for its Project Management Professional (PMP) credential and the Project Management Body of Knowledge (PMBOK), a collection of best practices and standards for project management.
    Good job and thanks for sharing such a good blog You’re doing a great job. Keep it up !!

    PMP Certification Fees | Best PMP training in chennai |
    pmp certification cost in chennai | PMP Certification Training Institutes in Velachery |
    pmp certification courses and books | pmp certification requirements |
    pmp training centers in chennai | pmp certification requirements

  41. Excellent blog I visit this blog its really informative. By reading your blog, i get inspired and this provides useful information.

    Check out:
    best hadoop training in chennai
    big data course fees in chennai
    hadoop training in chennai cost
    hadoop course in chennai

  42. I would definitely thank the admin of this blog for sharing this information with us. Waiting for more updates from this blog admin.
    Azure Training in Chennai
    Microsoft Azure Training in Chennai
    Azure Training
    Data Science Training in Chennai
    UiPath Training in Chennai

  43. This is the first & best article to make me satisfied by presenting good content. I feel so happy and delighted.By Learn Digital Marketing Course Training in Chennai it will help to get Digital Marketing Training with Placement Institute in Chennai. If you Learn Social Media Marketing Training with Placement Institute in Chennai, you will get job soon.

    Learn Best Digital Marketing Course Training in Chennai in professional institute to get reputed job.

  44. I just loved your article on the beginners guide to starting a blog.If somebody take this blog article seriously in their life, he/she can earn his living by doing blogging.thank you for thizs article. best blockchain online training