RAMP4 - v4.21.0
    Preparing search index...

    A class/interface that wraps around a GeoSearch object and provides additional services. Can consume an optional config object upon creation. The config structure can be found in schema.json, look for #/$defs/geosearch

    Index

    Constructors

    Properties

    config: IGeosearchConfig

    Accessors

    Methods

    • Tests a string against a goal string and returns a levenshtein distance number. The lower the number, the better the match.

      Parameters

      • goalText: string

        gold standard text we are comparing against

      • testText: string

        text to evaluate against the goal

      Returns number

      a weight number

    • Given some string query, returns a promise that resolves as an array of search results and a report of any service failures

      Parameters

      • userInput: string

        the search string this query is based on

      Returns Promise<{ failedServs: string[]; results: ISearchResult[] }>