-
-
Notifications
You must be signed in to change notification settings - Fork 340
String filter not working with pluginQPS #935
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
Comments
@allevo any idea? |
Hi! No idea. Can you also give us some documents you insert? |
Hello! Here it is a complete code snippet example to reproduce the bug. If you try to comment the plugin line, the search will actually return both documents import {create, insertMultiple, search} from '@orama/orama'
import {pluginQPS} from '@orama/plugin-qps'
const db = create({
schema: {
title: 'string',
category: 'string',
},
plugins: [pluginQPS()],
})
await insertMultiple(db, [
{
title: `Harry Potter and the Philosopher's Stone`,
category: 'movie',
},
{
title: 'Harry Potter and the Chamber of Secrets',
category: 'book',
},
])
const found = await search(db, {
term: 'Harry',
where: {
category: ['movie', 'book'],
},
})
console.log(found) |
@allevo is there any news? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I have an Orama db with a string property in its schema and the QPS plugin enabled. When I perform a search with an array valued
where
clause on the string property (just like the second example in the docs) it finds no documents.To Reproduce
Expected behavior
I expect to actually find documents with
category = 'movie'
ORcategory = 'book'
, but got none.Environment Info
Affected areas
Search
Additional context
No response
The text was updated successfully, but these errors were encountered: