public class ClientUtils extends Object
| 构造器和说明 |
|---|
ClientUtils() |
| 限定符和类型 | 方法和说明 | ||
|---|---|---|---|
static void |
addSlices(Map<String,Slice> target,
String collectionName,
Collection<Slice> slices,
boolean multiCollection)
Constructs a slices map from a collection of slices and handles disambiguation if multiple collections are being queried simultaneously
|
||
static String |
encodeLocalParamVal(String val)
Returns the value encoded properly so it can be appended after a name= local-param.
|
||
static String |
escapeQueryChars(String s)
See:
static Collection<ContentStream>toContentStreams(String str,
String contentType)
Take a string and make it an iterable ContentStream
| ||
static String |
toXML(SolrInputDocument doc) |
||
static void |
writeXML(SolrInputDocument doc,
Writer writer) |
public static Collection<ContentStream> toContentStreams(String str, String contentType)
public static void writeXML(SolrInputDocument doc, Writer writer) throws IOException
IOExceptionpublic static String toXML(SolrInputDocument doc)
public static String escapeQueryChars(String s)
public static String encodeLocalParamVal(String val)
name=local-param.
Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.