473,804 Members | 2,314 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

NoiseWords and Access DB searches

I've got a catalog (table) of products (records), which will
undoubtedly grow to over 5000 records in months. This is in an Access
2000 mdb file behind an ASP page, and the products have full text
descriptions. I want my customer to easily "search" the database
table with a simple SQL query. I guess I'll use a LIKE operator to
search the field with the product's long description.

Problem: Noise words. i.e. - and, but, it, its, or, the... will
return thousands of records and slow down browsing efficiency.

Has anyone got a good solution to easily eliminate noise words from
submitted text entered into the asp page "search" field?

I was able to find the file noise.enu from the Microsoft Index server
installation. It has about 50 words or so. Would I use a replace()
function to eliminate the words from my sql statement?

I'm sure someone else has come across this.

What would be the BEST and most logical way of using VBscript and ASP
to accept the query string typed and then condition it for
introduction into a "LIKE" statement in an ADO query?

Any better ideas?

Any response would be appreciated.
Jul 22 '05 #1
1 1245
On Thu, 12 May 2005 02:01:54 GMT, MnMs@. wrote:
I've got a catalog (table) of products (records), which will
undoubtedly grow to over 5000 records in months. This is in an Access
2000 mdb file behind an ASP page, and the products have full text
descriptions . I want my customer to easily "search" the database
table with a simple SQL query. I guess I'll use a LIKE operator to
search the field with the product's long description.

Problem: Noise words. i.e. - and, but, it, its, or, the... will
return thousands of records and slow down browsing efficiency.

Has anyone got a good solution to easily eliminate noise words from
submitted text entered into the asp page "search" field?

I was able to find the file noise.enu from the Microsoft Index server
installation . It has about 50 words or so. Would I use a replace()
function to eliminate the words from my sql statement?

I'm sure someone else has come across this.

What would be the BEST and most logical way of using VBscript and ASP
to accept the query string typed and then condition it for
introduction into a "LIKE" statement in an ADO query?

Any better ideas?

Any response would be appreciated.


Just for a reference, in case anyone else searches archives... I found
this ... seems to work!

' ############### ############### ############### ############### ##
' ## ClearNoiseWords ##
' ## Author : Andy Sheel ##
' ## Date : 27/04/04 ##
' ## Licence: Free (GNU) ##
' ## ##
' ############### ############### ############### ############### ##
Function ClearNoiseWords (SearchString)

Dim CleanedString ' String to hold cleaned search terms
Dim searchArray ' Array to hold Search Terms
Dim NoiseArray() ' Array to hold Noise Words
Dim objFSO ' FileSystemObjec t
Dim TS ' TextStreamObjec t
Dim strLine ' local variable to store Line
Dim strFileName ' local variable to store fileName
Dim ArrayPointer, i, j ' int's to hold array pointers
Dim CurRecords

Const ForReading = 1
Const Create = False
ArrayPointer = 0

' Noise Word File
' Change this to where your noise file is.
strFileName = Server.Mappath( "\noise.txt ")

' tokenise search string into array
searchArray = split(SearchStr ing, " ")

' Open Noise Word File
Set objFSO = Server.CreateOb ject("Scripting .FileSystemObje ct")

' use Opentextfile Method to Open the text File
Set TS = objFSO.OpenText File(strFileNam e, ForReading, Create)
If Not TS.AtEndOfStrea m Then
ReDim NoiseArray(0)
Do While Not TS.AtendOfStrea m
strLine = TS.ReadLine

' Read words into an array
CurRecords = uBound(NoiseArr ay)
REDIM PRESERVE NoiseArray(CurR ecords + 1)
NoiseArray(Arra yPointer) = Trim(strLine)

ArrayPointer = ArrayPointer + 1
Loop
End If

