There is an IndexTableReduce class in the HBase source that you might
want to look at.

Here is a basic example of usage:

                BuildTableIndex bti = new BuildTableIndex();
                JobConf conf = new JobConf(TestBuildLucene.class);
                conf = bti.createJob(conf, 1, 1, "/tmp/lucene-hbase", 
"occurrence",
"raw:CatalogueNo");
                try {
                        JobClient.runJob(conf);
                } catch (IOException e) {
                        e.printStackTrace();
                }
                
                // do a term query
                try {
                        IndexReader reader = 
IndexReader.open("/tmp/lucene-hbase/part-00000");

Cheers,
Tim




On Sat, May 16, 2009 at 10:03 PM, Jamie Johnson <[email protected]> wrote:
> I have seen several pages (most over a year old) which make reference to
> building lucene indexes against hbase, is there any updated documentation
> which can be used to do this, or an old document which is still valid?  I am
> new to the hbase world so any help on this would be greatly appreciated.
>
> Jamie
>

Reply via email to