← Home ← Codex ← DEBT
Browse by Category
+ added · updated 7d
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Search Query Parsing PHP 8.0+
Transforming raw user search input into structured components - tokens, fields, operators, and phrases - before query execution.
2w ago Search intermediate
BM25 Ranking
Best Match 25 — the industry-standard relevance ranking algorithm used by Elasticsearch, Lucene, and SQLite FTS5, refining TF-IDF with better document length normalisation and a term frequency saturation parameter.
3mo ago Search intermediate
Elasticsearch Fundamentals PHP 7.0+
A distributed search and analytics engine built on Lucene — storing documents as JSON, indexing them automatically, and providing a REST API for full-text search, aggregations, and real-time analytics.
3mo ago Search intermediate
Inverted Index
A data structure that maps each unique word to the list of documents containing it — the foundation of all full-text search engines, enabling fast lookup of documents matching a query term.
3mo ago Search intermediate
TF-IDF
Term Frequency–Inverse Document Frequency — a relevance scoring formula that ranks documents higher when a query term appears frequently in them but rarely across the whole collection.
3mo ago Search intermediate
Typeahead & Autocomplete PHP 7.0+ 🧠 1
Search suggestions shown as the user types — requiring prefix matching, typo tolerance, and sub-100ms response times to feel native, implemented via dedicated index structures or edge completion APIs.
3mo ago Search intermediate
Meilisearch & Typesense PHP 7.0+ 🧠 1
Open-source, self-hosted search engines with PHP SDKs — fast BM25 search, typo-tolerance, and faceting without the operational complexity of Elasticsearch.
3mo ago Search intermediate
Search Indexing Pipeline PHP 7.0+
The process of transforming raw content into a searchable index — extraction, normalisation, tokenisation, stemming, and index writing with incremental update strategies.
3mo ago Search intermediate
Search-as-You-Type Patterns 🧠 1
Implementing instant search suggestions as users type — debouncing requests, prefix indexing, highlighting matches, and managing loading/empty states.
3mo ago Search intermediate
Diagram: Autocomplete & Typeahead Autocomplete & Typeahead PHP 5.0+ 🧠 1
Showing relevant suggestions as the user types — requiring fast prefix search, debouncing, and careful UX to be helpful rather than distracting.
3mo ago Search intermediate
Diagram: Faceted Search & Aggregations Faceted Search & Aggregations
Dynamically computed counts for filter categories based on current results — the 'Brand (42) | Price $0-50 (18)' sidebar that refines search results.
3mo ago Search intermediate
Diagram: Fuzzy Search Fuzzy Search 🧠 9
Matching strings that are similar but not identical — tolerating typos, transpositions, and misspellings using edit distance algorithms.
3mo ago Search intermediate
✓ schema.org compliant