Verified Owner
Top Description Fields Constructors Methods
org.jabref.logic.search.sqlbased

public Class SqlBasedLibrarySearcher

extends Object
implements LibrarySearcher
Class Inheritance
All Implemented Interfaces
org.jabref.logic.search.LibrarySearcher
Imports
java.io.IOException, java.util.List, .Optional, org.jabref.logic.preferences.CliPreferences, org.jabref.logic.search.LibrarySearcher, org.jabref.logic.util.TaskExecutor, org.jabref.model.database.BibDatabaseContext, .BibDatabases, org.jabref.model.entry.BibEntry, org.jabref.model.search.query.SearchQuery, org.slf4j.Logger, .LoggerFactory

SQL/Lucene-backed implementation of LibrarySearcher. Boots an IndexManager (embedded Postgres + Lucene linked-files index) per instance.

Field Summary

Modifier and TypeField and Description
private final BibDatabaseContext
private final IndexManager
private static final Logger

Constructor Summary

AccessConstructor and Description
public
SqlBasedLibrarySearcher(BibDatabaseContext databaseContext, TaskExecutor taskExecutor, CliPreferences preferences, PostgresServer postgresServer)

Method Summary

Modifier and TypeMethod and Description
public List<BibEntry>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

databaseContextback to summary
private final BibDatabaseContext databaseContext
indexManagerback to summary
private final IndexManager indexManager
LOGGERback to summary
private static final Logger LOGGER

Constructor Detail

SqlBasedLibrarySearcherback to summary
public SqlBasedLibrarySearcher(BibDatabaseContext databaseContext, TaskExecutor taskExecutor, CliPreferences preferences, PostgresServer postgresServer) throws IOException

Method Detail

getMatchesback to summary
public List<BibEntry> getMatches(SearchQuery query)

Implements org.jabref.logic.search.LibrarySearcher.getMatches.

Annotations
@Override