Full-Text Search Internals

A presentation at PHP CE in in Prague, Czechia by Philipp Krenn

Today’s applications are expected to provide powerful full-text search. But how does that work in general and how do I implement it on my site or in my application?

Actually, this is not as hard as it sounds at first. This talk covers:

  • How full-text search works in general and what the differences to databases are.
  • How the score or quality of a search result is calculated.
  • How to handle languages, search for terms and phrases, run boolean queries, add suggestions, work with ngrams, and more with Elasticsearch.

Code

The following code examples from the presentation can be tried out live.