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

  • Home
  • SEARCH
  • 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 4573024
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T19:43:43+00:00 2026-05-21T19:43:43+00:00

In my application (PHP/MySQL/JS), I have a search functionality built in. One of the

  • 0

In my application (PHP/MySQL/JS), I have a search functionality built in. One of the search criteria contains checkboxes for various options, and as such, some results would be more relevant than others, should they contain more or less of each option.

i.e. Options are A and B, and if I search for both options A and B, Result 1 containing only option A is 50% relevent, while Result 2 containing both options A and B is 100% relevant.

Prior, I’d just be doing simple SQL queries based on form input, but this one’s a little harder, since it’s not as simple as data LIKE “%query%”, but rather, some results are more valuable to some search queries, and some aren’t.

I have absolutely no idea where to begin… does anybody have relevant (ha!) reading material to direct me to?

Edit: After mulling it over, I’m thinking something involving an SQL script to get the raw data, followed by many many rounds of parsing is something I’d have to do…

Nothing cacheable, though? 🙁

  • 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-21T19:43:44+00:00Added an answer on May 21, 2026 at 7:43 pm

    have a look at the lucence project
    it is available in many languages

    this is the php port
    http://framework.zend.com/manual/en/zend.search.lucene.html

    it indexes the items to search and returns the relevant weighted search results, eg better then select x from y where name like ‘%pattern%’ style searching

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

Sidebar

Related Questions

I'm looking to implement fuzzy search for a small PHP/MySQL application. Specifically, I have
I'm writng a small application in PHP + MySQL and have come to the
I have a PHP web application which uses a MySQL database for object tagging,
I got some problems with finding a bug in php/mysql application, and I wonder
We have a PHP/MySQL application and I want to setup a logging mechanism to
I have a Facebook application build with PHP/MySQL, both are installed in the same
I am using PHP and Mysql for developing an application. we have two copies
I am developing a PHP/MySQL application using vertrigoserver. I need to enter the German
I am creating a php/mysql application for a university project and I am looking
I want to run a web application on php and mysql, using the CakePHP

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.