Permalink
Browse files

adds ability to retrieve the collated result from spell check

  • Loading branch information...
1 parent 385d4c7 commit 3514bc159821aafc01816be0573ed2c5f8814546 @seancoyne seancoyne committed Jan 10, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 components/cfsolrlib.cfc
View
@@ -82,6 +82,7 @@
<cfset ret.totalResults = response.getResults().getNumFound() / >
<cfif NOT isNull(response.getSpellCheckResponse())>
<cfset suggestions = response.getSpellCheckResponse().getSuggestions() />
+ <cfset ret.collatedSuggestion = response.getSpellCheckResponse().getCollatedResult() />
<cfset ret.spellCheck = arrayNew(1) />
<cfloop array="#suggestions#" index="iSuggestion">
<cfset thisSuggestion = structNew() />

0 comments on commit 3514bc1

Please sign in to comment.