Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A thin wrapper around N3 Store and Flexsearch enabling in-memory fuzzy text search.

Notifications You must be signed in to change notification settings

ShapeThing/TextStore

Repository files navigation

Text Store

A thin wrapper around N3 Store and Flexsearch enabling in-memory fuzzy text search.


import { TextStore } from '@shapething/textstore'
import { DataFactory } from 'n3'
const { namedNode, literal, quad } = DataFactory
const store = new TextStore()
store.add(quad(namedNode('a'), namedNode('https://schema.org/name'), literal('John Doe')))
const result = store.match(null, namedNode('https://textstore.shapething.com/search'), literal('Jo'))
// Result contains John Doe

Install

Run npx jsr add @shapething/textstore

See https://jsr.io/@shapething/textstore

Publish new version

Run npx jsr publish

About

A thin wrapper around N3 Store and Flexsearch enabling in-memory fuzzy text search.

Topics

Resources

Stars

Watchers

Forks

AltStyle によって変換されたページ (->オリジナル) /