elasticlunr.js icon indicating copy to clipboard operation
elasticlunr.js copied to clipboard

Search nested properties?

Open samdutton opened this issue 7 years ago • 3 comments

Thanks for elasticlunr.js — much appreciated! FWIW I've done an offline search demo at simpl.info/search/lunr.

Is it possible to search for nested properties, for an object like the following?

{
  name: "foo",
  properties: {
    a: "bar",
    b: "baz"
  }
}

samdutton avatar Oct 02 '17 17:10 samdutton

Curious if you found a solution to this problem. I would also like to search nested properties. My approach at the moment is to flatten the document before adding to the index.

srbartlett avatar Jan 15 '18 02:01 srbartlett

I would love to know if you guys made any progress on this. I also might need to flatten the documents as well. Any response would be appreciated!

dougmolineux avatar Mar 16 '18 16:03 dougmolineux

I am in the same boat. Did anyone get anywhere with this?

electic avatar Mar 31 '20 19:03 electic