private void indexNode(final JsonNode rootNode, final IndexWriter indexWriter) throws IOException {
        if (rootNode.isArray()) {
            for (val node : rootNode) {
                indexDocument(indexWriter, node);
            }
        } else {
            indexDocument(indexWriter, rootNode);
        }
    }
Search data by entries.

@param searchFields the search entries
@param searchTerm   the query str
@return the list
@throws Exception the exception
support/cas-server-support-lucene/src/main/java/org/apereo/cas/lucene/LuceneSearchService.java