is there any support for some kind of "filtering" ...
# community-help
e
is there any support for some kind of "filtering" in the actual query, like forcing a token with quotes "must have this", or must not have a token with -not -these ? things like that?
j
-not -these
is supported.
"must have this"
(called phrase search) is not yet supported.
👍 1
e
that's it? no other ones?
j
That's it at the moment. What others do you have in mind?
e
I'm not sure honestly. Let me explain what I'm trying to do (might not be related to these things)...
1
j
Could you thumbs up this issue for phrase query: https://github.com/typesense/typesense/issues/272
e
So. I have two collections. Products and Store Products. I need to run some kind of intelligent search on a Product name, to find a bunch of very relevant Store Products. (to attach them to the Product) this might be irrelevant for you, but just for context ...
Products are Mobile Phones (for now). Store Products can be anything.
Example Product name: Samsung Galaxy A72 256GB (8GB RAM)
which when searching the Store Products collection, with the default settings, also finds a bunch of very irrelevant Store Products. Lenovo laptops with 8GB or RAM ... things like that.
I'm playing around with the settings to exclude most of the irrelevant Store Products
message has been deleted
I don't know if I'm missing something. Maybe you have some tip to give me?
Or is that it? I just have to play around with these settings to try to get to most relevancy possible?
for example, in the search query "Samsung Galaxy A72 256GB (8GB RAM)", some tokens (words?) are more important than others. A72 is super important to find the correct phone. While 256GB and 8GB RAM is not, since not all Store Product names will even have those in the name.
also, can I use the text_match score in some way, to find (perfect) relevancy?
j
Ah model numbers... One thing I'd recommend is to store Brand, Make, Model, Capacity, etc in distinct attributes in the document. Then when searching, you could turn off typo tolerance just for Model Number and Capacity. You could also turn off prefix search if you prefer that. You'd then also be able to weight Brand and Model higher than capacity for eg using query_by_weights
e
thank you so much!
👍 1