Ticket #649 (closed Enhancement: fixed)

Opened 6 years ago

Last modified 6 years ago

Core API: add index mode after the fact

Reported by: jri Owned by: jri
Priority: Major Milestone: Release 4.3
Component: DeepaMehta Standard Distribution Version: 4.2
Keywords: Cc: dgf, Malte, carolina
Complexity: 5 Area: Application Framework / API
Module: deepamehta-core

Description

The Core API should allow to add an index mode to an existing type. Existing data should be indexed subsequently.

Change History

comment:1 Changed 6 years ago by jri

  • Status changed from new to accepted

comment:2 Changed 6 years ago by Jörg Richter

Core API: add index modes afterwards (#649).

One can add index modes to types afterwards, e.g. in a migration.
Existing topics/associations are indexed subsequently.

Use the Type's new addIndexMode() method.
Example:

public class Migration2 extends Migration {

    @Override
    public void run() {
        dms.getTopicType("ka2.geo_object.name").addIndexMode(IndexMode.FULLTEXT_KEY);
    }
}

BREAKING CHANGE

Type API:

void setIndexModes(List<IndexMode> indexModes) -> void addIndexMode(IndexMode indexMode)

TypeModel API:

void setIndexModes(List<IndexMode> indexModes) -> void addIndexMode(IndexMode indexMode)

See #649.

comment:3 Changed 6 years ago by jri

  • Status changed from accepted to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.