|
Wayne, Just thinking this through, it seems you have a customer master file with an associated "search index" file. You parse each "word" in a text string as a seperate entry in your search index. The file gets big because you carry blanks for each index entry you create. Instead of storing the raw text in your search file, consider using Soundex or Metaphone (or other method) to compress your search file. Instead of 20 bytes per entry, soundex would carry four bytes, or six bytes for metaphone. Then to search, you get the soundex of the search string and simply setll/reade to collect all the matches. You get additional benefits by being able to return some misspelled matches. Eric DeLong Sally Beauty Company MIS-Project Manager (BSG) 940-898-7863 or ext. 1863 -----Original Message----- From: rpg news [mailto:rpgnews@xxxxxxxxxx] Sent: Friday, September 10, 2004 7:22 AM To: MIDRANGE-L@xxxxxxxxxxxx Subject: fast search or scan for words in selected field Hi, We currently have customer master file which has customer company name field. Customer company name field is 20 long, if this field has "MY TEST COMPANY" description saved then we have another program which will make three records for this records in our custom file, first records with their customer number and name will have "MY" and second record will have "TEST" and the third record will have "COMPANY". We have to do this for fast search by any description given by customers. Our files are getting huge and want to know if there is another quick way to handel this on green screen. I thank you for your time. Wayne -- This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/midrange-l or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.
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.