Re: using lucene to search in a 1 huge file. (aka grep -n)

2004-03-06 Thread Erik Hatcher
On Mar 6, 2004, at 1:17 AM, prasen wrote: Any tutorial/samples on how to use indices, and use them in your search ? Sure, tons. See the articles/resources section of the Lucene website. Otis has written several. I've written a few articles at java.net on Lucene. And there are a handful of

using lucene to search in a 1 huge file. (aka grep -n)

2004-03-05 Thread prasen
Hi guys, I am relatively new to Lucene. Can lucene be used to speed-up search for a string in one huge file( ~ TerraBytes ) based on its libe numbers. Something like grep -n pattern filename where the indexing will be done only on one file and based on either line-numbers/blocks. prasen

Re: using lucene to search in a 1 huge file. (aka grep -n)

2004-03-05 Thread Otis Gospodnetic
In order for this to make sense, you would have to split your huge file into either lines or blocks, whichever you want to be your indexing and search/hit unit, and convert those to Lucene Documents, which you would then index. Searching would then return the line/block where matches are found.

Re: using lucene to search in a 1 huge file. (aka grep -n)

2004-03-05 Thread prasen
Any tutorial/samples on how to use indices, and use them in your search ? thanks-n-appreciate a lot, prasen Otis Gospodnetic wrote: In order for this to make sense, you would have to split your huge file into either lines or blocks, whichever you want to be your indexing and search/hit unit,