Changeset 18102

Show
Ignore:
Timestamp:
05.12.2008 14:16:50 (11 years ago)
Author:
mdewsnip
Message:

I have no idea why the "nodeID", "docOID" and "byXX" fields were changed to be tokenised, because this breaks the sorting (and probably other functionality).

Files:
1 modified

Legend:

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

    r17804 r18102  
    271271        String node_id = atts.getValue("gs2:id"); 
    272272        print(" " + qName + ": " + node_id ); 
    273         current_doc_.add(new Field("nodeID", node_id, Field.Store.YES, Field.Index.TOKENIZED)); 
     273        current_doc_.add(new Field("nodeID", node_id, Field.Store.YES, Field.Index.UN_TOKENIZED)); 
    274274 
    275275        current_doc_oid_ = atts.getValue("gs2:docOID"); 
    276         current_doc_.add(new Field("docOID", current_doc_oid_, Field.Store.YES, Field.Index.TOKENIZED)); 
     276        current_doc_.add(new Field("docOID", current_doc_oid_, Field.Store.YES, Field.Index.UN_TOKENIZED)); 
    277277        } 
    278278 
     
    306306            if (!qName.equals("TX")) 
    307307            { 
    308                 current_doc_.add(new Field("by" + qName, current_contents_, Field.Store.NO, Field.Index.TOKENIZED, Field.TermVector.NO)); 
     308                current_doc_.add(new Field("by" + qName, current_contents_, Field.Store.NO, Field.Index.UN_TOKENIZED, Field.TermVector.NO)); 
    309309            } 
    310310