× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: database search question...
  • From: "Hatzenbeler, Tim" <thatzenbeler@xxxxxxxxxxxxx>
  • Date: Thu, 29 Mar 2001 13:19:33 -0800

Title: database search question...

How does ebay do it?  And can the as/400 do it?  Or do I just need a super fast computer with a ton of memory...

The question is this....

I have a product file...  About 20,000 items... And I have end users who want to be able to preform partial word searches on the description field...  Seems simple enough, but the problem is speed...

If I do an rpg program, that reads every line of the product file and does a %scan function... It works, but its not very fast...

I could to an SQL with the  like '%fuzzy%' but even thats slow... and if they gave it a real generic lookup value, it will take forever...


So my question is this, does any one have a suggestion?  My 1st thought is something like this.   Program a word index creator, that  would run nighlty.

Product catalog
item#,description
1234, big red car
1235, little green car

and then a lookup data base, would look like this

search word, part#
---------------------------
big,1234
car,1234
car,1235
green,1235
little,1235
red,1234

and then if someone wanted [little car], it would do a search on [little] and [car] and if both are positive to the same key(item#), then pull that record...

I'm hoping someone could think of a better way...  I'm hoping there is an os/400 database command to solve this problem, so that's why i'm posting it in this list.

If not, the index creator doesn't seem too hard.

Thanks, tim


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.