Hi guys,
I'm struggling testing schemaAPI REST endpoints thourgh EmbeddedSolrServer.

Out of the box the Embedded Solr Server is not able to recognize the schema
request handler. So I was trying to follow an approach like this :

public static void init() throws Exception {
>     final SortedMap<ServletHolder,String> extraServlets = new
> TreeMap<ServletHolder,String>();
>     final ServletHolder solrRestApi = new ServletHolder("SolrRestApi",
> ServerServlet.class);
>     solrRestApi.setInitParameter("org.restlet.application",
> "org.apache.solr.rest.SolrRestApi");
>     extraServlets.put(solrRestApi, "/schema/*");  // '/schema/*' matches
> '/schema', '/schema/', and '/schema/whatever...'
>     createJettyAndHarness(TEST_HOME(), "solrconfig.xml",
> "schema-rest.xml", "/solr", true, extraServlets);


But so fare has been quite difficult...
Any way to easily attach to the embedded Solr Server the additional
extra-servlets ?

Cheeers

-- 
--------------------------

Benedetti Alessandro
Visiting card : http://about.me/alessandro_benedetti

"Tyger, tyger burning bright
In the forests of the night,
What immortal hand or eye
Could frame thy fearful symmetry?"

William Blake - Songs of Experience -1794 England

Reply via email to