Hi everyone! I am looking for multiple word search using the query_by and query parameters where multiple words have to be considered and the search should be queried using 'OR' condition.
where the results are sorted by number of words are matched
my current query:
{
"filter_by": "",
"sort_by": "_text_matchdesc,createdAtdesc",
"page": 1,
"per_page": 10,
"query_by": "recipeIngredientNames",
"query_by_weights": "3",
"q": "rice eggs butter garlic ginger peas \"spring onions\" salt \"dark brown sugar\" \"soya sauce\" oil",
}
my collection doc example:
{
"id": "rSefbRFcLaCGgKlMxh81",
"title": "Chicken Potstickers",
"recipeId": "rSefbRFcLaCGgKlMxh81",
"recipeIngredientNames": [
"spring onions",
"Wonton Wrapper",
"eggs",
"garlic",
"vegetable oil",
"Water",
"filling",
"black pepper powder",
"sesame seeds",
"soya sauce",
"cabbage",
"sesame seed oil",
"ginger",
"salt",
"chicken keema",
"rice vinegar"
]
}