SearchBackend: returns empty SearchResults, matches nothing, and ignores
indexing calls. Used as a safe fallback when the expected backend is unavailable
so callers do not crash.
| Access | Constructor and Description |
|---|---|
| public |
| 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, …). |
| 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 |
| NoOpSearchBackend | back to summary |
|---|---|
| public NoOpSearchBackend() | |
| 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.
| |
| 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.
| |