Site Announcements

View the results of the New Wave Outpost 20th Anniversary Top Songs Poll here:
http://www.nwoutpost.com/poll/results


Coming Soon: Top Albums Poll. Stay tuned!

Welcome to the new forum!
If you are a previously registered user, you must do the following:

1) Click on 'I forgot my password' at the login prompt
2) Enter your username and email you registered with and submit
3) You will receive an email with an activation link. Please click it and then log in using the random password provided
4) Go to your User Control Panel and click on the Profile tab
5) Click on 'Edit Account Settings' and enter your new password twice followed by the random password provided earlier. Click Submit.
6) That's it...you're back in! You may have to log in again with your new password.


If you forgot your email address, please email me (MikeP) at: mikepaulsen12@gmail.com

Note: you must now use bb code buttons in the Post form for embedded images, YouTube videos, etc.
For example, to post embedded YouTube videos: paste in the link (e.g., http://www.youtube.com/watch?XYZ1234567), highlight it and then click the YouTube button.

Forum: Full-text search apparently broken

New Wave/Punk music, culture, genres, memories. '80s revivalism and other relevant topics.

Forum: Full-text search apparently broken

Postby daydreamer » Fri Jun 26, 2009 3:34 am

Hi,

first of all: we should really have a forum for board feedback issues instead of having these issues scattered all over the forums. (And yes they are: a quick skim-through brought up at least 4 forums with forum issues posted to them)

But now to the actual issue:

full-text search is definitely broken.
To prove this, I have a test case.

1. http://www.nwoutpost.com/forum/search.asp

2. Search for: "investigate" (without quotes)
3. Select "Search for all words"
4. Select Search Forum: "Next Wave"
5. Search In: Entire Message
6. Search By Date: Any Date
7. Search By Member: MikeP

Well, this is interesting. Because if you do everything as described, you will get one post as a result:

http://www.nwoutpost.com/forum/topic.as ... nvestigate

However, the above testcase should output all posts in "Next Wave" in which our trusty administrator said "investigate". (Dunno if there are some at all!)

"investigate" is mentioned in this thread by Spaz, not by MikeP, so the SQL string seems to have an issue because it does not correctly incorporate the username into the query...(or even not at all)

Thought I'd report this here so that more people get a grip why their full-text searches fail (nearly always)
daydreamer
Take On Me
 
Posts: 130
Joined: Tue May 26, 2009 3:31 am
Location:

Postby MikeP » Wed Jul 01, 2009 9:32 am

Thanks for the pointer Daydreamer. I modified the search form based on a simplified & improved mod that I found. I also cleaned up the search code so that it will allow for quotes when doing an exact phrase search (which I'm conditioned to doing myself).

It will still tend to fail or return no results when you search on "Any Date" or "All Forums" instead of narrowing it down. Ideally, a start and end date picker would even be better but that would be custom coding on my part.

Try it out again and let me know if this is any better/faster.
User avatar
MikeP
President Am I
 
Posts: 1488
Joined: Sun May 19, 2002 6:00 pm
Location: USA


Return to General New Wave & '80s Discussions

Who is online

Users browsing this forum: No registered users and 2 guests