为什么对一个名字进行完全匹配会返回一组无用的场地?[英] Why does an exact match on a name return a useless set of venues?

本文是小编为大家收集整理的关于为什么对一个名字进行完全匹配会返回一组无用的场地?的处理/解决方法,可以参考本文帮助大家快速定位并解决问题,中文翻译不准确的可切换到English标签页查看源文。

问题描述

这对我来说没有多大意义,我希望有人能阐明这里发生的事情以及我如何工作.

如果我这样查询:

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栏).但是,如果我搜索确切的匹配名称:

调试的混乱的场地名称?

推荐答案

我不确定这是否会有所帮助,但是我发现在查询中将"和"放置在单词之间会产生更准确的结果:

搜索辣椒的酒吧和烤架

第一个查询具有无关的结果:

其他推荐答案

在Foursquare场地搜索中,Bigram Matches的质量存在已知问题 - 您的查询术语包括一个非常受欢迎的单词(" Bar"),使结果偏差.搜索团队正在研究这些查询的质量改进.

本文地址:https://www.itbaoku.cn/post/2090873.html

问题描述

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:

https://api.foursquare.com/v2/venues/search?ll=37.77%2C-122.41&radius=15000&intent=browse&oauth_token=xxx&limit=20&query=pi%20ba

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:

https://api.foursquare.com/v2/venues/search?ll=37.77%2C-122.41&radius=15000&intent=browse&oauth_token=xxx&limit=20&query=pi%20bar

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.