All Questions
Elasticsearch medium

An application queries a `text` field for 'Apple' using a `term` query but receives 0 results, despite the word existing in the document. What is the technical reason?

  1. A The `term` query is case-sensitive and performs an exact byte-match against the inverted index. The standard analyzer lower-cased 'Apple' to 'apple' during indexing, making a match impossible.
  2. B The `term` query only works on numeric and date fields.
  3. C The coordinating node has not yet performed a 'Global Refresh' for that specific shard.
  4. D The `text` field mapping defaults to 'lazy' evaluation, requiring a `match` query to wake it up.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions