concept term - centric search in category elasticsearch

appears as: term-centric search, term-centric search
Relevant Search: With applications for Solr and Elasticsearch

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

Figure 5.4. Field-centric versus term-centric search showing the fields title and overview. Field-centric searches each field in isolation; term-centric searches each field term by term.

Field-centric search runs the search string against each field, combining scores after each field is searched in isolation. Term-centric search works just the opposite, by searching each field on a term-by-term basis. The result is a per-term score that combines each field’s influence for that term. For your first forays at our Star Trek search, you’ll start with field-centric ranking functions. Field-centric queries are often the place to start, as they let you focus on each field in isolation and the signal that searching that field provides. We revisit term-centric approaches in the next chapter.

What are the implications of requiring field synchronicity? In previous chapters, we emphasized using analysis to generate fields with ranking signals you could use. You worked hard with signal modeling to make the search engine measure important user-ranking criteria. Every field, we taught, could be its own special snowflake, offering its own unique signal to the ranking function when searched in its own special way. You saw several examples of this in chapter 4, as many analysis tricks were shown to create unique fields that measured the users’ intent. With term-centric search forcing every field to behave identically, does that cripple your ability to use signal modeling?

Yes, this can be a problem. You’re told term-centric search is necessary to solve the problems of field-centric search. Yet you need fields that act intelligently on their own. How else can you match geographical places? People’s names? Ideas? Taxonomies or any of the other entities you’re asked to work with as a relevance engineer? Is the search engine stuck between these two unintelligent polar ends—one that lets you search in a vanilla, term-by-term way that can kill a field’s power to create signals, and the other that’s field-centric with its silly albino elephant and signal discordance?

6.3.6. Tuning term-centric search

As you may recall from the previous chapter, one possible solution to inconsistent field scoring in best_fields search is to assert an explicit field preference through boosting. Let’s take a moment to visit the topic of tuning. Does term-centric search have similar knobs and dials that let you modify the ranking function to your needs? You’ll see that because of similarities between term-centric methods, tuning lessons from one method can usually be applied to another. With that in mind, how can you get closer to expressing signals the user wants, perhaps by simply stomping over the signal discordance problem entirely?

Listing 6.9. Tuning term-centric search