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

public Class SqlSearchBackend

extends Object
implements SearchBackend
Class Inheritance
All Implemented Interfaces
org.jabref.logic.search.SearchBackend
Imports
java.util.List, org.jabref.logic.search.SearchBackend, org.jabref.model.entry.BibEntry, org.jabref.model.entry.event.FieldChangedEvent, org.jabref.model.search.query.SearchQuery, .SearchResults

Concrete Implementor (SearchBackend) backed by IndexManager (Postgres metadata index + Lucene linked-file index).

Field Summary

Modifier and TypeField and Description
private final IndexManager

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public void
close()

Implements org.jabref.logic.search.SearchBackend.close.

Release backend resources (DB connections, Lucene index handles, …).

public boolean
isEntryMatched(BibEntry entry, SearchQuery query)

Implements org.jabref.logic.search.SearchBackend.isEntryMatched.

Test a single entry against the query without re-running a full library search.

public void
rebuildFullTextIndex()

Implements org.jabref.logic.search.SearchBackend.rebuildFullTextIndex.

Re-index linked-file fulltext from scratch.

public void
public SearchResults
search(SearchQuery query)

Implements org.jabref.logic.search.SearchBackend.search.

Run the query against this backend.

public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

indexManagerback to summary
private final IndexManager indexManager

Constructor Detail

SqlSearchBackendback to summary
public SqlSearchBackend(IndexManager indexManager)

Method Detail

addToIndexback to summary
public void addToIndex(List<BibEntry> entries)

Implements org.jabref.logic.search.SearchBackend.addToIndex.

Doc from org.jabref.logic.search.SearchBackend.addToIndex.

Indexing lifecycle. Backends without an index (e.g. in-memory) implement these as no-ops.

Annotations
@Override
closeback to summary
public void close()

Implements org.jabref.logic.search.SearchBackend.close.

Doc from org.jabref.logic.search.SearchBackend.close.

Release backend resources (DB connections, Lucene index handles, …). Idempotent.

Annotations
@Override
isEntryMatchedback to summary
public boolean isEntryMatched(BibEntry entry, SearchQuery query)

Implements org.jabref.logic.search.SearchBackend.isEntryMatched.

Doc from org.jabref.logic.search.SearchBackend.isEntryMatched.

Test a single entry against the query without re-running a full library search.

Annotations
@Override
rebuildFullTextIndexback to summary
public void rebuildFullTextIndex()

Implements org.jabref.logic.search.SearchBackend.rebuildFullTextIndex.

Doc from org.jabref.logic.search.SearchBackend.rebuildFullTextIndex.

Re-index linked-file fulltext from scratch. Backends without a fulltext index implement as a no-op.

Annotations
@Override
removeFromIndexback to summary
public void removeFromIndex(List<BibEntry> entries)

Implements org.jabref.logic.search.SearchBackend.removeFromIndex.

Annotations
@Override
searchback to summary
public SearchResults search(SearchQuery query)

Implements org.jabref.logic.search.SearchBackend.search.

Doc from org.jabref.logic.search.SearchBackend.search.

Run the query against this backend.

Annotations
@Override
updateEntryback to summary
public void updateEntry(FieldChangedEvent event)

Implements org.jabref.logic.search.SearchBackend.updateEntry.

Annotations
@Override