473,499 Members | 1,510 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

create indexing table to search database?

Hi All,

I was thinking of creating a table in my database to index all words in
the database.
That way I can quickly search for one or more words and the index table
will return the
words and records I need.

For example the iTable would look like this:

iID = autonum field
iSourceTable = text field
iSourceRec = numeric field
iWord = text field

Whenever a new record is added the iTable gets filled with all the
words from text and memo fields
in that new record, so for example:

iID = 1
iSourceTable = B (meaning Biographies)
iSourceRec = 102 (record number in Biographies)
iWord = "Male"

and so on for all words.

Then when I want to search for example for the word HOBBY, the iTable
will get all
records containing iSourceTable = "B" and iWord = "HOBBY".

Does this make any sense or should I do this in another way?

Regards
MArco

Aug 1 '06 #1
3 2763
vo***********@gmail.com wrote:
Hi All,

I was thinking of creating a table in my database to index all words in
the database.
That way I can quickly search for one or more words and the index table
will return the
words and records I need.

For example the iTable would look like this:

iID = autonum field
iSourceTable = text field
iSourceRec = numeric field
iWord = text field

Whenever a new record is added the iTable gets filled with all the
words from text and memo fields
in that new record, so for example:

iID = 1
iSourceTable = B (meaning Biographies)
iSourceRec = 102 (record number in Biographies)
iWord = "Male"

and so on for all words.

Then when I want to search for example for the word HOBBY, the iTable
will get all
records containing iSourceTable = "B" and iWord = "HOBBY".

Does this make any sense or should I do this in another way?
It might make sense if there is some good reason for wanting to know
which words are in all fields. It might also be a big table.
I'd be inclined to add the words to a word table, have a table, field
table and a linking table. If you messed for a while you could probably
grab all the words from one of the MS Lexicon collections, if by
nothing else, brute force and auto-spell.
Suppose the first word is "Aardvark" and the first Table, Field record
is "Birds", "BirdName" and the first record of that table contains
Aardvark in the Birdname field. Then the linking table would contain
it's own id (1), the id of the Table and Record, in this case 1, and
the id of the word, in this case also 1 and the record number, in this
case 1 as well.
Of course, not everyone would have aardvark in a birds table.
We could use these tables and joins to find out a great deal about your
field values, but not about "near". On the other hand if you included a
position, say 23, then you would have something like a zip file, and
you wouldn't need your original tables at all.
Do you think this is getting ridiculous? Possibly you are right.

On the other hand I have never had to do this because if I want to
search on words contained or near, I store my data in word or text or
pdf documents and use indexing service, which has a built in utility
for searches such a aardvark near "earth pig"/ or young not sexy; the
power of indexing service (once learned) is truly amazing.

Aug 1 '06 #2
In article <11*********************@s13g2000cwa.googlegroups. com>,
vo***********@gmail.com says...
Hi All,

I was thinking of creating a table in my database to index all words in
the database.
That way I can quickly search for one or more words and the index table
will return the
words and records I need.

For example the iTable would look like this:

iID = autonum field
iSourceTable = text field
iSourceRec = numeric field
iWord = text field

Whenever a new record is added the iTable gets filled with all the
words from text and memo fields
in that new record, so for example:

iID = 1
iSourceTable = B (meaning Biographies)
iSourceRec = 102 (record number in Biographies)
iWord = "Male"

and so on for all words.

Then when I want to search for example for the word HOBBY, the iTable
will get all
records containing iSourceTable = "B" and iWord = "HOBBY".

Does this make any sense or should I do this in another way?

Regards
MArco

There is a routine by Ken Sheridan in another newsgroup for indexing
words. I used it on a memo field in an obituary database of 4,000
records. Some of these records are very short, a few sentences, and
others are hundreds of words long. This is a small database. Only
indexing words of 4 characters or more, I ended up with about 250,000
words. Searching based on the keyword list is indeed very fast,
however, not hardly noticeably faster than a wildcard search on these
few records. I had the cabability of searching keywords and fuzzy
(wildcard) searching, but dropped the keyword search as unneeded.
Danny Lesandrini offered a routine called Simple Search to search all
text fields in a record. It finds records in the database with, for
example, "Marco" in any field. I am asked, does the name Marco appearing
anywhere in this church record database? Simple Search tells me.
Just some thoughts.

