ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 31st, 2002, 11:19 PM
Dion Dion is offline
Disgruntled Netscape User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2001
Location: Whangarei, New Zealand
Posts: 81 Dion User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 27 m 24 sec
Reputation Power: 8
Question ASP / IIS Search

Hey guys,

I'm new to ASP, and am trying to code a search engine using Indexing Server (Win2k ver.).

I've been reasonably successful, but have a couple of problems:

1. DAMNED NOISE WORDS!
I get the old "The query contained only ignored words." error every now and then. What is the best way around this? Can you / should you filter out noise words from user inputted text, and if so, how?

2. UNEXPECTED SEARCH RESULTS
The code I'm using for matching an exact string is:

SELECT DocTitle, VPath, Path, Filename, Rank FROM SCOPE('DEEP TRAVERSAL OF "c:\inetpub\wwwroot\"') WHERE ((CONTAINS('"my string"')) AND ((Path NOT LIKE '%\_vti%') AND (Path NOT LIKE '%\_private%') AND (Filename NOT LIKE 'search.asp'))) ORDER BY Rank DESC

However, I get results returned with just the word string in the document, not the exact phrase. Where am I going wrong?

Any help anyone could provide would be VERY much appreciated.

Cheers guys.

Reply With Quote
  #2  
Old October 26th, 2003, 03:05 AM
chuachongchee chuachongchee is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 57 chuachongchee User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
how bout trying this first:

1) user "SELECT * FROM SCOPE WHERE VARIABLE ='<String type>'"
2) then use a filter
ObjRS.Filter="<what you dont want>"


this makes the SQL statment easiler to debug and u can check which syntax/part is giving u those logical errors...


Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > ASP / IIS Search


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway