Keyword query
A keyword query is a search request expressed primarily as words or terms that an information-retrieval system matches against indexed content.
Grokking Relational Database Design
Keyword searching is a query technique that finds records containing specified words or terms in text.
- How it is used
- Supports movie-title searches requiring keyword, partial-word, or fuzzy matching.
- How deep it goes
- Defines token-based full-text indexes, contrasts LIKE searches, and shows MySQL, MariaDB, and PostgreSQL implementations.
- Examples
- Uses movie titles, LIKE '%exciting%', and MATCH ... AGAINST('exciting' IN NATURAL LANGUAGE MODE).
- What you can do after
- Apply it via full-text indexes and database-specific search syntax for movie-title queries.
Read how Grokking Relational Database Design explains keyword query →
MongoDB 8.0 in Action, Third Edition
A search query is an expression specifying terms, phrases, conditions, or patterns to match against indexed content.
- How it is used
- Supports full-text retrieval by matching keyword tokens against an Apache Lucene inverted index.
- How deep it goes
- Explains tokenization, lowercasing, inverted-index matching, relevance scoring, and logical operators.
- Examples
- Uses food-vendor, city, and street queries against two inspection documents.
- What you can do after
- Evaluate/understand how query terms retrieve documents and influence their relevance scores.
Read how MongoDB 8.0 in Action, Third Edition explains keyword query →
Elasticsearch in Action, Second Edition
A search query is a request that evaluates query criteria against indexed documents to retrieve matching results.
- How it is used
- Retrieves indexed documents through the _search API using structured criteria or full-text matching.
- How deep it goes
- Explains analysis, token matching, relevance, and Boolean operators, but defers detailed precision and recall treatment.
- Examples
- Demonstrates a books index, a Java Complete Guide title search, highlighting, and explicit OR and AND operators.
- What you can do after
- Apply it via the Elasticsearch _search endpoint with Query DSL, choosing token matching and Boolean behavior for the search need.
Read how Elasticsearch in Action, Second Edition explains keyword query →
Related concepts
- percolate querycontrasts with · An Elasticsearch percolate query matches stored queries against a supplied document.
- similarity searchcontrasts with · Similarity search is a retrieval technique that finds or ranks items by comparing their representations with a query representation under a similarity or distance measure.
- logical AND operatorconfigured by · A logical AND operator is a Boolean conjunction that produces true exactly when all operands have true truth values.
- logical ORuses · Logical OR is a Boolean disjunction that is true when at least one of its component propositions is true.
- prompt engineeringcontrasts with · Prompt engineering is the deliberate design and refinement of inputs, instructions, and context to guide an AI model’s behavior or outputs.
- information retrievaladdressed by · Information retrieval is the process of finding and selecting information relevant to a query or information need from a collection.
Questions about keyword query
What is keyword query?
A keyword query is a search request expressed primarily as words or terms that an information-retrieval system matches against indexed content.
Which Manning books explain keyword query?
Grokking Relational Database Design, MongoDB 8.0 in Action, Third Edition and Elasticsearch in Action, Second Edition.
What is the difference between keyword query and percolate query?
A keyword query is a search request expressed primarily as words or terms that an information-retrieval system matches against indexed content. An Elasticsearch percolate query matches stored queries against a supplied document.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.


