Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/igrek8/typesense-utils

Utitility functions to tackle query generation in typesense
https://github.com/igrek8/typesense-utils

query query-builders typesense

Last synced: about 2 months ago
JSON representation

Utitility functions to tackle query generation in typesense

Awesome Lists containing this project

README

        

# typesense-utils (tested typesense@^0.24.0)

[![flow-stage](https://github.com/igrek8/typesense-utils/actions/workflows/flow-stage.yml/badge.svg)](https://github.com/igrek8/typesense-utils/actions/workflows/flow-stage.yml)
[![codecov](https://codecov.io/gh/igrek8/typesense-utils/branch/main/graph/badge.svg)](https://codecov.io/gh/igrek8/typesense-utils)

Utilities to build various queries in [Typesense](https://typesense.org/).

## Installation

```bash
npm i typesense-utils --save-dev --save-exact
yarn add typesense-utils --exact
```

## Usage

- [buildFieldsList.ts](./src/buildFieldsList.test.ts)
- [buildQueryBy.ts](./src/buildQueryBy.test.ts)
- [buildFilterBy.ts](./src/buildFilterBy.test.ts)
- [buildSortBy.ts](./src/buildSortBy.test.ts)
- [buildGroupBy.ts](./src/buildGroupBy.test.ts)
- [buildFacetBy.ts](./src/buildFacetBy.test.ts)
- [buildFacetQuery.ts](./src/buildFacetQuery.test.ts)
- [buildVectorQuery.ts](./src/buildVectorQuery.test.ts)