storing a large index; searching it

2 questions:

i need to crawl a large site, and basiclly create a hash like this:

key = url, value = page contents

i later need to search this hash for urls.

i am concerned that if the website im parsing is 2gb, i will run out of memory, not to metion the fact that i dont want to use more then 256 megs of ram.

if i store this hash to disk, i will still need to load it to search it.

is there a solution for this that does not involve interacting with databases?

2nd question:

has anyone here used lucene in the past and comfortable with it?

[598 byte] By [mkoryaka] at [2007-11-26 13:10:45]
# 1
Write the content to disk with a created file name of some sort. Then store the filename as the value.
cotton.ma at 2007-7-7 17:25:26 > top of Java-index,Java Essentials,Java Programming...
# 2
like the hash of the key?! oh that a good idea. ok thanks
mkoryaka at 2007-7-7 17:25:26 > top of Java-index,Java Essentials,Java Programming...