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 104025
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T01:12:59+00:00 2026-05-11T01:12:59+00:00

I have a live search on my help page that searches our help database

  • 0

I have a live search on my help page that searches our help database and returns the relevant results. I figure that a good way to decide what needs more documentation would be to log searches that return no results to our database.

Normally, this would be really simple, but that fact that it’s a live search has made it a bit more tricky.

So when someone searches for:

  • This search returns no results.

because it’s a live search we get searches of:

  • This s
  • This search r
  • This search returns n
  • This search returns no results.

Obviously it would be best if we could only log the full phrase and not the partials.

So for now the way I’m just dumping all the searches into a table that looks like: (id int, search_string text, count int)

The only ways I can think of that might help would be to

  • Before we add a new row to the table do a like search of the search string against the searches in the table and if theres a match don’t insert or increment the count. However, I expect this table will get really big and a like query like that would become really slow.

  • Write some javascript for if the input value hasn’t changed in 2 seconds send a special live search with a flag that says to log it if it’s a miss.

It seems to me that there must be a better way to handle this but I’m blanking on anything. Any ideas?

  • 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. 2026-05-11T01:13:00+00:00Added an answer on May 11, 2026 at 1:13 am

    I’m thinking what you should do is use a temporary (daily, perhaps, or hourly if you need faster feedback) table of candidate ‘missed’ searches. At the end of the table’s lifespan, it gets postprocessed such that any searches which are prefixes of other missed searches, or of successful searches, are ignored. The rest go into the table of ‘real’ missed searches.

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

Sidebar

Ask A Question

Stats

  • Questions 73k
  • Answers 73k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer Operating systems have to manage the sizes of CPU caches… May 11, 2026 at 1:58 pm
  • added an answer ASP.NET 2.0's Membership, Roles, and Profile May 11, 2026 at 1:58 pm
  • added an answer While it is possible to construct a generic function that… May 11, 2026 at 1:58 pm

Related Questions

I have a test web service replicating a live web service that hasn't been
I have a program that captures live data from a piece of hardware on
I have a backup server that automatically backs up my live site, both files
I have a project where I am taking some particularly ugly live HTML and
Once in a while my shared hosting environment gets compromised because, well, I failed
I recently discovered that I could use the sp_help to get a table definition
I am looking to implement a live search in my MVC app similar to
I am using the singleton pattern in all my PHP class files. Would it

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.