// deny query execution if index in offline mode and allowQuery is false
if (!index.isOnline() && !allowQuery.get())
{
throw new IndexOfflineIOException("Index is offline");
}
QueryHandler parentHandler = getContext().getParentHandler();
CachingMultiIndexReader parentReader = null;
if (parentHandler instanceof SearchIndex && includeSystemIndex)
{
parentReader = ((SearchIndex)parentHandler).index.getIndexReader();
}