Skip to content

Commit

Permalink
override default searchableAttibutes and ranking
Browse files Browse the repository at this point in the history
  • Loading branch information
mihaiblaga89 committed Apr 10, 2024
1 parent f2760eb commit e3bdffe
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions config.next.json
Expand Up @@ -18,13 +18,49 @@
},
"strip_chars": " .,;:#",
"custom_settings": {
"searchableAttributes": [
"unordered(hierarchy_radio.lvl0)",
"unordered(hierarchy_camel.lvl0)",
"unordered(hierarchy_radio_camel.lvl0)",
"unordered(hierarchy.lvl0)",
"unordered(hierarchy_radio.lvl1)",
"unordered(hierarchy_camel.lvl1)",
"unordered(hierarchy_radio_camel.lvl1)",
"unordered(hierarchy.lvl1)",
"unordered(hierarchy_radio.lvl2)",
"unordered(hierarchy_camel.lvl2)",
"unordered(hierarchy_radio_camel.lvl2)",
"unordered(hierarchy.lvl2)",
"unordered(hierarchy_radio.lvl3)",
"unordered(hierarchy_camel.lvl3)",
"unordered(hierarchy_radio_camel.lvl3)",
"unordered(hierarchy.lvl3)",
"unordered(hierarchy_radio.lvl4)",
"unordered(hierarchy_camel.lvl4)",
"unordered(hierarchy_radio_camel.lvl4)",
"unordered(hierarchy.lvl4)",
"unordered(hierarchy_radio.lvl5)",
"unordered(hierarchy_camel.lvl5)",
"unordered(hierarchy_radio_camel.lvl5)",
"unordered(hierarchy.lvl5)",
"unordered(content)",
"unordered(anchor)"
],
"attributesToRetrieve": [
"hierarchy",
"content",
"anchor",
"url",
"url_without_anchor",
"type"
],
"ranking": [
"exact",
"words",
"filters",
"typo",
"attribute",
"proximity"
]
}
}

0 comments on commit e3bdffe

Please sign in to comment.