By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,165 Members | 1,525 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,165 IT Pros & Developers. It's quick & easy.

Text search

P: n/a
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
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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

"simon" <si*********@stud-moderna.si> wrote in message
news:uY*************@TK2MSFTNGP11.phx.gbl...
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

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.