You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.log('Filtering by sources',sources);constresults=awaitsearch(db,{where: {source: sources,},10000,});console.log('Got results',results);}
I get the following console output:
As you can see the first hit in the results already has a different source attribute (value: "README.md") than the filter (value: "To Add.md").
The filter was completely ignored.
I think in my previous example, "README.md" was a hit because it contained the ".md" substring. That's why every record was matching. Not sure if this is the intended behavior. If it is, is there another way to filter on exact matches?
The numeric filter also doesn't seem to work as expected:
For this code:
constbefore=1705758397008;console.log('Searching for entries indexed before',before,'in Oramadb',db.data.docs);constresults=awaitsearch(awaitthis.db,{where: {indexed_at: {lt: before}},100});console.log('Results',results);
I get this output:
where you can see that the indexed_at values of entries 21 and 22 are smaller than the value of before (1705757860535 < 1705758397008). But I also get no hits even though I am using the "lt" filter on indexed_at.
Describe the bug
When I execute this code:
I get the following console output:
As you can see the first hit in the results already has a different source attribute (value: "README.md") than the filter (value: "To Add.md").
The filter was completely ignored.
To Reproduce
Expected behavior
As you stated in your docs:
I expect to only get hits that include 'To Add.md' in their source attribute.
Environment Info
Affected areas
Search
Additional context
No response
The text was updated successfully, but these errors were encountered: