Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9267371
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T14:32:06+00:00 2026-06-18T14:32:06+00:00

In elastic search, this filter { bool: { must: { term: { article.title: google

  • 0

In elastic search, this filter

{
  "bool": {
    "must": {
      "term": {
        "article.title": "google"
      }
    }
  }
}

Properly returns articles with “google” in the title.

However,

{
  "bool": {
    "must": {
      "term": {
        "article.title": "google earth"
      }
    }
  }
}

Does not return any results, despite the fact that there are articles with the exact words “google earth” in the title. I would like it to do so.

The full query:

{
  "size": 200,
  "filter": {
    "bool": {
      "must": {
        "term": {
          "article.title": "google maps"
        }
      }
    }
  },
  {
    "range": {
      "created_date": {
        "from": "2013-01-11T02:14:03.352Z"
      }
    }
  }]
}
}

As you can see, I don’t have a “query” — just a filter, size, and range. So I take it that ElasticSearch is using the default analyzer…?

What am I misunderstanding?


EDIT: For those looking for the solution, here is my filter:

{
  "query": {
    "bool": {
      "must": {
        "must_match": {
          "article.title": "google earth"
        }
      }
    }
  }
}

Node that (1) we wrapped the bool filter with “query” and (2) the “term” changed to a “must_match”, which causes the entire phrase to be matched (as opposed to “match” which would search the article.title with a standard analyzer on google earth).

The full query looks like this:

{
  "size": 200,
  "filter": {
    "query": {
      "bool": {
        "must": {
          "must_match": {
            "article.title": "google earth"
          }
        }
      }
    }
  }
}

FWIW, the reason I have this condition within the “filter” field (as opposed to using a standard query) is that sometimes I want to use a “must_not” instead of a “must_not”, and sometimes I also add other elements to the query.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T14:32:08+00:00Added an answer on June 18, 2026 at 2:32 pm

    Elasticsearch isn’t using an analyzer at all, because you have used the term query, which looks for exact terms.

    Your title field IS analyzed (unless you have specified otherwise), so "google earth" will have been indexed as the two terms ["google","earth"]. That’s why the term query for "google" works, but the term query for "google earth" doesn’t – that EXACT term does not exist.

    If you use a match query instead, then your query terms will be analyzed before searching.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following Elastic Search query with only a term filter. My query
My elastic search setup is something like this :analyzer => { :default => {
This is a question about Elastic-Search python API (pyes). I run a very simple
I'm trying to filter an elastic search query by date using the rawes python
The current setup is compose by 3 elastic search servers, of witch one is
I am developing an application that uses elastic search, and in some case I
I am sitting playing with elastic search from C#, and I wanted to create
I need a way to manage connections to a hosted Elastic Search provider, to
I Integrating MongoDB with Elastic Search I have indexed the collection person in the
I just installed and testing elastic search it looks great and i need to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.