sakaiproject/solr — pull request #33 by raydavis (2012-04-06 23:42:03+00:00)
Title: SOLR-54 Do not use near-real-time search indexing for all updates

Near-real-time Solr indexing was only added for the sake of a few high-priority resource types. But due to a series of missteps and misunderstandings, it's instead being used for ALL Sparse-triggered index updates. This is grossly inefficient (especially during batch operations!) and a source of race conditions.

Besides fixing this bug, the pull request consolidates indexer delegation to help avoid similar developer disconnects in the future, and fixes an illegal "null" return from getDocuments.

I believe there are still problems with the overall approach but they seem more difficult to fix than this one and not as pressing:

https://jira.sakaiproject.org/browse/SOLR-54?focusedCommentId=155516&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-155516