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

Allow setting source (fields) from options #293

Merged
merged 2 commits into from
Dec 28, 2024

Conversation

hulkur
Copy link
Contributor

@hulkur hulkur commented Dec 18, 2024

In case you want to limit returned fields.

Use case: search index has added custom fields that are searched but should not be returned in results

@matchish
Copy link
Owner

Sorry for late answer. could you pull master to resolve failed checks

@hulkur
Copy link
Contributor Author

hulkur commented Dec 23, 2024

done, checks pass.

@matchish
Copy link
Owner

cool. could you update README and CHANGELOG as well please?

@matchish
Copy link
Owner

I propose 7.10.0 next release

@hkulekci
Copy link
Contributor

What do you think about checking the options['source'] is array or not? I am sure that it will throw an error. Do we need to check it or just need to assume. Ar least we can put a test in test cases with note 🧐

@hulkur
Copy link
Contributor Author

hulkur commented Dec 24, 2024

setSource takes array|string|bool so the logic is more complicated

@hkulekci
Copy link
Contributor

This is unfortunate.

@matchish matchish merged commit 31dd81a into matchish:master Dec 28, 2024
6 checks passed
@matchish
Copy link
Owner

Released. Thanks for contribution @hulkur

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

Successfully merging this pull request may close these issues.

3 participants