hi! we are considering alternatives for our curren...
# community-help
b
hi! we are considering alternatives for our current search engine(Algolia). was wondering if with Typesense there is a way to require a min frequency for certain search terms. right now we are doing it in the applicatio layer with some backend processing but this complicates things a lot and would like to know if there is a way to achieve this by creating a custom filter
k
đź‘‹ can you please give an example so I can understand better? Do you want terms to be considered for matching only if it matches a certain number of documents?
b
so, imagine I have these docs with the following content: • "foo bar" • "foo foo bar" now, I want to set a rule to require a min frequency occurrence. I know that those with a highest frequency, will be ranked higher, but I'd like to filter out those where for example the term appears only once. making this in the application layer makes everything more complicated(eg. with pagination) so, if I search for "foo" and set the required min frequency to two, it would pull only the second. ideally I should be tell the min frequency for each term. eg; foo=2, bar=1 thanks!