-
Notifications
You must be signed in to change notification settings - Fork 150
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
Indexing with AWS-S3 Bucket is failing #560
Comments
Thanks for the bug report @ApsaraDhanasekar11. I think I understand your problem, but there are too many variables to reproduce it accurately. Could you include a standalone script/test that demonstrates the issue? |
Hi @fergiemcdowall , thanks for replying back. Please find the below example code and help us with details. Thanks! const levelup = require('levelup'); const s3Store = await levelup(s3leveldown(bucketName, S3Client)); const idx = await si({ let data = [ const result = await idx.PUT(data, { // results is :: [ // ****** The above code creates the index as below:: // ****** For the Search/ query : ******* // But the result was :: While trying to identify the process flow, I noticed the GET function has internal implementation of db.createReadStream method which should actually filter the data according to the keywords passed in GTE & LTE. But looks like this is failing and instead bringing up the entire result set restricting upto the first character (alphabetic order).. |
Hi, I tried to create index with a different backend (AWS -S3 bucket) using the s3leveldown module as a DB store option. The Index is being created, but while querying using _SEARCH/ QUERY methods, the result set is inappropriate. Like for eg, when I initialise the DB with the S3 bucket and use the PUT method to add documents, where my text is "Final is the file name".. and "what is the version" . This is how its created ::
current Indexed one:: { key: 'description:file#0.60', value: [ '1635744247556-1-1' ] }.
Another one:: { key: 'description:version#0.50', value: [ '1635744285856-1-1' ] }
I am able to see the above in my store, when I do a createReadStream. But when my search keyword is "version", my expected result should be only the 2nd indexed document. But it gives me both 1st and 2nd.I tried using both _SEARCH/ QUERY methods, but both r giving same wrong/additional results.
I took reference from the below test folder examples:: https://github.com/fergiemcdowall/search-index/blob/master/test/src/memdown-test.js .
Can someone guide on the correct approach for implementing other backend store options like Amazon-S3 ?
The text was updated successfully, but these errors were encountered: