public static Document updateDocument( Document doc, IndexingContext context, boolean updateLastModified, ArtifactInfo ai ) { if ( ai == null ) { ai = constructArtifactInfo( doc, context ); if ( ai == null ) { return doc; } } Document document = new Document(); // unique key document.add( new Field( ArtifactInfo.UINFO, ai.getUinfo(), Field.Store.YES, Field.Index.NOT_ANALYZED ) ); if ( updateLastModified || doc.getField( ArtifactInfo.LAST_MODIFIED ) == null ) { document.add( new Field( ArtifactInfo.LAST_MODIFIED, // Long.toString( System.currentTimeMillis() ), Field.Store.YES, Field.Index.NO ) ); } else { document.add( doc.getField( ArtifactInfo.LAST_MODIFIED ) ); } for ( IndexCreator ic : context.getIndexCreators() ) { ic.updateDocument( ai, document ); } return document; }
public static Document updateDocument( Document doc, IndexingContext context, boolean updateLastModified ) { ArtifactInfo ai = constructArtifactInfo( doc, context ); if ( ai == null ) { return doc; } Document document = new Document(); // unique key document.add( new Field( ArtifactInfo.UINFO, ai.getUinfo(), Field.Store.YES, Field.Index.NOT_ANALYZED ) ); if ( updateLastModified || doc.getField( ArtifactInfo.LAST_MODIFIED ) == null ) { document.add( new Field( ArtifactInfo.LAST_MODIFIED, // Long.toString( System.currentTimeMillis() ), Field.Store.YES, Field.Index.NO ) ); } else { document.add( doc.getField( ArtifactInfo.LAST_MODIFIED ) ); } for ( IndexCreator ic : context.getIndexCreators() ) { ic.updateDocument( ai, document ); } return document; }
public static Document updateDocument( Document doc, IndexingContext context, boolean updateLastModified, ArtifactInfo ai ) { if ( ai == null ) { ai = constructArtifactInfo( doc, context ); if ( ai == null ) { return doc; } } Document document = new Document(); // unique key document.add( new Field( ArtifactInfo.UINFO, ai.getUinfo(), Field.Store.YES, Field.Index.NOT_ANALYZED ) ); if ( updateLastModified || doc.getField( ArtifactInfo.LAST_MODIFIED ) == null ) { document.add( new Field( ArtifactInfo.LAST_MODIFIED, // Long.toString( System.currentTimeMillis() ), Field.Store.YES, Field.Index.NO ) ); } else { document.add( doc.getField( ArtifactInfo.LAST_MODIFIED ) ); } for ( IndexCreator ic : context.getIndexCreators() ) { ic.updateDocument( ai, document ); } return document; }
Set<String> refClasses = parseField(searchString, fldValue, d.get(ArtifactInfo.NAMES)); if (!refClasses.isEmpty()) { ArtifactInfo ai = IndexUtils.constructArtifactInfo(d, context); if (ai != null) { ai.repository = context.getRepositoryId();
ArtifactInfo ai = IndexUtils.constructArtifactInfo( doc, context ); if ( ai != null )
ArtifactInfo ai = IndexUtils.constructArtifactInfo( doc, context ); if ( ai != null )
ArtifactInfo info = IndexUtils.constructArtifactInfo( d, this ); rootGroups.add( info.getRootGroup() ); allGroups.add( info.getGroupId() );
ArtifactInfo info = IndexUtils.constructArtifactInfo( d, this ); rootGroups.add( info.getRootGroup() ); allGroups.add( info.getGroupId() );
ArtifactInfo info = IndexUtils.constructArtifactInfo( d, this ); rootGroups.add( info.getRootGroup() ); allGroups.add( info.getGroupId() );
result = IndexUtils.constructArtifactInfo( doc, context );
result = IndexUtils.constructArtifactInfo( doc, context );
result = IndexUtils.constructArtifactInfo( doc, context );
ArtifactInfo artifactInfo = IndexUtils.constructArtifactInfo( doc, context );
ArtifactInfo artifactInfo = IndexUtils.constructArtifactInfo( doc, context );
ArtifactInfo artifactInfo = IndexUtils.constructArtifactInfo( doc, context );
ArtifactInfo artifactInfo = IndexUtils.constructArtifactInfo( doc, context );
ArtifactInfo artifactInfo = IndexUtils.constructArtifactInfo( doc, context );
ArtifactInfo artifactInfo = IndexUtils.constructArtifactInfo( doc, context );