| java.lang.Object org.apache.solr.util.SimplePostTool
SimplePostTool | public class SimplePostTool (Code) | | A simple utility class for posting raw updates to a Solr server,
has a main method so it can be run on the command line.
|
DEFAULT_POST_URL | final public static String DEFAULT_POST_URL(Code) | | |
VERSION_OF_THIS_TOOL | final public static String VERSION_OF_THIS_TOOL(Code) | | |
SimplePostTool | public SimplePostTool(URL solrUrl)(Code) | | Constructs an instance for posting data to the specified Solr URL
(ie: "http://localhost:8983/solr/update")
|
postData | public void postData(Reader data, Writer output)(Code) | | Reads data from the data reader and posts it to solr,
writes to the response to output
|
postFiles | int postFiles(String[] args, int startIndexInArgs) throws IOException(Code) | | Post all filenames provided in args, return the number of files posted
|
warnIfNotExpectedResponse | static void warnIfNotExpectedResponse(String actual, String expected)(Code) | | Check what Solr replied to a POST, and complain if it's not what we expected.
TODO: parse the response and check it XMLwise, here we just check it as an unparsed String
|
|
|