Wrox Programmer Forums
|
Forum and Wrox.com Feedback Post your suggestions for improving the Forums or Wrox.com or questions for the staff here. "Where can I find the code for my book?"
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Forum and Wrox.com Feedback section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old July 28th, 2004, 05:17 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default Search Buggy?

Hi there,

How exactly (or roughly) does the search engine work? I think before the new look you could search for about anything you liked. I think the search was implemented as something like (no pun intended) this:

WHERE Body LIKE '%' + searchField + '%'

However, this no longer seems to be the case. I am sure there is a post that deals with window.mm_menu_1120161301_0 (for Dreamweaver menus), but I can no longer find it. Even with mm_menu the relevant posts no longer show up.

Is this a bug? A change in functionality? Right now I use Google to search P2P, but that's not very convenient.

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
  #2 (permalink)  
Old July 28th, 2004, 07:06 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Yes Imar,

I too have reported on that a few times in my feedback in the other thread, Error in wrox search Page, sometime back, but not sure if something is happening on that.

As you said, that search engine before the site revamp was really searching everything I gave(even if I am lost;)), it wasn't buggy at all.

Cheers!

_________________________
- Vijay G
Strive for Perfection
  #3 (permalink)  
Old July 28th, 2004, 09:20 PM
Friend of Wrox
 
Join Date: May 2003
Posts: 202
Thanks: 0
Thanked 1 Time in 1 Post
Default

The search was changed to use full-text indexing about a week after the site redesign. The previous search did use the "... LIKE '%...%'" method but was becoming far too slow (and too intensive on the server - making all of P2P slow). The search now uses "contains(...)" The advantage is that the search completes in seconds, rather than sometimes timing out after a minute.

The side-effect is that the full-text search breaks words on non-letter/number characters. The search function has to filter out common "noise" words (a, and, or, etc.) and characters that break the search (this is what happygv was seeing when searching for things that contained characters like <, /, etc.).

The underscore in your search is probably being filtered strangely. I'll look into it to see if there's a work-around.

What I really need is the "official" list of characters that are allowed as a search phrase for the contains() statement in SQL Server.

Bruce Luckcuck
Director, Applications & Support Services
Wiley Publishing, Inc.
  #4 (permalink)  
Old July 29th, 2004, 08:47 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Sounds like a question for the SQL Server forum :)

Hal Levy
Web Developer, PDI Inc.

NOT a Wiley/Wrox Employee
  #5 (permalink)  
Old July 29th, 2004, 02:00 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Right, I see. That makes a lot of sense.

Don't know the complete list either. Maybe you can search the archives for it ;)

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Lazy Days by Robbie Williams (Track 1 from the album: Life Thru a Lens) What's This?





Similar Threads
Thread Thread Starter Forum Replies Last Post
File Search / Indexing Search with .net 2.0 maulik77 ASP.NET 1.0 and 1.1 Basics 2 March 15th, 2007 12:45 AM
Buggy and Faulty code in Vb sun21170 BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 September 18th, 2006 08:59 PM
Search engine that search through local drive! wenzation Classic ASP Basics 0 August 26th, 2003 09:15 PM
buggy event firing in ActiveX controls pgtips Pro VB 6 6 July 10th, 2003 02:38 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.