We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
exact: true
When I search with exact: true, documents with partially matching terms are also returned.
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);
Calling search with exact: true should only return documents with terms that exactly matches.
search
@orama/orama 3.0.4
Search
No response
The text was updated successfully, but these errors were encountered:
Anybody looking at this issue? Any pointer would be appreciated @micheleriva
Sorry, something went wrong.
No branches or pull requests
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
withexact: true
should only return documents with terms that exactly matches.Environment Info
Affected areas
Search
Additional context
No response
The text was updated successfully, but these errors were encountered: