I am new to backgrid.js and I am using filter as an extension function for my web app. I am quite confused about LunrFilter
. As the code defines in this page, it has the parameter { field : 10 }
. May I know what and how does field name and boost value affect the filtration of collection?
Also, is it possible for Backgrid.filter to filter collections by precedence?
For example, I have the following data:
Record #1 - fname : Adam; lname : Smith
Record #2 - fname : Luke; lname : Adam
Record #3 - fname : John; lname : Adam
I would like to take precedence of lname
over fname
on filtering.
If I key in "Adam" on search bar - table must display Records #2 and #3 first, and #1 last.