Changeset 18422

Show
Ignore:
Timestamp:
27.01.2009 14:00:11 (11 years ago)
Author:
kjdon
Message:

lucene uses greenstone ids as its internal ids now, so need to make dummy methods that don't do anything for internalNum2OID

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • greenstone3/trunk/src/java/org/greenstone/gsdl3/service/GS2LuceneSearch.java

    r16482 r18422  
    288288    return query; 
    289289    } 
     290 
     291    /** Lucene no longer uses internal ids. It just uses hash ids. So we need  
     292    to override these methods so no conversion is done. */ 
     293   /** convert indexer internal id to Greenstone oid */ 
     294    protected String internalNum2OID(long docnum) 
     295    { 
     296    return Long.toString(docnum); 
     297     
     298    } 
     299    protected String internalNum2OID(String docnum) 
     300    { 
     301    return docnum; 
     302     
     303    } 
     304 
    290305}