Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: Simple Text Indexing

by bl0rf (Pilgrim)
on Dec 01, 2003 at 01:00 UTC ( [id://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?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://311150]
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (6)
As of 2024-04-21 15:31 GMT
Find Nodes?
    Voting Booth?

    No recent polls found