为什么名称的精确匹配会返回一组无用的场地?
这对我来说没有多大意义,我希望有人能够阐明这里发生的事情以及我如何解决它。
如果我这样查询:
我得到了大约 15 个项目的列表,包括我正在搜索的项目(pi 栏)。但是,如果我搜索完全匹配的名称:
我刚刚得到该区域内场地的总列表(主要是 BART 站点等),
是否符合预期我应该必须删除用户输入的查询的最后一个字符才能返回结果,或者这只是我一直在调试的一个混乱的场地名称?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不确定这是否有帮助,但我发现在查询中的单词之间放置“and”可以产生更准确的结果:
搜索 Chili's Bar & Grill
第一个查询有无关的结果:
https://api.foursquare.com/v2/venues/search?ll=34.07527923583984,-84.29469299316406&radius=5000&query=chili的酒吧烧烤&oauth_token=xxx& v=20111205
第二个更准确(虽然我已经删除了&符号:&)
https://api.foursquare.com/v2/venues/search?ll=34.07527923583984,-84.29469299316406&radius=5000&query=chili's 和酒吧和烧烤&oauth_token= xxx&v=20111205
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
foursquare 场地搜索中的二元匹配质量存在一个已知问题 - 您的查询词包含一个非常流行的单词(“bar”),这会导致结果出现偏差。搜索团队正在致力于提高此类查询的质量。
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.