Find Jobs
Hire Freelancers

Complex SQL search query with relevance ordering

$10-30 USD

Concluído
Publicado há aproximadamente 8 anos

$10-30 USD

Pago na 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 do Projeto: 9920496

Sobre o projeto

13 propostas
Projeto remoto
Ativo há 8 anos

Quer ganhar algum dinheiro?

Benefícios de ofertar no Freelancer

Defina seu orçamento e seu prazo
Seja pago pelo seu trabalho
Descreva sua proposta
É grátis para se inscrever e fazer ofertas em trabalhos
Concedido a:
Avatar do Usuário
I am SQL expert and oracle certified professional and can do the task as per your requirement. .
$15 USD em 1 dia
4,8 (3 avaliações)
1,9
1,9
13 freelancers estão ofertando em média $28 USD for esse trabalho
Avatar do Usuário
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 em 1 dia
4,9 (248 avaliações)
6,1
6,1
Avatar do Usuário
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 em 1 dia
4,9 (80 avaliações)
6,1
6,1
Avatar do Usuário
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 em 1 dia
5,0 (29 avaliações)
5,2
5,2
Avatar do Usuário
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 em 3 dias
4,9 (32 avaliações)
4,8
4,8
Avatar do Usuário
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 em 1 dia
4,8 (19 avaliações)
4,4
4,4
Avatar do Usuário
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 em 1 dia
4,9 (7 avaliações)
3,8
3,8
Avatar do Usuário
A proposal has not yet been provided
$18 USD em 5 dias
0,0 (0 avaliações)
0,0
0,0

Sobre o cliente

Bandeira do(a) BULGARIA
Sofia, Bulgaria
5,0
14
Membro desde mar. 17, 2009

Verificação do Cliente

Obrigado! Te enviamos um link por e-mail para que você possa reivindicar seu crédito gratuito.
Algo deu errado ao enviar seu e-mail. Por favor, tente novamente.
Usuários Registrados Total de Trabalhos 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)
Carregando pré-visualização
Permissão concedida para Geolocalização.
Sua sessão expirou e você foi desconectado. Por favor, faça login novamente.