问题描述
这对我来说没有多大意义,我希望有人能阐明这里发生的事情以及我如何工作.
如果我这样查询:
https://api.foursquare.com/v2/venues/search?ll = 37.77%2C-122.41&radius=15000&intent = browse = browse&oauth_token = xxx&limit = 20&query=pi%20BA
我收到了大约15个项目的列表,包括我要搜索的项目(PI栏).但是,如果我搜索确切的匹配名称:
调试的混乱的场地名称?
推荐答案
我不确定这是否会有所帮助,但是我发现在查询中将"和"放置在单词之间会产生更准确的结果:
搜索辣椒的酒吧和烤架
第一个查询具有无关的结果:
问题描述
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
其他推荐答案
There's a known issue with quality of bigram matches in foursquare venue searches -- your query term includes a very popular word ("bar") which skews the results. The search team is working on quality improvements for these sorts of queries.