Hi All, how to search song by artist and it will s...
# community-help
v
Hi All, how to search song by artist and it will show song from that artist.so that it will take two query song name and artist name and it will search that
k
You can search by song name (via
query_by
) and filter on artist name (via
filter_by
) . You can also just search on multiple fields by adding multiple names like this:
query_by=name,author
v
i am searching for multi query search like arijit and jubin. it will show song from both.
k
I don't quite follow you. Please create a small sample dataset and exact query you are making and describe what you expect to see vs what you are getting.
v
In below screenshot i am searching for arijit and lata mangeshkar.but i am not getting any output related to that.
k
What record are you looking for the search to return? Can you post a screenshot of that?
v
it should return arijit or lata mangeshkar or both.
k
Ah, got it. We don't have a way to configure Typesense to make OR of the words in the query. Typesense will return results that match all tokens. If no such results are found, then only it will attempt to drop the tokens.
v
any idea how to implement that?
k
You can make two independent queries and then merge results client side.