Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Simple Text Indexing

by bl0rf (Pilgrim)
on Dec 01, 2003 at 01:00 UTC ( #311150=note: print w/replies, xml ) Need Help??


in reply to Simple Text Indexing

cyocum, It would really help if you explained more
in depth what exactly you need to do. Do you really
need to find the offset of a word or can the users
be content with knowingh which doc the word is in?

Perhaps if you don't have a lot of data you could perform
a regular grep on all the files each time ( perhaps even
outsorce it to a shell command, be careful though...)

My site

Replies are listed 'Best First'.
Re: Re: Simple Text Indexing
by cyocum (Curate) on Dec 01, 2003 at 09:10 UTC

    What I need it to do is not only tell me if a word is in a file but where in that file the word appears. I am a historian. Knowing that a word is in a file is completely useless to me unless I know where in that file it is so that I can read the information myself. With small files, this is not a problem since I can quickly find it but with medium and large size files it is useless. Like I said, I could just use the find feature of my favorite text editor however I would like to be able to search over multiple files since, especally with the annals, I need to know if something shows up in other files. Also, I am on WinXP so shell commands are not exactly an option.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://311150]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2018-07-16 06:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (333 votes). Check out past polls.

    Notices?