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.
- logical AND operatorconfigured by · A logical AND operator is a Boolean conjunction that produces true exactly when all operands have true truth values.
- information retrievaladdressed by · Information retrieval is the process of finding and selecting items from a collection that are relevant to a query, task, or information need.
- similarity searchcontrasts with · Similarity search is a retrieval technique that finds or ranks items by comparing their representations with a query according to a similarity or distance measure.
- text analysisuses · Text analysis is the computational examination of textual content to extract information, identify patterns, or derive meaning.
- logical ORuses · Logical OR is a Boolean disjunction that evaluates to true when at least one operand or condition is true.
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.


