为什么名称完全匹配会返回无用的场所? [英] Why does an exact match on a name return a useless set of venues?
问题描述
这对我来说意义不大,我希望有人可以阐明这里发生的事情以及我如何解决它.
如果我这样查询:
我刚刚得到了该区域内所有场所的总括清单(主要是BART站等)
是否期望我必须从用户输入的查询中删除最后一个字符才能返回结果,或者这只是我一直在调试的混乱的场所名称?
我不确定这是否有帮助,但是我发现在查询中的单词之间放置和"可以产生更准确的结果:>
搜索Chili's Bar&烧烤
第一个查询有无关的结果:
https://api.foursquare.com/v2/venues/search?ll=34.07527923583984,-84.29469299316406&radius=5000&query=辣椒的酒吧烧烤& oauth_token = xxx& v = 20111205
第二个要准确得多(尽管我删除了&符:&)
https://api.foursquare.com/v2/venues/search?ll=34.07527923583984,-84.29469299316406&radius=5000&query=辣椒和酒吧和烧烤店& oauth_token = xxx& v = 20111205
This doesn't make much sense to me, and I'm hoping someone can shed some light on what's going on here and how I work around it.
If I query like this:
I get a list of about 15 items, including the item I'm searching for (pi bar). However, if I search for the exact match name:
I just get back the blanket list of venues within this area (mostly BART stops, etc.)
Is it expected that I should have to shave the last character off of user entered queries to get results back, or is this just a messed up venue name that I've been debugging with?
I'm not sure if this may help, but I've discovered placing an "and" between words in your query can produce more accurate results:
Searching for Chili's Bar & Grill
The first query has extraneous results:
https://api.foursquare.com/v2/venues/search?ll=34.07527923583984,-84.29469299316406&radius=5000&query=chili's bar grill&oauth_token=xxx&v=20111205
The second is much more accurate (although I've removed the ampersand: &)
https://api.foursquare.com/v2/venues/search?ll=34.07527923583984,-84.29469299316406&radius=5000&query=chili's and bar and grill&oauth_token=xxx&v=20111205
这篇关于为什么名称完全匹配会返回无用的场所?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!