|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.solr.client.solrj.util.ClientUtils
public class ClientUtils
TODO? should this go in common?
| Field Summary | |
|---|---|
static Collection<String> |
fmts
|
static String |
TEXT_XML
|
static TimeZone |
UTC
|
| Constructor Summary | |
|---|---|
ClientUtils()
|
|
| Method Summary | |
|---|---|
static String |
escapeQueryChars(String input)
See: http://lucene.apache.org/java/docs/queryparsersyntax.html#Escaping Special Characters |
static DateFormat |
getThreadLocalDateFormat()
Returns a formatter that can be use by the current thread if needed to convert Date objects to the Internal representation. |
static Date |
parseDate(String d)
Returns a formatter that can be use by the current thread if needed to convert Date objects to the Internal representation. |
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String TEXT_XML
public static final Collection<String> fmts
public static TimeZone UTC
| Constructor Detail |
|---|
public ClientUtils()
| Method Detail |
|---|
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 convert
public static org.apache.solr.common.SolrDocument toSolrDocument(org.apache.solr.common.SolrInputDocument d)
d - SolrInputDocument to convert
public static void writeXML(org.apache.solr.common.SolrInputDocument doc,
Writer writer)
throws IOException
IOExceptionpublic static String toXML(org.apache.solr.common.SolrInputDocument doc)
public static Date parseDate(String d)
throws ParseException,
org.apache.commons.httpclient.util.DateParseException
ParseException
org.apache.commons.httpclient.util.DateParseExceptionpublic static DateFormat getThreadLocalDateFormat()
public static String escapeQueryChars(String input)
public static String toQueryString(org.apache.solr.common.params.SolrParams params,
boolean xml)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||