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

Query not returning expected results #262

Open
prawnsalad opened this issue Nov 4, 2021 · 1 comment
Open

Query not returning expected results #262

prawnsalad opened this issue Nov 4, 2021 · 1 comment

Comments

@prawnsalad
Copy link

I've just started experimenting with Sonic so apologies if I'm missing something obvious!

Using the below code I am ingesting a simple sentence then querying it with 2 different search terms. I would have expected that both return the ingested message but actually only the second query returns anything.

Why doesn't the first return any result?

    // Using https://www.npmjs.com/package/sonic-channel

    await sonicChannelIngest.push("messages", "userid_1", "email_id_1", "I met darren yesterday. Great fun!")

    let res = await sonicChannelSearch.query("messages", "userid_1", "I met darren")
    console.log(res); // []
    res = await sonicChannelSearch.query("messages", "userid_1", "darren yesterday")
    console.log(res); // [ 'email_id_1' ]
@ViniciusTenenteSecurrency

Any luck on this?

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

2 participants