Revert "Removed synchronous search"

This reverts commit 82c50cd82d830565b05f9e377ef3e740bbff0116.
Revert "Removed indexing from actions. It should instead be controlled by Solr and the ini file."

This reverts commit 0fddd762a0ba426f89baa4540f546d038c3e8be6.