Find Jobs
Hire Freelancers

Complex SQL search query with relevance ordering

$10-30 USD

已完成
已发布大约 8 年前

$10-30 USD

货到付款
Hello everybody. I'm having difficulty generating an sql query, that will give me a desired result, so I'm asking for help. I have the following need: A search term is submitted, that can contains N amount of words. I need a query that will search for a combination of *at least 2 occurrences anywhere in the value of the fields* to *results containing all of the words* (expecting the word delimiter to be a "space"), and this search will look in 3 db fields (title, keywords, notes) The result I need ordered by relevance, top results to be any matches with *all word occurrences* and lower matches to follow. Each field has the same priority so if a search has 4 words, 4 matches in either title, or keyword have the same weight. It's not possible to predict how many words there may be in the string. This will be run through php, so anything that cannot be done with a query alone, can be done there, but i'm aiming for a "as much as possible" mysql query.
项目 ID: 9920496

关于此项目

13提案
远程项目
活跃8 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
I am SQL expert and oracle certified professional and can do the task as per your requirement. .
$15 USD 在1天之内
4.8 (3条评论)
1.9
1.9
13威客以平均价$28 USD来参与此工作竞价
用户头像
message me before awarding this project to me message me before awarding this project to me message me before awarding this project to me message me before awarding this project to me message me before awarding this project to me message me before awarding this project to me message me before awarding this project to me
$15 USD 在1天之内
4.9 (248条评论)
6.1
6.1
用户头像
DONT AWARD PROJECT BEFORE DISCUSSION, its pretty simple for me but I have few questions to ask, knock me for further discussion, thank you!
$26 USD 在1天之内
4.9 (80条评论)
6.1
6.1
用户头像
Hello, I am a graduate Software Engineer with vast experience in writing SQL. I have understood you requirements. Come to chat for further discussion.
$30 USD 在1天之内
5.0 (29条评论)
5.2
5.2
用户头像
Hello sir/madam, we have read and understand your requirement and very much confident that we can complete this project within low budget and less time . Give us chance to serve you better... Thanks & Regards, Softtechsurat
$50 USD 在3天之内
4.9 (32条评论)
4.8
4.8
用户头像
Hi! I'm senior lecturer on databases. I know how to count N amount of words in the select query. select (char_length(title) - char_length(replace(title,substr,''))) div char_length(substr) as count_in_title, (char_length(keywords) - char_length(replace(keywords,substr,''))) div char_length(substr) as count_in_keywords, (char_length(notes) - char_length(replace(notes,substr,''))) div char_length(substr) as count_in_notes from table And then, ordered a result may be on weight of each amount.
$25 USD 在1天之内
4.8 (19条评论)
4.4
4.4
用户头像
Hello! I can develop your request either as a query of as a stored procedure (you will be able to call the stored procedure with parameters and based on the parameters values it will return the result). Let me know what is better for you. Please share the following details: 1) storage engine of the table (innodb or myistam or something else); 2) MySQL version. I am free now and I can start working on your project. P.S. I have 6+ years of experience with MySQL administration/optimization and I write only high performance SQLs.
$30 USD 在1天之内
4.9 (7条评论)
3.8
3.8
用户头像
A proposal has not yet been provided
$18 USD 在5天之内
0.0 (0条评论)
0.0
0.0

关于客户

BULGARIA的国旗
Sofia, Bulgaria
5.0
14
会员自3月 17, 2009起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。