0

I'm trying to implement a targeting feature on our AdServer (DSP). Currently, our Ads are attached to targeted keywords e.g. "Baseball caps" and all of these keywords are indexed in RediSearch. When a user on a publisher side searches for e.g. "Baseball caps for girls" then our adserver should return ads attach to keywords like the above example ad. but I have a problem figuring out how to write the queries:

FT.Search dummyIndex "@Keyword: Baseball caps for girls" won't return the example ad with "Baseball caps" since the query string has extra words that do not exist within the keyword.

using | (or) won't work either because FT. Search dummyIndex "@Keyword: (Baseball | girls)" will return the example ad but we should not since the query string does not have caps

is there any way I can achieve this using research? please note that indexing the user query string rather than the keywords and searching for the keywords within the index is not applicable.

Vivek Lele
  • 109
  • 4

0 Answers0