public class ClientUtils extends Object
Constructor and Description |
---|
ClientUtils() |
Modifier and Type | Method and Description |
---|---|
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 |
escapeQueryChars(String s)
See: Lucene query parser syntax
for more information on Escaping Special Characters
|
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 final String TEXT_XML
public static Collection<ContentStream> toContentStreams(String str, String contentType)
public static void writeXML(SolrInputDocument doc, Writer writer) throws IOException
IOException
public static String toXML(SolrInputDocument doc)
public static String escapeQueryChars(String s)
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.