Live Chat & Podcast at 1:00PM Eastern on Sunday!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Tag Cloud
access acer asus bios bsod computer crash desktop driver drivers error ethernet excel freeze gaming hard drive hardware hdmi internet laptop malware memory modem monitor motherboard mouse network printer problem ram registry repair router slow software sound trojan ubuntu 11.10 uninstall usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
Need php script to highlight boolean search results

Reply  
Thread Tools
HowdeeDoodee's Avatar
Member with 432 posts.
 
Join Date: Aug 2004
Experience: Intermediate
23-May-2007, 10:02 PM #1
Need php script to highlight boolean search results
Is there a script around somewhere I can add to my php pagination file that will highlight the search terms found on each page retrieved from a boolean search?

OR


Is there a way to extract the words or phrases searched for by the MySql boolean embedded search engine

Question:
A boolean search form calls a php script paginating the search results. I want to know if there is a way to extract the words or phrases searched for by the MySql boolean embedded search engine after the Select statement executes. I want to do this so I can highlight the found words or terms by the boolean search feature of MySql before the records are displayed back to the user. The MySql boolean embedded search engine leaves out common words from the stop word list, and (as I understand it) does some other things like search for meanings and different combinations. So is there any way of extracting out the words actually searched for by MySql boolean search? Is there a built-in function that will give back the searched for words?

As an example, "in God we trust" would be reduced down to "God" and "trust" in one pass by the search engine.

In he following query statement, $all $none $any are boolean search terms or string variables passed to the Select statement from the search form prior to the query2 statement.

Here is the query statement.

$query2 = "
SELECT *,
MATCH(Topic, Subtopic) AGAINST ('$all $none $any' IN BOOLEAN MODE)
FROM View2_ConcordFT
WHERE MATCH(Topic, Subtopic) AGAINST ('$all $none $any' IN BOOLEAN MODE) LIMIT $startrecord, $display";

Thank you in advance for your replies.
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 01:06 AM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.