× 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: Re: How does ebay do it?
  • From: "James W. Kilgore" <eMail@xxxxxxxxxxxxxxxxxxx>
  • Date: Fri, 30 Mar 2001 12:07:41 -0800
  • Organization: Progressive Data Systems, Inc.

Tim,

If you want a working example I'll post it at Netshare400 this weekend.

The program comes in two flavors: 1) a first time batch run to build the
index  2) a maintenance program (called via your trigger) to keep the
index up to date.

If not, here's some of the issues and design considerations we had to
address:

1) mixed case text

What we did was define a file translation table which automatically
translated the characters to upper case for output to the index.  IMHO,
letting the system do this is at the buffer level is faster than using
XLATE.

2) word delimiter

In the same translation table above, we translate special characters
into blanks, we use a blank as a word delimiter.

3) How big to make the keyword

We decided to use only the first 8 characters of a word.  Why 8?  This
was originally written for the S/34 and 8 + key = optimized record
length.  Doesn't really matter any more, but it works.

4) Reducing the size of the index by omitting common words like: the,
and, Inc, of

This was included because of the programs roots and disk space was at a
premium.  Doesn't really matter much any more.  Depending upon your
database it may still make sense.

5) In using the file translation table, beware of packed fields

Create a logical that only includes the fields to be indexed and process
this file.

HTH



> "Hatzenbeler, Tim" wrote:
> 
<<snip>>
> 
> but in the mean time, i'll work on my index program... and as we
> upgrade our system, i'll replace it with newer database features.
>
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.