public static Document updateDocument( Document doc, IndexingContext context, boolean updateLastModified ) { return updateDocument( doc, context, updateLastModified, null ); }
public static Document updateDocument( Document doc, IndexingContext context ) { return updateDocument( doc, context, true ); }
public static Document updateDocument( Document doc, IndexingContext context ) { return updateDocument( doc, context, true ); }
public static Document updateDocument( Document doc, IndexingContext context ) { return updateDocument( doc, context, true ); }
public static Document updateDocument( Document doc, IndexingContext context, boolean updateLastModified ) { return updateDocument( doc, context, updateLastModified, null ); }
while ( ( doc = readDocument() ) != null ) visitor.visitDocument( IndexUtils.updateDocument( doc, context, false ) );
while ( ( doc = readDocument() ) != null ) visitor.visitDocument( IndexUtils.updateDocument( doc, context, false ) );
while ( ( doc = readDocument() ) != null ) visitor.visitDocument( IndexUtils.updateDocument( doc, context, false ) );
public IndexDataReadResult readIndex( IndexWriter w, IndexingContext context ) throws IOException { long timestamp = readHeader(); Date date = null; if ( timestamp != -1 ) { date = new Date( timestamp ); IndexUtils.updateTimestamp( w.getDirectory(), date ); } int n = 0; Document doc; while ( ( doc = readDocument() ) != null ) { w.addDocument( IndexUtils.updateDocument( doc, context, false ) ); n++; } w.commit(); w.forceMerge(1); w.commit(); IndexDataReadResult result = new IndexDataReadResult(); result.setDocumentCount( n ); result.setTimestamp( date ); return result; }
if ( ai != null ) w.addDocument( IndexUtils.updateDocument( doc, context, false, ai ) );
if ( ai != null ) w.addDocument( IndexUtils.updateDocument( doc, context, false, ai ) );
if ( collector.getTotalHits() == 0 ) w.addDocument( IndexUtils.updateDocument( d, this, false ) );
if ( collector.getTotalHits() == 0 ) w.addDocument( IndexUtils.updateDocument( d, this, false ) );
if ( collector.getTotalHits() == 0 ) w.addDocument( IndexUtils.updateDocument( d, this, false ) );