Skip to content

Commit

Permalink
[SHIBUI-660]
Browse files Browse the repository at this point in the history
Added some comments for future Bill.
  • Loading branch information
Bill Smith committed Jul 31, 2018
1 parent 1462367 commit e6f5566
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,12 @@ private void updateLucene(MetadataResolver resolver) throws ComponentInitializat
}
*/

// if document exists
// indexWriter.updateDocument(term, document) <-- what's the term?
// else, create...
Document document = new Document();
document.add(new StringField("id", resolver.getResourceId(), Field.Store.YES));

try {
indexWriter.addDocument(document);
} catch (IOException e) {
Expand Down

0 comments on commit e6f5566

Please sign in to comment.