Implement near matching

Issue #30 resolved
Davis Marques created an issue

Implement near matching by appending ~ to the user query portion of the Solr query.

Comments (3)

  1. Davis Marques reporter

    SolrSearchService will parse the window location and set the query as being a nearMatch if the ~ is present at the end of the user query string. It strips the ~ char from the end of the user query string when creating the SolrQuery object so that the char doesn't pollute the query or multiply after multiple location reloads.

  2. Davis Marques reporter

    SearchBoxController now has an option nearMatch=true, false to set near matching when submitting the query. The option is false by deault. The attribute data-near-match="true" should be added to the SearchBoxController tag to enable it.

  3. Log in to comment