Changeset 18472

Show
Ignore:
Timestamp:
06.02.2009 22:42:01 (11 years ago)
Author:
davidb
Message:

Changed from using "reindex" to "update"

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • indexers/trunk/lucene-gs/src/org/greenstone/LuceneWrapper/GS2LuceneIndexer.java

    r18464 r18472  
    224224    public void index (String file_id, File file)  
    225225    { 
    226         mode_ = "index"; 
     226        mode_ = "add"; 
    227227        file_id_ = file_id; 
    228228        path_ = ""; 
     
    242242    public void index (String xml_text)  
    243243    { 
    244         mode_ = "index"; 
     244        mode_ = "add"; 
    245245        file_id_ = "<xml doc on stdin>"; 
    246246        path_ = ""; 
     
    354354        } 
    355355        } 
    356         else if (mode_.equals("index") || mode_.equals("reindex")) { 
     356        else if (mode_.equals("add") || mode_.equals("update")) { 
    357357        if (qName.equals(indexable_current_node_)) 
    358358            { 
     
    372372            try { 
    373373            // perhaps this is more efficient if addDocument() 
    374             // used for "index" and updateDocument() for reindex 
     374            // used for "add" and updateDocument() for "update" 
    375375            writer_.updateDocument(new Term("docOID", current_doc_oid_), current_doc_, analyzer_); 
    376376            }