Changeset 18132

Show
Ignore:
Timestamp:
08.12.2008 10:16:47 (11 years ago)
Author:
kjdon
Message:

we don't want to store the ZZ field again for sorting

Files:
1 modified

Legend:

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

    r18102 r18132  
    303303        { 
    304304            current_doc_.add(new Field(qName, current_contents_, Field.Store.NO, Field.Index.TOKENIZED, Field.TermVector.YES)); 
    305             // We only need the term vector for the TX field 
    306             if (!qName.equals("TX")) 
     305            // The byXX fields are used for sorting search results 
     306            // We don't want to do that for Text or AllFields fields 
     307            // They need to be untokenised for sorting 
     308            if (!qName.equals("TX") && !qName.equals("ZZ")) 
    307309            { 
    308310                current_doc_.add(new Field("by" + qName, current_contents_, Field.Store.NO, Field.Index.UN_TOKENIZED, Field.TermVector.NO));