One of the main motivations behind SOLR-5378 was to support distributed autosuggest feature. As far as I can tell, there is no nice way of setting up distributed suggest (not spellcheck) with the spellcheck component.
The way to setup distributed suggest with the new suggest component (SOLR-5378) is as follows: - setup multiple shards - specify field/file to suggest from (weights and payloads can also be specified) - make sure the field data/ file entries are unique across shards (if an entry is present in more than one shard then there is a possibility of getting duplicate suggestions) - specify the shards in the query using 'shards' param It is to be noted that in the distributed case, the weight of the suggestions are used to get the top suggestions from all shards. Regarding partial suggest results, one can use "shards.tolerant=true" in the query to ignore shards that are not responding. There is still no mechanism to inform which shards failed (maybe shards.info can be set in the suggest component in the future to record this?) The distributed setup is also described in the description of SOLR-5378, but some thing are already out-of-data (response format etc due to SOLR-5528<https://issues.apache.org/jira/browse/SOLR-5528> and SOLR-5529 <https://issues.apache.org/jira/browse/SOLR-5529>). I will start writing the docs for the new suggest component as soon as I get a chance to. Hope that helps, Areek On Fri, Jan 10, 2014 at 6:36 AM, Erick Erickson <[email protected]>wrote: > There seems to be a fair amount of confusion (some of which I share) > about autosuggest and distributed setups/SolrCloud. So I wanted to > update the Wiki. Before making a total fool of myself, I thought I'd > run what I think I know by folks. > > 1> In distributed setups, you can get partial suggestions by setting > &distrib=false. Probably not a viable option though. > > 2> Setting up distributed with the current implementation is a pain. > In fact, I don't quite know how to do it (any hints very welcome). > This is really the heart of my question I suppose, "can you set up > distributed autosuggest current.y?". > > 3> As of 4.7, SOLR-5378 should support this. > > Anything else I should add? > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
