colrev.ops.search.Search
- class colrev.ops.search.Search(*, review_manager, notify_state_transition_operation=True)[source]
Bases:
OperationSearch for new records
Methods
add_most_likely_sourcesGet the most likely SearchSources
add_source_and_searchAdd a SearchSource and run the search
check_preconditionCheck the operation precondition
concludeConclude the operation (stop Docker containers)
decorateDecorator for operations
get_new_search_filesRetrieve new search files (not yet registered in settings)
get_new_source_heuristicGet the heuristic result list of SearchSources candidates
main- rtype:
Callable
notifyNotify the review_manager about the next operation
Attributes
type- add_most_likely_sources()[source]
Get the most likely SearchSources
returns a dictionary: {“filepath”: [SearchSource1,..]}
- Return type:
None
- check_precondition()
Check the operation precondition
- Return type:
None
- conclude()
Conclude the operation (stop Docker containers)
- Return type:
None
- classmethod decorate()
Decorator for operations
- Return type:
Callable
- get_new_search_files()[source]
Retrieve new search files (not yet registered in settings)
- Return type:
list[Path]
- get_new_source_heuristic(filename)[source]
Get the heuristic result list of SearchSources candidates
returns a dictionary: {“filepath”: ({“search_source”: SourceCandidate1”, “confidence”: 0.98},..]}
- Return type:
list
- notify(*, state_transition=True)
Notify the review_manager about the next operation
- Return type:
None