Skip to content

Fixing nested path searching issue #32

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

Merged
merged 1 commit into from
May 14, 2018
Merged

Conversation

SafAlhaji
Copy link
Contributor

Searching will not consider fields that are given a nested path (e.g. attributes.name), since getFn is overridden and looks straight into obj[path], which will give obj["attributes.name"] in the mentioned example. The dig method should be used to look into nested paths properly.

@thepill
Copy link
Collaborator

thepill commented May 14, 2018

Should we make this configurable e.g. deepseach: true|false?

@SafAlhaji
Copy link
Contributor Author

I think such configuration will preferably be set to true most of the times, don't think anyone would want a search that works only on first-level properties, while expecting it to work on all displayed columns.

@MicroDroid MicroDroid merged commit b5d1e35 into MicroDroid:master May 14, 2018
@MicroDroid
Copy link
Owner

Thanks for your efforts

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

Successfully merging this pull request may close these issues.

3 participants