Implement near matching
Issue #30
resolved
Implement near matching by appending ~ to the user query portion of the Solr query.
Comments (3)
-
reporter -
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.
-
reporter - changed status to resolved
Done
- Log in to comment
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.