Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for FieldConfigs (0.42 sec)

  1. src/main/java/org/codelibs/fess/crawler/util/FieldConfigs.java

    import org.codelibs.core.lang.StringUtil;
    import org.codelibs.core.stream.StreamUtil;
    import org.codelibs.fess.Constants;
    import org.dbflute.optional.OptionalThing;
    
    public class FieldConfigs {
    
        private final Map<String, String> params;
    
        public FieldConfigs(final Map<String, String> params) {
            this.params = params;
        }
    
        public OptionalThing<Config> getConfig(final String fieldName) {
    Registered: Mon Oct 28 08:04:08 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/crawler/util/FieldConfigsTest.java

            assertTrue(fieldConfigs.getConfig("test").isEmpty());
            assertTrue(fieldConfigs.getConfig("foo").map(FieldConfigs.Config::isCache).orElse(false));
            assertFalse(fieldConfigs.getConfig("foo").map(FieldConfigs.Config::isOverwrite).orElse(false));
        }
    
        public void test_cache() {
            final Map<String, String> params = Maps.of("foo", "cache");
    Registered: Mon Oct 28 08:04:08 UTC 2024
    - Last Modified: Thu Jul 04 06:20:49 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/crawler/transformer/FessTransformer.java

        }
    
        default Map<String, Object> processFieldConfigs(final Map<String, Object> dataMap, final FieldConfigs fieldConfigs) {
            final Map<String, Object> newDataMap = new LinkedHashMap<>();
            for (final Map.Entry<String, Object> e : dataMap.entrySet()) {
                if (fieldConfigs.getConfig(e.getKey()).map(FieldConfigs.Config::isOverwrite).orElse(false)
    Registered: Mon Oct 28 08:04:08 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/crawler/transformer/FessFileTransformerTest.java

            final FessFileTransformer transformer = createInstance();
            final Map<String, String> params = Maps.of("foo", "cache", "bar", "overwrite", "baz", "cache|overwrite");
            FieldConfigs fieldConfigs = new FieldConfigs(params);
            final Map<String, Object> dataMap = Map.of(//
                    "foo", new String[] { "aaa", "bbb" }, //
                    "bar", new String[] { "ccc", "ddd" }, //
    Registered: Mon Oct 28 08:04:08 UTC 2024
    - Last Modified: Thu Jul 04 06:20:49 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/crawler/transformer/AbstractFessFileTransformer.java

            String url = responseData.getUrl();
            final String indexingTarget = crawlingConfig.getIndexingTarget(url);
            url = pathMappingHelper.replaceUrl(sessionId, url);
    
            final FieldConfigs fieldConfigs = new FieldConfigs(crawlingConfig.getConfigParameterMap(ConfigName.FIELD));
    
            String urlEncoding;
            final UrlQueue<?> urlQueue = CrawlingParameterUtil.getUrlQueue();
    Registered: Mon Oct 28 08:04:08 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/crawler/transformer/FessXpathTransformer.java

            url = pathMappingHelper.replaceUrl(sessionId, url);
            final String mimeType = responseData.getMimeType();
    
            final FieldConfigs fieldConfigs = new FieldConfigs(crawlingConfig.getConfigParameterMap(ConfigName.FIELD));
            final Map<String, String> xpathConfigMap = crawlingConfig.getConfigParameterMap(ConfigName.XPATH);
    
            String urlEncoding;
    Registered: Mon Oct 28 08:04:08 UTC 2024
    - Last Modified: Thu Oct 24 13:01:38 UTC 2024
    - 42.9K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/crawler/transformer/FessXpathTransformerTest.java

            final FessXpathTransformer transformer = new FessXpathTransformer();
            final Map<String, String> params = Maps.of("foo", "cache", "bar", "overwrite", "baz", "cache|overwrite");
            FieldConfigs fieldConfigs = new FieldConfigs(params);
            final Map<String, Object> dataMap = Map.of(//
                    "foo", new String[] { "aaa", "bbb" }, //
                    "bar", new String[] { "ccc", "ddd" }, //
    Registered: Mon Oct 28 08:04:08 UTC 2024
    - Last Modified: Thu Oct 24 13:01:38 UTC 2024
    - 41.3K bytes
    - Viewed (0)
Back to top