public class ImplicitDocRouter extends DocRouter
DocRouter.Range
Modifier and Type | Field and Description |
---|---|
static String |
NAME |
DEFAULT, DEFAULT_NAME
Constructor and Description |
---|
ImplicitDocRouter() |
Modifier and Type | Method and Description |
---|---|
Collection<Slice> |
getSearchSlicesSingle(String shardKey,
SolrParams params,
DocCollection collection)
This method is consulted to determine what slices should be queried for a request when
an explicit shards parameter was not used.
|
Slice |
getTargetSlice(String id,
SolrInputDocument sdoc,
SolrParams params,
DocCollection collection)
Returns the Slice that the document should reside on, or null if there is not enough information
|
fromString, fullRange, getDocRouter, getSearchSlices, partitionRange
public static final String NAME
public Slice getTargetSlice(String id, SolrInputDocument sdoc, SolrParams params, DocCollection collection)
DocRouter
getTargetSlice
in class DocRouter
public Collection<Slice> getSearchSlicesSingle(String shardKey, SolrParams params, DocCollection collection)
DocRouter
getSearchSlicesSingle
in class DocRouter
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.