autosuggest - Solr multi-word suggest gives zero results when full word is used -


field definition

<field name="programdescriptionlookup"        type="suggest_simple"        indexed="true"        stored="false"        multivalued="true"/> 

field type & copy field

<copyfield source="programdescription" dest="programdescriptionlookup"/>  <fieldtype name="suggest_simple" class="solr.textfield" positionincrementgap="100">     <analyzer type="index">         <tokenizer class="solr.whitespacetokenizerfactory"/>         <filter class="solr.lowercasefilterfactory"/>     </analyzer>     <analyzer type="query">         <tokenizer class="solr.whitespacetokenizerfactory"/>         <filter class="solr.lowercasefilterfactory"/>     </analyzer> </fieldtype> 

2 documents exist following values field

<field name="programdescription">great program kids</field> <field name="programdescription">excellent program technology</field> 

when search

http://127.0.0.1:8080/solr/core/posdsuggest?q=progra+fo  <response> <lst name="responseheader"> <int name="status">0</int> <int name="qtime">3</int> </lst> <lst name="spellcheck"> <lst name="suggestions"> <lst name="progra"> <int name="numfound">1</int> <int name="startoffset">0</int> <int name="endoffset">6</int> <arr name="suggestion"> <str>program</str> </arr> </lst> <lst name="fo"> <int name="numfound">1</int> <int name="startoffset">7</int> <int name="endoffset">9</int> <arr name="suggestion"> <str>for</str> </arr> </lst> <str name="collation">program for</str> </lst> </lst> </response> 

when search full words, no results

http://127.0.0.1:8080/solr/core/posdsuggest?q=program+for  <response> <lst name="responseheader"> <int name="status">0</int> <int name="qtime">1</int> </lst> <lst name="spellcheck"> <lst name="suggestions"/> </lst> </response> 

what configuration change required results both queries progra+fo & program+for?


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -