Backport search lucene status class

fixes https://github.com/owncloud/apps/issues/1611

@PVince81 @DeepDiver1975