' for each search word, compare it with the noise list
' then delete any noise words
For i = 0 to UBound(searchAr ray)
For j = 0 to UBound(NoiseArr ay)
If lcase(searchArr ay(i)) =
lcase(NoiseArra y(j)) Then
searchArray(i) = ""
End If
Next
Next

' make new string without noicse words
For i = 0 to UBound(searchAr ray)
CleanedString = CleanedString & searchArray(i) & " "
Next

' Return Clean String
ClearNoiseWords = Trim(CleanedStr ing)
End Function
Jul 22 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2055
by: Web Science | last post by:
Site and Features: http://www.eigensearch.com Search engine, eigenMethod, eigenvector, mathematical, manifolds, science, technical, search tools, eigenmath, Jacobian, quantum, mechanics, manifolds, science, physics, chemistry, law, legal, government, home, office, business, domain lookup, medical, travel, food, university students, searching, searchers, surfing, advanced search, search tools Chemistry, mathematics, physical sciences,...
1
1478
by: Terry Carroll | last post by:
I have the need to run periodic searches on the US Patent and Trademark Office website, <http://www.uspto.gov/>. I need a Python module to do this. Before I reinvent the wheel, I thought I'd check to see if anyone knew of such a beast. For instance, I'd like to be able to pass an argument like one of these: an/"dis corporation" in/newmar-julie
0
1177
by: Web Science | last post by:
Site and Features: http://www.eigensearch.com Search engine, eigenMethod, eigenvector, mathematical, manifolds, science, technical, search tools, eigenmath, Jacobian, quantum, mechanics, manifolds, science, physics, chemistry, law, legal, government, home, office, business, domain lookup, medical, travel, food, university students, searching, searchers, surfing, advanced search, search tools Chemistry, mathematics, physical sciences,...
39
4418
by: Noticedtrends | last post by:
Can inference search-engines narrow-down the number of often irrelevant results, by using specific keywords; for the purpose of discerning emerging social & business trends? For example, if authors of content subconsciously mention the keywords "lately and noticed" within the same brief sentence, the reader may infer "an unintended message" through the process of "inferential scanning;" a method of noting "semantic anomalies" which may...
1
1258
by: Light Speed | last post by:
Hi, We use Access 2000 forms to edit tables linked from an Oracle 8i database. When searching for records, unless we uncheck the option "Search Fields As Formatted" the searches are impossibly slow. The fields being searched are indexed under Oracle. a) Is there some way we can make this option unchecked by default? b) Is there another method of speeding up the searching function?
1
368
by: Steve T | last post by:
I have just contracted with a firm that is using a front-end web interface to access our sales data. They developed it with Microsoft Dotnet, and it uses Microsoft SQL as the database. When I search test/note fields, they say I have to do a wild card search *word* to pull up any records with "word" in that field. With our previous vendor, and with many other web accessable data bases I search you usually do not need the wild cards,...
8
1674
by: DQ dont quit | last post by:
I'm currently working on a ASP.Net / C# / SQL 2000 project that involves the entering of keywords, that a web user enters, and then searching MSWord documents for those words. This information will then be used to perform weighted searches on the keywords and text of multiple MSWord documents. How might this best be accomplished? Should I perform Full Text Searches on the Word files or store the data in a database (by coping and pasting...
1
3331
Run2Eat
by: Run2Eat | last post by:
i feel like this is a doofus question... but i've created an access form and added a find record button, but when i use the form, the find record button searches the form itself, not the table. all the other buttons work, so i believe the form is linked to the table. how can i get the find record button to search the table, not the form itself?
3
2440
by: 9966 | last post by:
Well previously I've asked a lot of question regarding Travelling Salesman Problem and I got a lot of helpful feedback from here. Thanks again for helping me. Now I've completed the full code. Basically I'm implementing several searches on my code (Brute force, random search and heuristic search). So now I've to do some literature review on other searches that can also be implemented to solve this problem. Well, I'm not experienced in other...
0
9712
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9594
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10595
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10343
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9171
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6862
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5673
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4308
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.