Find Jobs
Hire Freelancers

Complex SQL search query with relevance ordering

$10-30 USD

Terminado
Publicado hace alrededor de 8 años

$10-30 USD

Pagado a la entrega
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 del proyecto: 9920496

Información sobre el proyecto

13 propuestas
Proyecto remoto
Activo hace 8 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
Adjudicado a:
Avatar del usuario
I am SQL expert and oracle certified professional and can do the task as per your requirement. .
$15 USD en 1 día
4,8 (3 comentarios)
1,9
1,9
13 freelancers están ofertando un promedio de $28 USD por este trabajo
Avatar del usuario
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 en 1 día
4,9 (248 comentarios)
6,1
6,1
Avatar del usuario
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 en 1 día
4,9 (80 comentarios)
6,1
6,1
Avatar del usuario
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 en 1 día
5,0 (29 comentarios)
5,2
5,2
Avatar del usuario
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 en 3 días
4,9 (32 comentarios)
4,8
4,8
Avatar del usuario
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 en 1 día
4,8 (19 comentarios)
4,4
4,4
Avatar del usuario
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 en 1 día
4,9 (7 comentarios)
3,8
3,8
Avatar del usuario
A proposal has not yet been provided
$18 USD en 5 días
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de BULGARIA
Sofia, Bulgaria
5,0
14
Miembro desde mar 17, 2009

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.