Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
This module applies proximity boosting to Solr searches so that the distance between two or more terms is factored into the relevancy calculation. For example, a search for "blue drop" will rank documents higher that have the terms "blue" and "drop" next to each other in to source text than documents where the words are far away form one another.
When used in conjunction with the OR operator, which is the default setting used by the Apache Solr Search Integration module, the relevancy of documents returned in search results is likely to be improved.
Usage
Apache Solr Term Proximity is used in conjunction with the Apache Solr Search Integration project and is installed like any other Drupal module. It requires no configuration and works out-of-the-box, however the boost factor can be configured along with the other bias settings exposed by the Apache Solr Search Integration module.
There are a few known gotchas that are likely to affect a very small percentage of users.