added the ability to search by artist name
This commit is contained in:
@@ -156,10 +156,10 @@ if (start === 0) {
|
|||||||
const searchRequests = { searches: searchArray };
|
const searchRequests = { searches: searchArray };
|
||||||
const commonSearchParams = {
|
const commonSearchParams = {
|
||||||
q: resolvedQuery,
|
q: resolvedQuery,
|
||||||
query_by: 'content,setName,setCode,productName',
|
query_by: 'content,setName,setCode,productName,Artist',
|
||||||
query_by_weights: '10,6,8,9',
|
query_by_weights: '10,6,8,9,8',
|
||||||
num_typos: '2,1,0,1',
|
num_typos: '2,1,0,1,2',
|
||||||
prefix: 'true,true,false,false',
|
prefix: 'true,true,false,false,false',
|
||||||
};
|
};
|
||||||
|
|
||||||
// use typesense to search for cards matching the query and return the productIds of the results
|
// use typesense to search for cards matching the query and return the productIds of the results
|
||||||
|
|||||||
Reference in New Issue
Block a user