Skip to content

Search in multidimensional object #48

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

Open
jbdelhommeau opened this issue Jan 30, 2017 · 0 comments
Open

Search in multidimensional object #48

jbdelhommeau opened this issue Jan 30, 2017 · 0 comments

Comments

@jbdelhommeau
Copy link

jbdelhommeau commented Jan 30, 2017

I try to search on a simple multidimensional object. But nothing return result.

var sifter = new Sifter([
{
  lastName: "John",
  firstName: "Doe",
  email: "[email protected]",
  society: {
    id: 1,
    name: "ONU"
  }
}
]);

I have try:

var result = sifter.search('onu', {
    fields: ['lastName', 'firstName', 'society.name'],
});

var result = sifter.search('onu', {
    fields: ['lastName', 'firstName', 'society[name]'],
});

Thank you for your reply.

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

No branches or pull requests

1 participant