mysql - MySQL布尔搜索包括内部连接内的字段
问题描述
我们如何在布尔搜索中包含来自内部连接的字段?我有这些表:
恢复:
id
user_id
job_title
job description
location_id (linked to country id)
国家
id
iso_code_2
iso_code_3
name
我想要的是搜索具有 Manager 或 Head 但没有文本菲律宾的数据。
我假设这个文本会起作用:'Manager Head -Philippines',但它不起作用。
我需要将国家名称“复制”到简历中吗?
这是目前我的查询:
select resumes.*,
MATCH (resumes.job_title, resumes.job_description) AGAINST ('Manager Head -Philippines' IN BOOLEAN MODE) AS relevance_1,
MATCH (countries.name) AGAINST ('Manager Head -Philippines' IN BOOLEAN MODE) AS relevance_2
LEFT JOIN countries ON countries.id = resumes.location_id
解决方案
推荐阅读
- r - 有没有办法在 R 中以这种方式转换表格?
- html - SVG 图标破坏了以下 SVG 图标的颜色
- python-3.x - 为什么python找不到这个函数?
- c++ - 在 C++ CMake 项目中包含路径
- sql - 从 postgres 的时间戳列中仅选择 HH:MM:SS(小时、分钟和秒)
- heroku - 从我的 nodejs 应用程序连接第二个 postgresql 数据库
- c - 如何在 C 中生成概率为(1 到 100)的随机布尔值?
- python - InternetException("没有互联网 - Pywhatkit 需要有效的互联网连接")
- list - 不同列表的两个元素之间的差异。表现;
- python - 我无法理解函数定义(带有 '=' 的参数)