Mike Gramelspacher
Aug 1 '06 #3
Mike,

please where can I find this post from Sheridan?

Marco

Mike Gramelspacher schreef:
In article <11*********************@s13g2000cwa.googlegroups. com>,
vo***********@gmail.com says...
Hi All,

I was thinking of creating a table in my database to index all words in
the database.
That way I can quickly search for one or more words and the index table
will return the
words and records I need.

For example the iTable would look like this:

iID = autonum field
iSourceTable = text field
iSourceRec = numeric field
iWord = text field

Whenever a new record is added the iTable gets filled with all the
words from text and memo fields
in that new record, so for example:

iID = 1
iSourceTable = B (meaning Biographies)
iSourceRec = 102 (record number in Biographies)
iWord = "Male"

and so on for all words.

Then when I want to search for example for the word HOBBY, the iTable
will get all
records containing iSourceTable = "B" and iWord = "HOBBY".

Does this make any sense or should I do this in another way?

Regards
MArco
There is a routine by Ken Sheridan in another newsgroup for indexing
words. I used it on a memo field in an obituary database of 4,000
records. Some of these records are very short, a few sentences, and
others are hundreds of words long. This is a small database. Only
indexing words of 4 characters or more, I ended up with about 250,000
words. Searching based on the keyword list is indeed very fast,
however, not hardly noticeably faster than a wildcard search on these
few records. I had the cabability of searching keywords and fuzzy
(wildcard) searching, but dropped the keyword search as unneeded.
Danny Lesandrini offered a routine called Simple Search to search all
text fields in a record. It finds records in the database with, for
example, "Marco" in any field. I am asked, does the name Marco appearing
anywhere in this church record database? Simple Search tells me.
Just some thoughts.

Mike Gramelspacher
Aug 2 '06 #4

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

Similar topics

3
4306
by: sandrina | last post by:
Hello everyone, My name is Debi and I am an Administrative assistant with a large company in their sourcing department. I was hired one month ago, and walked in to a HUGE filing nightmare. My...
2
22084
by: Maverick | last post by:
If i try to create foxpro table by the following "sql" statment, the C# compiler will only return an error "xxxx not support in non-dbc version". The "index on" command statement return some kind...
2
1831
by: Jonathan Raemdonck | last post by:
I have the following situation: I'm developing an reverse geocoder, so input is lat/lon coordinate and output is the nearest textual location. I have a database of +- 2 000 000 records that...
1
2696
by: Byron | last post by:
Hey, I'm fussing around with a first attempt at using IIS6's indexing service for a web site search page. The trouble is, my site, while not using a database, is largely dynamic, with much of...
0
4198
by: Chung Leong | last post by:
Here's a short tutorial on how to the OLE-DB extension to access Windows Indexing Service. Impress your office-mates with a powerful full-text search feature on your intranet. It's easier than you...
4
3248
by: Owen Jenkins | last post by:
Hi, No-one replied to this when I sent it last week. Any bites out there today?? ----- My application allows users to create a new back end for separate purposes. It does this by using Make...
8
2406
by: ash | last post by:
i'm using the indexing service and CreateRecordSet("nonsequential") in asp.......and i cant retrieve the record although the keywords is matched. Does anybody know how to solve it? thx
4
2050
by: Amar | last post by:
Hi All, I need to select data from a database table containing huge amount of data. Now I am storing data using one primary key and I am just using simple select statement, and this process...
15
5236
by: lxyone | last post by:
Using a flat file containing table names, fields, values whats the best way of creating html pages? I want control over the html pages ie 1. layout 2. what data to show 3. what controls to...
0
7130
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,...
0
7007
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...
0
7171
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,...
1
6893
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5468
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,...
1
4918
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4599
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...
1
664
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
295
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...

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.