lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yonik Seeley <yo...@lucidimagination.com>
Subject Re: Testing UpdateProcessorChain
Date Sun, 05 Dec 2010 20:34:41 GMT
On Sun, Dec 5, 2010 at 3:28 PM, Grant Ingersoll <gsingers@apache.org> wrote:
> Anyone have any thoughts on testing UpdateProcessorChain (and Factory).  In looking
at the Signature (dedup) tests, it seems a little clunky, yet the Solr base test class adoc
(and related methods) don't seem to support specifying the Update handler to hit.

You can specify an alternate update processor with any update command.
SolrTestCaseJ4 has this:
  public static String add(XmlDoc doc, String... args) {

so... you should be able to do something like
add(doc("id","10"),"update.processor","foo")

-Yonik
http://www.lucidimagination.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message