Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6772497
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:33:23+00:00 2026-05-26T15:33:23+00:00

so I am trying to make a simple search engine, that allows a user

  • 0

so I am trying to make a simple search engine, that allows a user to search username, email, firstname and lastname.

However everytime I run the following it only returns russell.harrower instead of both russellharrower and russell.harrower

SELECT *, MATCH(username) AGAINST ('russell') as score FROMuser_infoWHERE MATCH(username) AGAINST ('russell')

I am not sure if i need to put a like status in there or what, so thought i would ask.

I want it to order the whole sql by the score.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T15:33:24+00:00Added an answer on May 26, 2026 at 3:33 pm

    Did you try using asterisk (wildcard) in boolean mode?

    [...] AGAINST ('+russell*' IN BOOLEAN MODE)
    

    http://dev.mysql.com/doc/refman/5.5/en/fulltext-boolean.html

    http://www.databasejournal.com/features/mysql/article.php/1587371/Using-Fulltext-Indexes-in-MySQL—Part-2-Boolean-searches.htm

    http://www.joedolson.com/boolean-query-in-mysql.php

    /edit: don’t use LIKE, especially with % in front of a phrase, it’s veeery slow

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to make a simple email notification when a user signs up. My
I'm trying to make a simple C# web server that, at this stage, you
This is a bit urgent! I'm trying to make a simple filter search where-by
I am coding search engine using Zend Framework Lucene. I'm trying to make fuzzy
I am trying to implement a search algorithm in my simple datastructure. However, this
I'm trying to make a simple search form on my website and I'm using
I'm trying to run a simple watiN example: search google then verify the search
So I'm trying to make a simple C# console app that simply queries a
I'm trying to make a simple blackjack program. Sadly, I'm having problems right off
I'm trying to make some simple XML with Java and org.w3c.dom, but I got

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.