public class ClientUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static Collection<String> |
fmts
Deprecated.
Use
DateUtil.DEFAULT_DATE_FORMATS |
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,org.apache.solr.common.cloud.Slice> target,
String collectionName,
Collection<org.apache.solr.common.cloud.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.
use
DateUtil.getThreadLocalDateFormat() |
static Date |
parseDate(String d)
Deprecated.
Use
DateUtil.parseDate(String) |
static Collection<org.apache.solr.common.util.ContentStream> |
toContentStreams(String str,
String contentType)
Take a string and make it an iterable ContentStream
|
static String |
toQueryString(org.apache.solr.common.params.SolrParams params,
boolean xml) |
static org.apache.solr.common.SolrDocument |
toSolrDocument(org.apache.solr.common.SolrInputDocument d) |
static org.apache.solr.common.SolrInputDocument |
toSolrInputDocument(org.apache.solr.common.SolrDocument d) |
static String |
toXML(org.apache.solr.common.SolrInputDocument doc) |
static void |
writeXML(org.apache.solr.common.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<org.apache.solr.common.util.ContentStream> toContentStreams(String str, String contentType)
public static org.apache.solr.common.SolrInputDocument toSolrInputDocument(org.apache.solr.common.SolrDocument d)
d - SolrDocument to convertpublic static org.apache.solr.common.SolrDocument toSolrDocument(org.apache.solr.common.SolrInputDocument d)
d - SolrInputDocument to convertpublic static void writeXML(org.apache.solr.common.SolrInputDocument doc,
Writer writer)
throws IOException
IOExceptionpublic static String toXML(org.apache.solr.common.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(org.apache.solr.common.params.SolrParams params, boolean xml)
public static void addSlices(Map<String,org.apache.solr.common.cloud.Slice> target, String collectionName, Collection<org.apache.solr.common.cloud.Slice> slices, boolean multiCollection)
Copyright © 2005–2017 Alfresco Software. All rights reserved.