: Would you recomend extending StandardRequestHandler or implementing : SolrRequestHandler for the XmlRequestHandler?
subclassing StandardRequestHandler doesn't really get you much at the moment. If you're interested in writing an XmlRequestHandler, i would start by refactoring the guts of StandardRequestHandler.handleRequest into some helper methods, two of which would be something like... public Query getQuery(SolrQueryRequest req) throws SolrException; public SortSpec getSort(SolrQueryRequest req) throws SolrException; ...once you've got those, then an XmlRequestHandler that subclasses StandardRequestHandler that supported all the usual start/rows/debugQuery/explainOther options would be fairly easy, just by overriding getQuery, getSort, and the various SolrInfoMBeans methods. (StandardRequestHandler gets both the query and the sort from one string, but there's no reason an XmlRequestHandler would need to -- it would probably make more sense if there was a "sort" query param instead of trying to shoehorn the sort option into/after the XML) -Hoss