Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for supportedFields (0.12 sec)

  1. src/test/java/org/codelibs/fess/suggest/index/contents/DefaultContentsParserTest.java

    import junit.framework.TestCase;
    
    public class DefaultContentsParserTest extends TestCase {
        DefaultContentsParser defaultContentsParser = new DefaultContentsParser();
        String[] supportedFields = new String[] { "content", "title" };
        String[] tagFieldNames = new String[] { "label", "virtual_host" };
        String roleFieldName = "role";
    
        public void test_parseQueryLog() throws Exception {
    
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/suggest/index/contents/document/ESSourceReader.java

            this.client = client;
            this.settings = settings;
            this.indexName = indexName;
            supportedFields = settings.array().get(SuggestSettings.DefaultKeys.SUPPORTED_FIELDS);
            totalDocNum = getTotal();
        }
    
        @Override
        public synchronized Map<String, Object> read() {
            while (!isFinished.get() && queue.isEmpty()) {
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/suggest/index/SuggestIndexer.java

        public SuggestIndexer setIndexName(final String index) {
            this.index = index;
            return this;
        }
    
        public SuggestIndexer setSupportedFields(final String[] supportedFields) {
            this.supportedFields = supportedFields;
            return this;
        }
    
        public SuggestIndexer setTagFieldNames(final String[] tagFieldNames) {
            this.tagFieldNames = tagFieldNames;
            return this;
        }
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/query/QueryFieldConfig.java

        }
    
        /**
         * @return the supportedFields
         */
        public String[] getSearchFields() {
            return searchFields;
        }
    
        /**
         * @param supportedFields the supportedFields to set
         */
        public void setSearchFields(final String[] supportedFields) {
            searchFields = supportedFields;
        }
    
        /**
         * @return the facetFields
         */
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Mon Jul 22 04:30:56 UTC 2024
    - 16K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/suggest/settings/SuggestSettings.java

            return new SuggestSettingsBuilder();
        }
    
        public static class DefaultKeys {
            public static final String INDEX = "index";
            public static final String SUPPORTED_FIELDS = "supportedFields";
            public static final String TAG_FIELD_NAME = "tagFieldName";
            public static final String ROLE_FIELD_NAME = "roleFieldName";
            public static final String LANG_FIELD_NAME = "langFieldName";
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/suggest/SuggesterTest.java

        }
    
        @Test
        public void test_indexFromQueryString() throws Exception {
            SuggestSettings settings = suggester.settings();
            String field = settings.array().get(SuggestSettings.DefaultKeys.SUPPORTED_FIELDS)[0];
    
            SuggestIndexResponse indexResponse = suggester.indexer().indexFromQueryLog(new QueryLog(field + ":検索", null));
            assertEquals(1, indexResponse.getNumberOfInputDocs());
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 37K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/suggest/settings/SuggestSettingsTest.java

            assertEquals("settings-test.suggest", settings.getAsString(SuggestSettings.DefaultKeys.INDEX, ""));
            assertEquals("content", settings.array().get(SuggestSettings.DefaultKeys.SUPPORTED_FIELDS)[0]);
            assertEquals("label,virtual_host", settings.getAsString(SuggestSettings.DefaultKeys.TAG_FIELD_NAME, ""));
            assertEquals("role", settings.getAsString(SuggestSettings.DefaultKeys.ROLE_FIELD_NAME, ""));
        }
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/helper/SuggestHelper.java

            try {
                suggester.settings().array().delete(SuggestSettings.DefaultKeys.SUPPORTED_FIELDS);
                split(fessConfig.getSuggestFieldIndexContents(), ",").of(stream -> stream.filter(StringUtil::isNotBlank).forEach(field -> {
                    try {
                        suggester.settings().array().add(SuggestSettings.DefaultKeys.SUPPORTED_FIELDS, field);
                    } catch (final SuggestSettingsException e) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:20:39 UTC 2024
    - 18.1K bytes
    - Viewed (0)
Back to top