Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

Latest commit

 

History

History

search

Human-Centric Search Language

This package contains the Chevrotain-powered lexer and parser for Cloud CNC's human-centric search language.

Features

  • Ngram-based fuzzy-searching by default
  • Literal matching: "literal query" or 'literal query' (Inspired by Google-search)
  • Boolean operators: AND, OR, and NOT (Inspired by SQL)
  • Parentheses-based order-of-operations: (a AND b) OR c (Inspired by math)

Development

Chevrotain interpreters

Since this package is used by the UI and API server for quite different purposes (query highlighting and Mongoose query generation, respectively), the concrete-syntax-tree interpreter/visitor is not included in this package.