concept box in category solr

appears as: box, box, boxes
Solr in Action

This is an excerpt from Manning's book Solr in Action.

As you can see, a number of issues exist that make a seemingly basic feature hard to implement without a specialized approach. But with a search engine like Solr, these features come out of the box and are easy to implement. Once you give users a powerful tool to execute keyword searches, you need to consider how to display the results. This brings us to our next use case: ranking results based on their relevance to the user’s query.

Although conceptually very simple, hit highlighting in Solr can be confusing to new users because there are many optional configuration parameters, and it’s not always clear when to use each parameter. Moreover, Solr provides three different highlighter implementations out of the box, which makes it hard to decide which implementation you need. We cover all three highlighters in this chapter and give you pointers to help you decide when to use which. To begin, let’s set the stage for how hit highlighting is used in our UFO sighting search application.

Figure 15.2. A bounding box with sides equal to the radius of the geography filter. The area inside the box is guaranteed to contain all documents within a 20 km radius of the center of the box, though it may also contain documents a greater distance away. The radius circle is calculated after the bounding box filter is applied in order to remove documents near the four corners of the bounding box.