concept top in category search

This is an excerpt from Manning's book Deep Learning for Search.
We’ll run our neural search examples on top of open source software written in Java with the help of Apache Lucene (http://lucene.apache.org), an information retrieval library; and Deeplearning4j (http://deeplearning4j.org), a DL library. But we’ll focus as much as possible on principles rather than implementation, in order to make sure the techniques explained in this book can be applied with different technologies and/or scenarios. At the time of writing, Deeplearning4j is a widely used framework for DL in the enterprise communities; it’s part of the Eclipse Foundation. It also has good adoption because of integration with popular big data frameworks like Apache Spark. Full source code accompanying this book can be found at www.manning.com/books/deep-learning-for-search and on GitHub at https://github.com/dl4s/dl4s. Other DL frameworks exist, though; for example, TensorFlow (from Google) is popular among the Python and research communities. Almost every day, new tools are invented, so I decided to focus on a relatively easy-to-use DL framework that can be easily integrated with Lucene, which is one of the most widely adopted search libraries for the JVM. If you’re working with Python, you can find TensorFlow implementations of most of the DL code used in this book together with some instruction on GitHub at https://github.com/dl4s/pydl4s.
To mitigate such issues, it’s a good practice to place a language detector program on top of MT models. A language detector receives an input text and outputs the language of the input sequence. You can think of it as a text classifier whose output classes are language codes (en, it, ic, pt, and so on). With the language detector providing the user’s query language, you can choose the right MT model to translate the query. The output text from all of the MT models will be sent to the search engine as an additional query together with the original query; you can think of it as using a Boolean OR operator between the original and translated versions of the query (such as “pólitísk hæli OR political asylum”). Figure 7.3 shows an example flow for using MT at query time.
Let’s look at how cross-language search can be implemented on top of Apache Lucene. For now, we’ll keep the MT part a bit abstract. In the following sections, we’ll go over different types of MT models and examine the advantages and weaknesses of each. In particular, we’ll focus on why most research and industries have switched from statistical machine translation (based on statistical analysis of probability distributions for words and phrases) to neural machine translation based on the use of neural networks.

This is an excerpt from Manning's book Relevant Search: With applications for Solr and Elasticsearch.
You’ll see more on exactly how the search engine makes these relevance calculations later. You’ll also see how many factors, beyond text, and beyond even the user’s priorities, can come into play in the relevance calculation. Remember from chapter 1, relevance is a measure of how well content satisfies the information needs of the user and business. So, for example, an e-commerce search with good relevance not only returns the appropriate documents, but also /ensures/might ensure that they’re sorted so that paid promotional items are closer to the top.
Then any item matching Elise’s high-affinity items will be driven further toward the top of the search results.

This is an excerpt from Manning's book Lucene in Action, Second Edition.
A number of full-featured search applications have been built on top of Lucene. If you’re looking for something prebuilt or a framework for crawling, document handling, and searching, the “powered by” page on Lucene’s wiki lists some of these options.
Lucene powers LinkedIn’s searching. In this chapter we’ll see two powerful extensions to Lucene developed and used at LinkedIn. The first, Bobo Browse (available as open source at http://sna-projects.com/bobo) provides faceting information for each search. Zoie, the second extension (available as open source at http://sna-projects.com/zoie), is a real-time search system built on top of Lucene.
The Bobo Browse open source library is built on top of Lucene, and can add faceting to any Lucene-based project. A browsable index is simply a Lucene index with some declarations on how a field is used to support faceting. Such declaration can be defined in either the form of a Spring[2] configuration file added to the Lucene index directory with the name bobo.spring, as seen in table 14.1, or constructed programmatically while creating a BoboIndexReader. This architectural decision was made to allow for making a Lucene index facet browsable without reindexing. Each field in the declaration file is specified with a FacetHandler instance that loads a forward view of the data in a compressed form. Bobo Browse uses these FacetHandlers for counting, sorting, and field retrieval.