On Jun 10, 2008, at 10:25 AM, Tom Morton wrote:
I'm trying to write some unit tests for the MoreLikeThisHandler
which test the functionality. I've added documents, committed them,
but can't get the query to return a single document from which mlt
would get terms. It's as if the documents aren't making it to the
index or I'm query them incorrectly. I'm stuck at this point. Can
someone take a look at the attached unit tests and let me know if
I'm missing something.
Thanks...Tom
<MoreLikeThisHandlerTest.java>
adoc(...) only generates the XML string, but doesn't send it to Solr.
Wrap all those adoc() calls with assertU(adoc(...)) and you'll be
cooking.
Erik