R/loadLuceneIndexes.R

Defines functions loadLuceneIndexes

Documented in loadLuceneIndexes

#' Feeding BED: Create Lucene indexes in neo4j
#'
#' Not exported to avoid unintended modifications of the DB.
#'
loadLuceneIndexes <- function(){
    pkgname <- utils::packageName()
    ## Indexes
    cqlFile <- system.file(
        "Documentation", "BED-Model", "BED-lucene.cql",
        package=pkgname
    )
    queries <- neo2R::readCql(cqlFile)
    for(query in queries){
        bedCall(neo2R::cypher, query=query)
    }
    ##
    invisible(TRUE)
}

Try the BED package in your browser

Any scripts or data that you put into this service are public.

BED documentation built on March 7, 2023, 6:54 p.m.