John Doisneau
06/01/2021, 4:40 PMJohn Doisneau
06/01/2021, 4:44 PMadditionalSearchParameters: {
queryBy: 'categories,artname,artistname,color1,color2,tags,dimensions',
sortBy: 'numsales:desc'
},
Jason Bosco
06/01/2021, 5:03 PMquery_by
and include_fields
can be directly configured via additionalSearchParameters
in Instantsearch. This is because Instantsearch manages the other parameters internally through their widgets.
So to use facet_by
and filter_by
you want to use one of the refinement (or filter) widgets that Instantsearch offers. For sort_by, there's the sort widget - [here's](https://github.com/typesense/typesense-instantsearch-adapter/issues/9#issuecomment-710091167) how you configure it for Typesense. If you want to configure default params, have a look at the configure widget.John Doisneau
06/01/2021, 5:27 PM_text_match:desc
sortBy parameter? Is it an implicit one or do I need to put it in there as well?Jason Bosco
06/01/2021, 5:29 PMJohn Doisneau
06/01/2021, 5:29 PMJohn Doisneau
06/01/2021, 11:23 PMqueryBy
and sortBy
lines, right? Because at some point I had thought the Include Fields
also were modifying the output...John Doisneau
06/01/2021, 11:25 PMJohn Doisneau
06/01/2021, 11:26 PMJason Bosco
06/01/2021, 11:27 PMJohn Doisneau
06/01/2021, 11:32 PMJohn Doisneau
06/01/2021, 11:38 PM"sort_by": "numsales:desc",
On the cloud:
"sort_by": "numsales:desc,_text_match:desc",
John Doisneau
06/01/2021, 11:38 PM_text_match
manually?Jason Bosco
06/01/2021, 11:40 PM_text_match
should get added to the end automatically...Jason Bosco
06/01/2021, 11:40 PMJohn Doisneau
06/01/2021, 11:41 PMJason Bosco
06/01/2021, 11:42 PMJason Bosco
06/03/2021, 2:25 AM"sort_by": "numsales:desc"
and "sort_by": "numsales:desc,_text_match:desc"
produced different results? Wasn't replicate it, so I'm wondering if there's something else that might be going on