Skip to main content
August 12, 2013
Answered

Solr Search returns fuzzy results in quoted term search

  • August 12, 2013
  • 1 reply
  • 1161 views

I am trying to get some output from the Solr search

If I search for "Fund Administrator", which should only return 2 records, I get 5 records because 3 of the search results are fund administration

How do i prevent fuzzy returns on quoted values?

qSearch equlas "Fund Administrator" including quotes

        <cfsearch 

              collection = "#sCollection#"

              name = "search"

              contextHighlightBegin = '<span class="search-format">'

              contextHighlightEnd = "</span>"

              contextPassages = "3"

              criteria = 'title:#qSearch#^2 #qSearch#'

              status = "structSearchPublic"

              suggestions = "never"

              >

TIA

This topic has been closed for replies.
Correct answer vishu_13

For fuzzy search

< cfsearch name="mysolrsearch"                    collection="mysolr"                    criteria="Fund Administrator~">

1 reply

vishu_13
Inspiring
August 12, 2013
August 12, 2013

I still need fuzzy search, just not when the term is quoted, from the info in the link it seems that chnage this will make all searches exact, I only want exact when the string is quoted.

is there any way to manage it just on a per phrase basis

soa search for "This exact" fuzzy will do an exact match on the quoted element and a fuzzy search on non-quoted terms?

vishu_13
vishu_13Correct answer
Inspiring
August 12, 2013

For fuzzy search

< cfsearch name="mysolrsearch"                    collection="mysolr"                    criteria="Fund Administrator~">