org.apache.solr.common.cloud
Class ImplicitDocRouter
java.lang.Object
org.apache.solr.common.cloud.DocRouter
org.apache.solr.common.cloud.ImplicitDocRouter
public class ImplicitDocRouter
- extends DocRouter
This document router is for custom sharding
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAME
public static final String NAME
- See Also:
- Constant Field Values
ImplicitDocRouter
public ImplicitDocRouter()
getTargetSlice
public Slice getTargetSlice(String id,
SolrInputDocument sdoc,
SolrParams params,
DocCollection collection)
- Description copied from class:
DocRouter
- Returns the Slice that the document should reside on, or null if there is not enough information
- Specified by:
getTargetSlice
in class DocRouter
getSearchSlicesSingle
public Collection<Slice> getSearchSlicesSingle(String shardKey,
SolrParams params,
DocCollection collection)
- Description copied from class:
DocRouter
- This method is consulted to determine what slices should be queried for a request when
an explicit shards parameter was not used.
This method only accepts a single shard key (or null). If you have a comma separated list of shard keys,
call getSearchSlices
- Specified by:
getSearchSlicesSingle
in class DocRouter
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.