Changeset 18422


Ignore:
Timestamp:
01/27/09 14:00:11 (12 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

File:
1 edited

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