public class ClientUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static Collection<String> |
fmts
Deprecated.
|
static String |
TEXT_XML |
static TimeZone |
UTC
Deprecated.
Use
DateUtil.UTC. |
| 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:
queryparser syntax
for more information on Escaping Special Characters |
static DateFormat |
getThreadLocalDateFormat()
Deprecated.
|
static Date |
parseDate(String d)
Deprecated.
|
static Collection<ContentStream> |
toContentStreams(String str,
String contentType)
Take a string and make it an iterable ContentStream
|
static String |
toQueryString(SolrParams params,
boolean xml) |
static SolrDocument |
toSolrDocument(SolrInputDocument d) |
static SolrInputDocument |
toSolrInputDocument(SolrDocument d) |
static String |
toXML(SolrInputDocument doc) |
static void |
writeXML(SolrInputDocument doc,
Writer writer) |
public static final String TEXT_XML
@Deprecated public static final Collection<String> fmts
DateUtil.DEFAULT_DATE_FORMATS@Deprecated public static TimeZone UTC
DateUtil.UTC.public static Collection<ContentStream> toContentStreams(String str, String contentType)
public static SolrInputDocument toSolrInputDocument(SolrDocument d)
d - SolrDocument to convertpublic static SolrDocument toSolrDocument(SolrInputDocument d)
d - SolrInputDocument to convertpublic static void writeXML(SolrInputDocument doc, Writer writer) throws IOException
IOExceptionpublic static String toXML(SolrInputDocument doc)
@Deprecated public static Date parseDate(String d) throws ParseException
DateUtil.parseDate(String)ParseException@Deprecated public static DateFormat getThreadLocalDateFormat()
DateUtil.getThreadLocalDateFormat()public static String escapeQueryChars(String s)
queryparser syntax
for more information on Escaping Special Characterspublic static String toQueryString(SolrParams params, boolean xml)
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.