Join Free
+ Reply to Thread
Results 1 to 5 of 5
  1. #1

    why doesn't this work?

    Hi, if I do a trends query for baseball for the last 30 days I get lots of fairly relevant results. Same thing for football. But if I combine the two and use relevancy of .7, I only get 2 results. Since .7 for 2 items is supposed to return a match for 1 or more of the terms, I expected lots of results for either baseball or football. That's how it works for the product endpoint, and I thought the relevancy is supposed to work the same way across all endpoints.

    Here's the API:

  2. #2
    I think you misunderstand the relevancy threshold. There's not a lot of terms that match both "baseball" and "football" or parts thereof.

    Search for either baseball OR football and you'll get a ton of results.

  3. #3
    I think I do understand, AcidRaZor. As I've been using it for products it has been working great for a variety -- ie either baseball or football. Using .7 for 2 products = 1.4 which rounds to 1, and therefore the results will be 1 or the other. I would expect the same kinds of results for the trends endpoint, but there it appears to be trying to match both instead of one or the other. It is as if the relevancyThreshold works as advertized for the products endpoint but not for the trends endpoint.

  4. #4
    We'll look into this

  5. #5
    Any idea when you will get to this? I'm setting up queries for categories, and will probably want to use trends for generic categories instead of products, but I can't think of a better approach other than to use a low relevancy threshhold with several terms.

    Also, can my limit be upped to 10,000? 1000 is giving me too many repeat results in some general categories, even after I shuffle the data array..
    Last edited by tedm; 06-09-2014 at 09:16 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
coupons | coupons and deals