I have created a Schema with 2 fields with different weights `
.addTextField("title", 10.0)
.addTextField("description", 2.0)
I pushed 2 objects with the following values:
Object 1:
fields.put("title", "i want to learn more about coding");
fields.put("description", "i love redis search");
Object 2:
fields.put("title", "i want to learn more about redis");
fields.put("description", "i love coding coding coding");
Now, when I search for the word "coding", object 2 will have a higher score than object 1. because the word "coding" appears 3 times in the description (i guess).
How does object 1 have a higher score than object 2 in search results? Because I want to prioritize the results in the "title" field over "description".
Best regards!