Change search logic
This commit is contained in:
parent
f293d161c5
commit
a290b4fb0b
|
@ -96,7 +96,7 @@ const useDb = () => {
|
||||||
const filter = phrases
|
const filter = phrases
|
||||||
.filter((phrase) => phrase.length > 1)
|
.filter((phrase) => phrase.length > 1)
|
||||||
.map((phrase) => `textSearch ~ "${phrase}"`)
|
.map((phrase) => `textSearch ~ "${phrase}"`)
|
||||||
.join(' || ');
|
.join(' && ');
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const list = await tunesCollection.getList(page, perPage, {
|
const list = await tunesCollection.getList(page, perPage, {
|
||||||
|
|
Loading…
Reference in New Issue