Find Jobs
Hire Freelancers

Complex SQL search query with relevance ordering

$10-30 USD

Completed
Posted about 8 years ago

$10-30 USD

Paid on delivery
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.
Project ID: 9920496

About the project

13 proposals
Remote project
Active 8 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
I am SQL expert and oracle certified professional and can do the task as per your requirement. .
$15 USD in 1 day
4.8 (3 reviews)
1.9
1.9
13 freelancers are bidding on average $28 USD for this job
User Avatar
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 in 1 day
4.9 (248 reviews)
6.1
6.1
User Avatar
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 in 1 day
4.9 (80 reviews)
6.1
6.1
User Avatar
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 in 1 day
5.0 (29 reviews)
5.2
5.2
User Avatar
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 in 3 days
4.9 (32 reviews)
4.8
4.8
User Avatar
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 in 1 day
4.8 (19 reviews)
4.4
4.4
User Avatar
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 in 1 day
4.9 (7 reviews)
3.8
3.8
User Avatar
A proposal has not yet been provided
$18 USD in 5 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of BULGARIA
Sofia, Bulgaria
5.0
14
Member since Mar 17, 2009

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.