Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for ArraySettings (0.09 sec)

  1. src/main/java/org/codelibs/fess/suggest/settings/ArraySettings.java

    import org.opensearch.index.IndexNotFoundException;
    import org.opensearch.index.query.QueryBuilders;
    import org.opensearch.search.SearchHit;
    
    public class ArraySettings {
        private static final Logger logger = LogManager.getLogger(ArraySettings.class);
    
        protected final Client client;
        protected final String arraySettingsIndexName;
        protected final String settingsId;
        protected final SuggestSettings settings;
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/suggest/settings/ElevateWordSettings.java

        public static final String ELEVATE_WORD_ROLES = "roles";
    
        protected ArraySettings arraySettings;
    
        protected ElevateWordSettings(final SuggestSettings settings, final Client client, final String settingsIndexName,
                final String settingsId) {
            arraySettings = new ArraySettings(settings, client, settingsIndexName, settingsId) {
                @Override
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/suggest/settings/BadWordSettings.java

        public static final String BAD_WORD_SETTINGD_KEY = "badword";
    
        protected ArraySettings arraySettings;
    
        protected static String[] defaultWords = null;
    
        protected BadWordSettings(final SuggestSettings settings, final Client client, final String settingsIndexName,
                final String settingsId) {
            arraySettings = new ArraySettings(settings, client, settingsIndexName, settingsId) {
                @Override
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/suggest/settings/SuggestSettings.java

                        collection.forEach(element -> arraySettings.add(new Tuple<>(key, element)));
                    } else if (value instanceof Object[]) {
                        for (final Object element : (Object[]) value) {
                            arraySettings.add(new Tuple<>(key, element));
                        }
                    } else {
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/suggest/settings/ElevateWordSettingsTest.java

            settings = Suggester.builder().build(runner.client(), id).settings();
        }
    
        @Test
        public void test_elevateWordIndexName() {
            assertEquals("fess_suggest_elevate", settings.elevateWord().arraySettings.arraySettingsIndexName);
        }
    
        @Test
        public void test_setAndGet() {
            ElevateWord elevateWord1 =
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/suggest/settings/BadWordSettingsTest.java

            settings = Suggester.builder().build(runner.client(), id).settings();
        }
    
        @Test
        public void test_badWordIndexName() {
            assertEquals("fess_suggest_badword", settings.badword().arraySettings.arraySettingsIndexName);
        }
    
        @Test
        public void test_validation() {
            try {
                settings.badword().add("aaaa");
                assertTrue(true);
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 4.4K bytes
    - Viewed (0)
Back to top