Rob,

If you don't find another command-line search/index tool for lucene,
you may want to look at these - very no-frills, but they do the job
for me. I've used with lucene 1.9-prerelease only.

= Don Gilbert

> Where can I find a command line index browser like lucli for Lucene 1.4? 

http://cvs.sourceforge.net/viewcvs.py/gmod/lucegene/perl/GFF-Adaptor/LuceneIndexer.java
http://cvs.sourceforge.net/viewcvs.py/gmod/lucegene/perl/GFF-Adaptor/LuceneSearcher.java

/**
  LuceneSearcher.java
 
  basic, no-frills Lucene searching class
  reads query or commands from stdin or file
  e.g., called from perl module as in/out pipe

  Command-line options are
    [-index <indexpathname>] = pathname of index (default is 'index')
    [-data <command-input>]  = file to read search commands from, otherwise
          use Standard Input

  For each input line, parse search commands.
  Search command line: 'action [:=] parameters'   
  Actions:
      quit                = done searching (or EOF)
      echo blah blah      = echo input line
      fields a,b,c        = set return field(s), default is "contents"
      find lucene-query   = return matches to query
      library index-path  = open another index to search
      terms field-name    = return dictionary table of field values and counts
      max 100             = maximum returned documents (default is all matches)
      debug               = flip debug flag

  Simple usage:
   (echo t name Don Gilbert; echo i type java author; echo k url [EMAIL 
PROTECTED];\
    echo s contents Don Gilbert, author of LuceGene, LuceneSearcher/Indexer; \
    echo add;\
    echo t name LuceneIndexer; echo i type java class; echo k url 
http://lucene.apache.org/;\
    echo s contents LuceneIndexer is a basic Lucene indexing class; \
    echo add;\
    echo t name LuceGene; echo i type java package; echo k url 
http://www.gmod.org/lucegene/;\
    echo s contents LuceGene is a Genome database search/retrieval tool; \
    echo add;\
   ) | java -cp lib/java:lib/java/lucene.jar LuceneIndexer -create -index 
indices/lucene/test

   (echo 'fields contents,url'; echo 'find type:java'; ) | \
   java -cp lib/java:lib/java/lucene.jar LuceneSearcher -index 
indices/lucene/test
  
  compile: javac -classpath .:$javapath/lucene.jar Lucene*.java
    
  See also LuceneIndexer.java, http://lucene.apache.org/, 
http://www.gmod.org/lucegene/
  Don Gilbert; aug 2005; [EMAIL PROTECTED]
 */

-- d.gilbert--bioinformatics--indiana-u--bloomington-in-47405
-- [EMAIL PROTECTED]://marmot.bio.indiana.edu/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to