Change search_lucene to use the OCP functions instead of the core ones