concept feature in category search

appears as: features, feature, features, The features, A feature, The features, feature, The feature
AI-Powered Search

This is an excerpt from Manning's book AI-Powered Search.

For these reasons, it is now a common practice to use something called word embeddings to model a semantic meaning for term sequences in your index and queries. A word embedding for a term is a vector of features which represents the term’s conceptual meaning in a semantic space. Figure 2.11 demonstrates the terms now mapped to a dimensionally-reduced vector that can serve as a word embedding.

If you recall in section 2.3, we proposed thinking of a query for the phrase apple juice as a vector containing a feature for every word in any of our documents, with a value of 1 for the terms apple and juice, and a value of 0 all other terms.

Listing 10.7. The judgment list, with features appended for just the query social network
[Judgment(grade=1,qid=1,keywords=social network,doc_id=37799,features=[8.243603, 3.8143613, 2010.0],weight=1,
 Judgment(grade=0,qid=1,keywords=social network,doc_id=267752,features=[0.0, 6.0172443, 2013.0],weight=1,
 Judgment(grade=0,qid=1,keywords=social network,doc_id=38408,features=[0.0, 4.353118, 2010.0],weight=1,
 Judgment(grade=0,qid=1,keywords=social network,doc_id=28303,features=[3.4286604, 3.1086721, 1970.0],weight=1,
 Judgment(grade=1,qid=2,keywords=star wars,doc_id=11,features=[],weight=1,
 Judgment(grade=1,qid=2,keywords=star wars,doc_id=1892,features=[],weight=1,
 Judgment(grade=0,qid=2,keywords=star wars,doc_id=54138,features=[],weight=1,
 Judgment(grade=0,qid=2,keywords=star wars,doc_id=85783,features=[],weight=1,
 Judgment(grade=0,qid=2,keywords=star wars,doc_id=325553,features=[],weight=1]
Figure 10.6. Separating hyperplane impacted by range of one of the features.
dogs and cats stretched
Relevant Search: With applications for Solr and Elasticsearch

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

That sounds a bit abstract. What exactly do we mean? We discussed an example earlier: how Google susses out the feature of PageRank for websites (step 1). This feature is encoded in Google’s search engine alongside each web page (thus achieving step 2). When you issue a search, Google measures many factors that you, with this search, consider relevant (step 3). For example, Google uses PageRank directly as a trustworthiness ranking signal. Other signals could include how frequently your search string is mentioned in a page’s title/body or personalization factors using knowledge about your preferences. Google blends all of these signals (step 4) into a bigger ranking computation that orders search results in a way that it hopes you’ll find satisfactory.

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.

You’ll begin to use our search engine, Elasticsearch, to search over a real data set. As you encounter the common beginner’s problem, your focus will be on debugging two primary internal layers key to relevance: matching and ranking. Armed with renewed insights from the debugging capabilities of the search engine, you can begin to use the search engine to rank and match based on features that you know best describe your content.