Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,10 @@ public Map<Long, List<String>> review(String key, long record) {

@Override
public Set<Long> search(String key, String query) {
// TODO: should we consider first checking if the index for key is in
// memory and using that instead of loading the corpus record. If
// ENABLE_SEARCH_CACHE is true then also check if there exist caches for
// key?
// NOTE: Locking must happen here since CorpusRecords are not cached and
// search potentially works across multiple ones.
masterLock.readLock().lock();
Expand Down