concept term proximity in category solr

This is an excerpt from Manning's book Solr in Action.
Most of the Lucene query parser syntax was indirectly covered in chapter 3, but this section will provide a comprehensive overview (and refresher) of the supported query operations in the Lucene query parser. One important characteristic is that the syntax is strictly enforced. If a query does not match the syntax exactly, then a parse exception will be thrown and the request will fail. There is a specific syntax to support many operations you learned about in chapter 3, including fielded and nonfielded term searches, required terms, optional terms, phrase searches, grouped expressions, term proximity, excluded terms, range searches, wildcard searches, and Boolean expressions. This section will cover the correct way to make use of each of these features using the Lucene query parser.
Now that you know how to significantly influence the relevancy of your search application—either by document, by term, by payload, by term proximity, or by function—the next section will introduce you to an even more involved approach: completely replacing Solr’s core relevancy algorithm.