I just tried it with Solr 4.0 and it worked fine, for me.
I used the "cat" field of the Solr example, which is a multivalued "string"
field.
My data:
curl http://localhost:8983/solr/update?commit=true -H
'Content-type:application/csv' -d '
id,cat,cat,cat
d-1,aardvark,abacus,accord
d-2,aboard,abate,cat
d-3,cattle,abet,accordian'
My suggestor:
<searchComponent class="solr.SpellCheckComponent" name="suggestMulti">
<lst name="spellchecker">
<str name="name">suggest</str>
<str name="classname">org.apache.solr.spelling.suggest.Suggester</str>
<str
name="lookupImpl">org.apache.solr.spelling.suggest.tst.TSTLookup</str>
<str name="field">cat</str>
<str name="buildOnCommit">true</str>
</lst>
</searchComponent>
<requestHandler class="org.apache.solr.handler.component.SearchHandler"
name="/suggestMulti">
<lst name="defaults">
<str name="spellcheck">true</str>
<str name="spellcheck.dictionary">suggest</str>
<str name="spellcheck.onlyMorePopular">true</str>
<str name="spellcheck.count">10</str>
<str name="spellcheck.collate">true</str>
</lst>
<arr name="components">
<str>suggestMulti</str>
</arr>
</requestHandler>
My query:
curl "http://localhost:8983/solr/suggestMulti?q=ab&indent=true"
-- Jack Krupansky
-----Original Message-----
From: Hasika Pamunuwa
Sent: Monday, February 04, 2013 1:23 PM
To: solr-user@lucene.apache.org
Subject: Suggester - multivalued field
I'm trying to get the suggester (solr.SpellCheckComponent - solr 4.0)
component work on a multivalued field? It doesn't seem to work for me if
the field is multivalued="true".
Is it currently not supported?