Text search

  • Thread starter Thread starter simon
  • Start date Start date
S

simon

hi,

I have the directory with files with doc or txt or similar extensions.
Now I would like to create a text search (something similar like find text
ALT+F7 in windows commander):

user inputs the word into the text box and on button click, I search all the
files in directory if the user word exists in some file.
Then I show the user file names, which include that word.

Does anybody know how to create the text search that would be fast enough?
Any example?

Thank you,
Simon
 
Hi Simon,
I think that you would either have to open each file in the directory and
read it which is probably too slow or find out where all the bits of the
file are saved on the disk and search through the data in binary format.

I did some work for a solicitor some time back. They were using a commercial
product (I can't recall the name) that did allow you to search for strings
or words or even words that were close to each other.
But the way it worked was to catalogue the words within the document into
some sort of proprietory database. It then searched the database and then
returned the document.

It took quite some time to catalog the documents, several hours but you
could append documents to the catalogue.

Doug
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top