| Modifier and Type | Field and Description |
|---|---|
| private final BibDatabaseContext | |
| private final FilePreferences | |
| private final @Nullable org. | |
| pack-priv @Nullable org. | |
| private static final Logger | |
| private org. |
| Access | Constructor and Description |
|---|---|
| private | PdfIndexer(BibDatabaseContext databaseContext, org.
|
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | addToIndex(BibEntry
a bibtex entry to link the pdf files to entry)Adds all PDF files linked to one entry in the database to an existing (or new) Lucene search index |
| private void | |
| public void | addToIndex(BibEntry
a bibtex entry to link the pdf files to entry, Collection<LinkedFile> linkedFiles)Adds a list of pdf files linked to one entry in the database to an existing (or new) Lucene search index |
| public void | |
| public void | addToIndex(BibEntry
the entry associated with the file entry, LinkedFile the file to write to the index linkedFile)Writes the file to the index if the file is not yet in the index or the file on the fs is newer than the one in the index. |
| private void | |
| public void | |
| public void | |
| private void | |
| pack-priv Optional | |
| public Set | Returns: all file pathsLists the paths of all the files that are stored in the index |
| private void | |
| public static PdfIndexer | of(BibDatabaseContext databaseContext, Path indexDirectory, FilePreferences filePreferences)
Method is public, because DatabaseSearcherWithBibFilesTest resides in another package |
| public static PdfIndexer | of(BibDatabaseContext databaseContext, FilePreferences filePreferences)
Method is public, because DatabaseSearcherWithBibFilesTest resides in another package |
| public void | |
| public void | removeFromIndex(String
the path to the file to be removed linkedFilePath)Removes a pdf file identified by its path from the index |
| public void | removeFromIndex(BibEntry
the entry documents are linked to entry)Removes all files linked to a bib-entry from the index |
| public void | removeFromIndex(Collection<LinkedFile> linkedFiles)
Removes a list of files linked to a bib-entry from the index |
| public void |
| databaseContext | back to summary |
|---|---|
| private final BibDatabaseContext databaseContext | |
| filePreferences | back to summary |
|---|---|
| private final FilePreferences filePreferences | |
| indexDirectory | back to summary |
|---|---|
| private final @Nullable org. | |
| indexWriter | back to summary |
|---|---|
| pack-priv @Nullable org. | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| reader | back to summary |
|---|---|
| private org. | |
| PdfIndexer | back to summary |
|---|---|
| private PdfIndexer(BibDatabaseContext databaseContext, org. | |
| addToIndex | back to summary |
|---|---|
| public void addToIndex(List<BibEntry> entries) | |
| addToIndex | back to summary |
|---|---|
| public void addToIndex(BibEntry entry) Adds all PDF files linked to one entry in the database to an existing (or new) Lucene search index
| |
| addToIndex | back to summary |
|---|---|
| private void addToIndex(BibEntry entry, boolean shouldCommit) | |
| addToIndex | back to summary |
|---|---|
| public void addToIndex(BibEntry entry, Collection<LinkedFile> linkedFiles) Adds a list of pdf files linked to one entry in the database to an existing (or new) Lucene search index
| |
| addToIndex | back to summary |
|---|---|
| public void addToIndex(BibEntry entry, Collection<LinkedFile> linkedFiles, boolean shouldCommit) | |
| addToIndex | back to summary |
|---|---|
| public void addToIndex(BibEntry entry, LinkedFile linkedFile) Writes the file to the index if the file is not yet in the index or the file on the fs is newer than the one in the index.
| |
| addToIndex | back to summary |
|---|---|
| private void addToIndex(BibEntry entry, LinkedFile linkedFile, boolean shouldCommit) | |
| close | back to summary |
|---|---|
| public void close() throws IOException | |
| createIndex | back to summary |
|---|---|
| public void createIndex() Creates (and thus resets) the PDF index. No re-indexing will be done. Any previous state of the Lucene search is deleted. | |
| doCommit | back to summary |
|---|---|
| private void doCommit() | |
| getIndexWriter | back to summary |
|---|---|
| pack-priv Optional Needs to be accessed by | |
| getListOfFilePaths | back to summary |
|---|---|
| public Set Lists the paths of all the files that are stored in the index | |
| initializeIndexWriterAndReader | back to summary |
|---|---|
| private void initializeIndexWriterAndReader(org. | |
| of | back to summary |
|---|---|
| public static PdfIndexer of(BibDatabaseContext databaseContext, Path indexDirectory, FilePreferences filePreferences) throws IOException Method is public, because DatabaseSearcherWithBibFilesTest resides in another package
| |
| of | back to summary |
|---|---|
| public static PdfIndexer of(BibDatabaseContext databaseContext, FilePreferences filePreferences) throws IOException Method is public, because DatabaseSearcherWithBibFilesTest resides in another package | |
| rebuildIndex | back to summary |
|---|---|
| public void rebuildIndex() Rebuilds the PDF index. All PDF files linked to entries in the database will be re-indexed. | |
| removeFromIndex | back to summary |
|---|---|
| public void removeFromIndex(String linkedFilePath) Removes a pdf file identified by its path from the index
| |
| removeFromIndex | back to summary |
|---|---|
| public void removeFromIndex(BibEntry entry) Removes all files linked to a bib-entry from the index
| |
| removeFromIndex | back to summary |
|---|---|
| public void removeFromIndex(Collection<LinkedFile> linkedFiles) Removes a list of files linked to a bib-entry from the index | |
| removePathsFromIndex | back to summary |
|---|---|
| public void removePathsFromIndex(Collection<String> linkedFiles) | |