Login to follow
Elastic Search Connector

Elastic Search Connector (ODC)

Stable version 1.0.11 (Compatible with ODC)
Uploaded on 16 Mar (14 days ago) by OutSystems Labs
Elastic Search Connector

Elastic Search Connector (ODC)

Documentation
1.0.11

Add a reference in your ODC App to "Elastic Search connector" and include the references to the features listed below.

In the settings of your ODC App, you will have to configure the following Settings:

- "Elastic Search API Key": (Created in Kibana in your Elastic Search Deployment)

- "Elastic Search URL": (Also copied from the main screen in Kibana in your Elastic Search Deployment)

- Remaining settings are defaults unless for debugging. ("DEBUG")


For improved setup tips with screen and numerous code examples utilizing the complete feature set detailed below, refer to the companion application "Elastic Search Sandbox."

  • Index Management:
    • GetListOfIndexes: Retrieves a list of indices, with an optional name prefix filter.

    • CreateIndex: Inserts a new index (indice) into Elasticsearch.

    • IndexAliasAdd: Assigns an alias to an existing index.

    • IndexAliasRemove: Removes an existing alias from an index.

    • ReindexData: Copies data from a source index to a newly created index, initiating an asynchronous task.

    • GetTaskStatusByID: Retrieves the status of a specific asynchronous task using its ID (returned by `ReindexData`).

    • DeleteTaskByID: Deletes and cancels a specific asynchronous task using its ID (returned by `ReindexData`).

    • DeleteIndex: Deletes an index, its configurations, and its associated records (documents).

  • Data Upload to Index:

    • BulkInsert: Inserts multiple records simultaneously (in bulk) into an index.

  • CRUD Operations for Index Records:

    • CreateRecord: Inserts a new record (document) into an index and returns the ID of the record created.

    • CreateRecordById: Inserts a new record (document) into an index with a specified ID.

    • GetRecordById: Retrieves a specific record (document) by its ID.

    • UpdateRecordById: Updates a specific record (document) by its ID on the Elasticsearch server.

    • DeleteRecordById: Deletes a specific record (document) from the Elasticsearch server using its ID.

  • High-Performance Search (Similarity and Fuzzy):

    • GetRecordsByQuery: Retrieves a list of records based on a single search query.

    • GetRecordsByMQueries: Retrieves a list of records from a set of queries executed in a batch (multiple searches on request).

  • Similarity Scoring:

    • StoreFunctionScoreScript: Sends and stores a custom function score script to Elasticsearch. This script can be referenced in DSL Search Queries to override the default similarity score and return custom results in the `_score` tag of each record, ranking similarity between the search query and the returned results.