Closed rampatra closed 5 years ago
Too fast, found an example showing the very same thing. However, it would be nice to write about this under the "Set the options" heading.
Here is the example mentioned in the docs:
var options = {
keys: [{
name: 'title',
weight: 0.3
}, {
name: 'author',
weight: 0.7
}]
};
Closing the issue now.
Also, I assume the smaller the weight the higher the importance. Am I right?
For example, I have a structure like:
So, here I want
title
to be given higher preference thanbody
. Is this possible in the current version? If not, would this be a good feature to have?