Concrete implementors plug into SearchContext (the Abstraction) and provide
the actual search + indexing behavior. Today: org.
(Postgres metadata index + Lucene linked-file index),
org. (grammar walk
against in-memory entries, no fulltext), and
org. (grammar walk
against in-memory entries plus a Lucene linked-file index).
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public boolean | isEntryMatched(BibEntry entry, SearchQuery query)
Test a single entry against the query without re-running a full library search. |
| public void | |
| public void | |
| public SearchResults | Returns: aSearchResults capturing matched-entry membership and (if supported) fulltext hits.Run the query against this backend. |
| public void |
| addToIndex | back to summary |
|---|---|
| public void addToIndex(List<BibEntry> entries) Indexing lifecycle. Backends without an index (e.g. in-memory) implement these as no-ops. | |
| close | back to summary |
|---|---|
| public void close() Release backend resources (DB connections, Lucene index handles, …). Idempotent. | |
| isEntryMatched | back to summary |
|---|---|
| public boolean isEntryMatched(BibEntry entry, SearchQuery query) Test a single entry against the query without re-running a full library search. | |
| rebuildFullTextIndex | back to summary |
|---|---|
| public void rebuildFullTextIndex() 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) | |
| search | back to summary |
|---|---|
| public SearchResults search(SearchQuery query) Run the query against this backend.
| |
| updateEntry | back to summary |
|---|---|
| public void updateEntry(FieldChangedEvent event) | |