Changeset 16437


Ignore:
Timestamp:
2008-07-16T17:08:44+12:00 (13 years ago)
Author:
mdewsnip
Message:

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

File:
1 edited

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
Note: See TracChangeset for help on using the changeset viewer.