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

Search with exact: true doesn't work as intended #866

Open
zeroliu opened this issue Dec 28, 2024 · 6 comments
Open

Search with exact: true doesn't work as intended #866

zeroliu opened this issue Dec 28, 2024 · 6 comments

Comments

@zeroliu
Copy link

zeroliu commented Dec 28, 2024

Describe the bug

When I search with exact: true, documents with partially matching terms are also returned.

To Reproduce

https://codesandbox.io/p/sandbox/lvy7mc

const db = create({
schema: {
path: "string",
title: "string",
},
});

insert(db, { path: "First Note.md", title: "First Note" });
insert(db, { path: "Second Note.md", title: "Second Note" });

const noExact = search(db, {
term: "first",
properties: ["path"],
}); // 1 result OK
const withExact = search(db, {
term: "first",
properties: ["path"],
exact: true,
}); // 1 result NOT OK

console.log("noExact path", noExact);
console.log("withExact path", withExact);

Expected behavior

Calling search with exact: true should only return documents with terms that exactly matches.

Environment Info

@orama/orama 3.0.4

Affected areas

Search

Additional context

No response

@logancyang
Copy link

logancyang commented Jan 10, 2025

Anybody looking at this issue? Any pointer would be appreciated @micheleriva

@micheleriva
Copy link
Member

Hi @logancyang and @zeroliu, we are currently experiencing a temporary slowdown in managing this activity. We will keep you updated.

@micheleriva
Copy link
Member

I'll try to speed this up:

/bounty 150

@algora-pbc
Copy link

💎 oramasearch is offering a $150 bounty for this issue
👉 Got a pull request resolving this? Claim the bounty by adding @algora-pbc /claim #866 in the PR body and joining algora.io

@akv2011
Copy link

akv2011 commented Jan 13, 2025

/attempt #866

1 similar comment
@Erodri6z
Copy link

Erodri6z commented Feb 4, 2025

/attempt #866

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

6 participants