Problem Writing An Index

Jul 6, 2011 at 8:37 PM

I am taking SimpleLucene for a spin.  I am doing as follows:

using (var indexService = new IndexService(indexWriter))
{
    var result = indexService.IndexEntity(indexDocument, new IndexDocumentDefinition());
}

result.Success is false, but Errors count is 0. How can I find out why it failed when no errors are returned?

Jul 6, 2011 at 8:44 PM

Okay, I changed my code to:

using (var indexService = new IndexService(indexWriter))
{
    var result = indexService.IndexEntities(new [] { indexDocument }, new IndexDocumentDefinition());
}

And I get success.  Maybe a bug in IndexEntity method?

Coordinator
Jul 6, 2011 at 9:39 PM

Well spotted. It was not setting the result.Success to true in IndexEntity.

I've just checked in the fix.

Thanks

Ben