| Modifier and Type | Field and Description |
|---|---|
| private final InMemorySearchBackend | |
| private final LinkedFilesIndexManager |
| Access | Constructor and Description |
|---|---|
| public | InMemoryLuceneSearchBackend(BibDatabaseContext databaseContext, BibEntryPreferences bibEntryPreferences, FilePreferences filePreferences, TaskExecutor taskExecutor)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | addToIndex(List<BibEntry> entries)
Implements org. Indexing lifecycle. |
| public void | close()
Implements org. Release backend resources (DB connections, Lucene index handles, …). |
| private static SearchQuery | |
| public boolean | isEntryMatched(BibEntry entry, SearchQuery query)
Implements org. Test a single entry against the query without re-running a full library search. |
| public void | rebuildFullTextIndex()
Implements org. Re-index linked-file fulltext from scratch. |
| public void | removeFromIndex(List<BibEntry> entries)
Implements org.
|
| public SearchResults | search(SearchQuery query)
Implements org. Run the query against this backend. |
| public void |
| inMemorySearchBackend | back to summary |
|---|---|
| private final InMemorySearchBackend inMemorySearchBackend | |
| linkedFilesIndexManager | back to summary |
|---|---|
| private final LinkedFilesIndexManager linkedFilesIndexManager | |
| InMemoryLuceneSearchBackend | back to summary |
|---|---|
| public InMemoryLuceneSearchBackend(BibDatabaseContext databaseContext, BibEntryPreferences bibEntryPreferences, FilePreferences filePreferences, TaskExecutor taskExecutor) | |
| addToIndex | back to summary |
|---|---|
| public void addToIndex(List<BibEntry> entries) Implements org. Doc from org. Indexing lifecycle. Backends without an index (e.g. in-memory) implement these as no-ops.
| |
| close | back to summary |
|---|---|
| public void close() Implements org. Doc from org. Release backend resources (DB connections, Lucene index handles, …). Idempotent.
| |
| createMetadataQuery | back to summary |
|---|---|
| private static SearchQuery createMetadataQuery(SearchQuery query) | |
| isEntryMatched | back to summary |
|---|---|
| public boolean isEntryMatched(BibEntry entry, SearchQuery query) Implements org. Doc from org. Test a single entry against the query without re-running a full library search.
| |
| rebuildFullTextIndex | back to summary |
|---|---|
| public void rebuildFullTextIndex() Implements org. Doc from org. Re-index linked-file fulltext from scratch. Backends without a fulltext index implement as a no-op.
| |
| removeFromIndex | back to summary |
|---|---|
| public void removeFromIndex(List<BibEntry> entries) Implements org.
| |
| search | back to summary |
|---|---|
| public SearchResults search(SearchQuery query) Implements org. Doc from org. Run the query against this backend.
| |
| updateEntry | back to summary |
|---|---|
| public void updateEntry(FieldChangedEvent event) Implements org.
| |