I'm going to reply to my own question.  After recalling a previous email from 
James Dyer, I know the answer. 

-----Original Message-----
From: Corey Gerhardt [mailto:corey.gerha...@directwest.com] 
Sent: August-20-14 9:54 AM
To: Solr User List
Subject: Business Name Collation

Solr 4.8.1

Correct value: Wardell F E B Dr

Just wondering if anyone can see an issue with my spellchecker settings.  There 
is no collation value and I'm hoping that someone can explain why.

  <lst name="spellchecker">
      <str 
name="classname">org.apache.solr.spelling.DirectSolrSpellChecker</str>
      <str name="name">default</str>
      <str name="field">spell</str>
      <str name="distanceMeasure">internal</str>
      <float name="accuracy">0.8</float>
      <int name="maxEdits">2</int>
      <int name="minPrefix">1</int>
      <int name="maxInspections">5</int>
      <int name="minQueryLength">1</int>
      <float name="thresholdTokenFrequency">0.0001</float>
      <float name="maxQueryFrequency">0.01</float>
      <str name="buildOnCommit">true</str>
    </lst>
  </searchComponent>

{
  "responseHeader":{
    "status":0,
    "QTime":0,
    "params":{
      "mm":"100%",
      "spellcheck":"true",
      "sort":"score desc,BUS_PRIORITY_RANK desc,BUS_CITY_EXACT 
asc,BUS_BUSINESS_NAME_SORT asc",
      "spellcheck.maxResultsForSuggest":"5",
      "spellcheck.collateParam.qf":"BUS_BUSINESS_NAME",
      "spellcheck.maxCollations":"3",
      "spellcheck.maxCollationTries":"30",
      "qf":"BUS_BUSINESS_NAME_PHRASE",
      "q.alt":"*:*",
      "spellcheck.collate":"true",
      "spellcheck.onlyMorePopular":"false",
      "defType":"edismax",
      "debugQuery":"true",
      "echoParams":"all",
      
"fl":"BUS_IS_TOLL_FREE,score,id,BUS_BUSINESS_NAME,BUS_SERVICE_AREA,BUS_CITY,BUS_PRIORITY_RANK,BUS_LISTING_ID,BUS_DW_CUST_ID",
      "spellcheck.accuracy":"0.8",
      "debug.explain.structured":"true",
      "spellcheck.count":"10",
      "spellcheck.alternativeTermCount":"10",
      "spellcheck":"true",
      "spellcheck.accuracy":"0.8",
      "indent":"true",
      "q":"Wardel F E B Dr",
      "spellcheck.collate":"true",
      "wt":"json"}},
  "response":{"numFound":0,"start":0,"maxScore":0.0,"docs":[]
  },
  "spellcheck":{
    "suggestions":[
      "wardel",{
        "numFound":1,
        "startOffset":0,
        "endOffset":6,
        "suggestion":["wardell"]}]},
  "debug":{
    "rawquerystring":"Wardel F E B Dr",
    "querystring":"Wardel F E B Dr",
    "parsedquery":"(+((DisjunctionMaxQuery((BUS_BUSINESS_NAME_PHRASE:wardel)) 
DisjunctionMaxQuery((BUS_BUSINESS_NAME_PHRASE:f)) 
DisjunctionMaxQuery((BUS_BUSINESS_NAME_PHRASE:e)) 
DisjunctionMaxQuery((BUS_BUSINESS_NAME_PHRASE:b)) 
DisjunctionMaxQuery(((BUS_BUSINESS_NAME_PHRASE:dr 
BUS_BUSINESS_NAME_PHRASE:doctor))))~5))/no_coord",
    "parsedquery_toString":"+(((BUS_BUSINESS_NAME_PHRASE:wardel) 
(BUS_BUSINESS_NAME_PHRASE:f) (BUS_BUSINESS_NAME_PHRASE:e) 
(BUS_BUSINESS_NAME_PHRASE:b) ((BUS_BUSINESS_NAME_PHRASE:dr 
BUS_BUSINESS_NAME_PHRASE:doctor)))~5)",
    "explain":{},
    "QParser":"ExtendedDismaxQParser",
    "altquerystring":null,
    "boost_queries":null,
    "parsed_boost_queries":[],
    "boostfuncs":null,

Thanks,

Corey

Reply via email to