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

Override default list of searchable attributes for the current search #106

Open
ManishSoniMS opened this issue Dec 15, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@ManishSoniMS
Copy link

The package does not support override searchable attributes for the current search
this feature is available for other language but not for dart

code for js :
index.search('query', {
attributesToRetrieve: [
"title",
"content"
]
}).then(({ hits }) => {
console.log(hits);
});

@ManishSoniMS ManishSoniMS added the enhancement New feature or request label Dec 15, 2022
@techouse
Copy link

techouse commented Dec 17, 2022

Of course, it does. Check out .setAttributesToRetrieve(<String>['title', 'content'])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants