concept content in category elasticsearch

appears as: content, content, contents
Relevant Search: With applications for Solr and Elasticsearch

This is an excerpt from Manning's book Relevant Search: With applications for Solr and Elasticsearch.

We discussed these ideas earlier in the chapter. But let’s lay down some more-precise definitions. A feature is an attribute of the content or query. Features drive decisions. Much of the engineering work in search relevance is in feature selection—the act of discovering and generating features that give us the appropriate information when a user searches.

But creating relevant search requires more than you may initially anticipate. New search developers see search as a black box with just a few modes of interaction: you add content and allow users to query that content. In this chapter, we reveal the secrets under this dark mantel. And spoiler alert, there’s no magic involved in search. Under the hood, a search engine’s data structures perform rather dumb term-matching. Results are then ranked using simple heuristics. The search engine is mechanical: it has no understanding of the meaning of the terms, the intentions underlying a user’s search, or the context of the application.

The science of relevance engineering is in coercing the mechanical search engine to fulfill relevance goals. By the end of this chapter, you’ll begin to see how to do this. You’ll see how to extract descriptive features from queries and content. You’ll begin to understand how these features can be used to rank documents to bring back the most relevant content first. Aside from the science of relevance engineering, there’s an art to understanding what constitutes a good, descriptive feature. There’s skill in how factors should be weighted and balanced to meet the users’ and business’s relevance expectations. By the end of this book, you’ll have a good grasp of these skills.

Listing 5.5. Star Trek query using content from chapter 3