gov.nasa.pds.search.core.indexer.pds
Class Indexer

java.lang.Object
  extended by gov.nasa.pds.search.core.indexer.pds.Indexer

public class Indexer
extends Object

This class creates a lucene index for text search.

Version:
$Revision: 11753 $
Author:
pramirez

Constructor Summary
Indexer()
           
 
Method Summary
static void indexDocs(org.apache.lucene.index.IndexWriter writer, File file, Properties weights)
          Creates an lucene indexed DOM document
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Indexer

public Indexer()
Method Detail

main

public static void main(String[] args)
                 throws IOException
Throws:
IOException

indexDocs

public static void indexDocs(org.apache.lucene.index.IndexWriter writer,
                             File file,
                             Properties weights)
                      throws IOException
Creates an lucene indexed DOM document

Parameters:
writer - - IndexWriter object for indexing of data using lucene algorithm
file - - File object that will be used for index
weights - - properties for weighting the indexed values
Throws:
IOException


Copyright © 2010-2013 Planetary Data System. All Rights Reserved.