LibrarySearcher that evaluates the Search.g4 grammar
directly against each BibEntry of the library. No external infrastructure required
(no Postgres, no Lucene).
Limitation: linked-file content search (SearchFlags#FULLTEXT) is not supported.
If a query carries the FULLTEXT flag, this implementation logs a warning and falls
back to metadata-only matching.
| Modifier and Type | Field and Description |
|---|---|
| private final BibDatabaseContext | |
| private final Character | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| public | InMemoryLibrarySearcher(BibDatabaseContext databaseContext, BibEntryPreferences bibEntryPreferences)
|
| Modifier and Type | Method and Description |
|---|---|
| public List | |
| public boolean | matches(BibEntry entry, SearchQuery query)
Test a single entry against a query without iterating the library. |
| private boolean |
| databaseContext | back to summary |
|---|---|
| private final BibDatabaseContext databaseContext | |
| keywordSeparator | back to summary |
|---|---|
| private final Character keywordSeparator | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| InMemoryLibrarySearcher | back to summary |
|---|---|
| public InMemoryLibrarySearcher(BibDatabaseContext databaseContext, BibEntryPreferences bibEntryPreferences) | |
| getMatches | back to summary |
|---|---|
| public List Implements org.
| |
| matches | back to summary |
|---|---|
| public boolean matches(BibEntry entry, SearchQuery query) Test a single entry against a query without iterating the library.
Returns | |
| matchesParsedQuery | back to summary |
|---|---|
| private boolean matchesParsedQuery(BibEntry entry, SearchQuery query) | |