Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Full Text Search support proposal #743

Open
gsi-alejandro opened this issue Nov 21, 2023 · 0 comments
Open

Full Text Search support proposal #743

gsi-alejandro opened this issue Nov 21, 2023 · 0 comments

Comments

@gsi-alejandro
Copy link
Collaborator

gsi-alejandro commented Nov 21, 2023

Syntax:

import { searchQuery, SearchQuery } from 'ottoman'

async function ftsMatchWord(term) {
  return await searchQuery(
    'index-hotel-description',
    SearchQuery.match(term),
    { limit: 5 }
  )
}

const result = await ftsMatchWord('five-star');

Notes:

  • The proposal is very similar to the one implemented in the SDK, notice the searchQuery will run at the cluster level.

Steps:

  1. implement searchQuery method in the Ottoman class.
  2. Add a test suit for the searchQuery feature.
  3. Update the documentation website with the new transaction content.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant