CoLRev

Manual

  • Steps and operations
  • Workflow
  • Step 1: Problem formulation
  • Step 2: Metadata retrieval
  • Step 3: Metadata prescreen
  • Step 4: PDF retrieval
  • Step 5: PDF screen
  • Step 6: Data extraction and synthesis
  • Command-line Interface
  • Collaboration
  • Packages
  • Appendix

Developer documentation

  • Setup
  • Package development
  • Development status
  • API reference
    • colrev
    • colrev.ui_cli
    • colrev.hooks
    • colrev.review_manager
    • colrev.settings
    • colrev.ops
      • colrev.ops.advisor
      • colrev.ops.check
      • colrev.ops.checker
      • colrev.ops.clone
      • colrev.ops.colrev_pandas
      • colrev.ops.commit
      • colrev.ops.correct
      • colrev.ops.data
      • colrev.ops.dedupe
      • colrev.ops.distribute
      • colrev.ops.init
      • colrev.ops.load
      • colrev.ops.merge
      • colrev.ops.pdf_get
      • colrev.ops.pdf_get_man
      • colrev.ops.pdf_prep
      • colrev.ops.pdf_prep_man
      • colrev.ops.prep
      • colrev.ops.prep_debug
      • colrev.ops.prep_man
      • colrev.ops.prescreen
      • colrev.ops.pull
      • colrev.ops.push
      • colrev.ops.remove
      • colrev.ops.repare
      • colrev.ops.screen
      • colrev.ops.search
        • colrev.ops.search.Search
      • colrev.ops.search_api_feed
      • colrev.ops.status
      • colrev.ops.trace
      • colrev.ops.upgrade
      • colrev.ops.validate
    • colrev.process
    • colrev.dataset
    • colrev.env
    • colrev.package_manager
    • colrev.constants
    • colrev.logger
    • colrev.exceptions
    • colrev.paths
    • colrev.loader
    • colrev.writer
    • colrev.record
  • Github repository
  • PyPI

Governance

  • CoLRev enhancement proposals (CEPs)
  • About
CoLRev
  • API reference
  • colrev.ops
  • colrev.ops.search
  • colrev.ops.search.Search
  • Edit on GitHub

colrev.ops.search.Search¶

class Search(*, review_manager, notify_state_transition_operation=True)[source]¶

Bases: Operation

Search for new records

Methods

add_most_likely_sources

Get the most likely SearchSources

add_source_and_search

Add a SearchSource and run the search

check_precondition

Check the operation precondition

conclude

Conclude the operation (stop Docker containers)

create_api_source

Interactively add an API SearchSource

create_db_source

Interactively add a DB SearchSource

decorate

Decorator for operations

get_new_search_files

Retrieve new search files (not yet registered in settings)

get_new_source_heuristic

Get the heuristic result list of SearchSources candidates

get_query_filename

Get the corresponding filename for the search query

get_unique_filename

Get a unique filename for a (new) SearchSource

main

notify

Notify the review_manager about the next operation

run_db_search

Interactively run a DB search

select_search_type

Select the SearchType (interactively if neccessary)

Attributes

type

add_most_likely_sources(*, create_query_files=True)[source]¶

Get the most likely SearchSources

returns a dictionary: {“filepath”: [SearchSource1,..]}

Return type:

None

add_source_and_search(search_source)[source]¶

Add a SearchSource and run the search

Return type:

None

check_precondition()¶

Check the operation precondition

Return type:

None

conclude()¶

Conclude the operation (stop Docker containers)

Return type:

None

create_api_source(*, endpoint)[source]¶

Interactively add an API SearchSource

Return type:

SearchSource

create_db_source(*, search_source_cls, params)[source]¶

Interactively add a DB SearchSource

Return type:

SearchSource

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

get_query_filename(*, filename, instantiate=False, interactive=False)[source]¶

Get the corresponding filename for the search query

Return type:

Path

get_unique_filename(file_path_string, suffix='.bib')[source]¶

Get a unique filename for a (new) SearchSource

Return type:

Path

notify(*, state_transition=True)¶

Notify the review_manager about the next operation

Return type:

None

run_db_search(*, search_source_cls, source)[source]¶

Interactively run a DB search

Return type:

None

select_search_type(*, search_types, params)[source]¶

Select the SearchType (interactively if neccessary)

Return type:

SearchType

Previous Next

© Copyright 2025, Gerit Wagner and Julian Prester.

Built with Sphinx using a theme provided by Read the Docs.