fair-search/fairsearch-elasticsearch-plugin

View on GitHub
src/main/java/com/purbon/search/fair/lib/fairness/FairnessCache.java

Summary

Maintainability
A
1 hr
Test Coverage

Method generateMtable has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private int[] generateMtable(int k, float p, float a, String id) {
        //check if the index exists
        boolean mTableStoreExists = client
                .admin().indices().prepareExists(ModelStore.STORE_NAME)
                .get().isExists();

    There are no issues that match your filters.

    Category
    Status