Changeset 16437

Show
Ignore:
Timestamp:
16.07.2008 17:08:44 (11 years ago)
Author:
mdewsnip
Message:

Now stores the new "docOID" value in the index, to help support incremental building.

Files:
1 modified

Legend:

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

    r16432 r16437  
    261261        pushOnStack(); // start new doc 
    262262        current_node_ = qName; 
     263 
    263264        String node_id = atts.getValue("gs2:id"); 
    264  
    265265        print(" " + qName + ": " + node_id ); 
    266266        current_doc_.add(new Field("nodeID", node_id, Field.Store.YES, Field.Index.UN_TOKENIZED)); 
     267 
     268        String current_doc_oid_ = atts.getValue("gs2:docOID"); 
     269        current_doc_.add(new Field("docOID", current_doc_oid_, Field.Store.YES, Field.Index.UN_TOKENIZED)); 
    267270        } 
    268271