load method

load

Loads a search network configuration from a file.

def load(cls, file_path):
    ...
Parameter Type Description
file_path str The file to load from.

Returns: The configuration.

Example

from groupdocs.search.scaling.configuring import Configuration

base_path = "./SearchNetwork/"
configuration = Configuration.load(base_path + "Configuration.xml")

load

Loads a search network configuration from a stream.

def load(cls, stream):
    ...
Parameter Type Description
stream io.RawIOBase The stream to load from.

Returns: Configuration: The configuration.

Aliases

These names call load too, limited to the overloads listed.

Alias Accepts
load_file load_file(file_path)
load_string load_string(file_path)
load_stream load_stream(stream)
load_streams load_streams(stream)

See Also