Caltech Library logo

find

Syntax

    dataset [OPTIONS] INDEX_NAMES QUERY_STRING

Description

find adds support for full text searching of a collection based on Bleve search engine indexes. It supports a query string language similar to elastic search. Additionally find can render the results in various formats include plain text, JSON, and CSV.

find supports using multiple indexes. List the index names separated by colons.

Usage

Single index examples

    dataset find authors-title.bleve 'Robert Doiel'
    dataset find authors-title.bleve '+family:"Doiel" given:"R"'
    dataset find authors-title.bleve '+orcid:"0000-0003-0900-6903"'

Multi index examples (using authors-title.bleve and abstracts.bleve indexes)

    dataset find 'authors-title.bleve:abstracts.bleve' 'Robert Doiel'
    dataset find 'authors-title.bleve:abstracts.bleve' '+family:"Doiel" given:"R"'
    dataset find 'authors-title.bleve:abstracts.bleve' '+orcid:"0000-0003-0900-6903"'