Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for DocBoostMatcher (0.42 sec)

  1. src/main/java/org/codelibs/fess/indexer/DocBoostMatcher.java

        /**
         * Default constructor that creates a DocBoostMatcher with default script type.
         * Uses the default script engine as defined in Constants.DEFAULT_SCRIPT.
         */
        public DocBoostMatcher() {
            scriptType = Constants.DEFAULT_SCRIPT;
        }
    
        /**
         * Constructor that creates a DocBoostMatcher from a BoostDocumentRule.
         *
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/indexer/DocBoostMatcherTest.java

            assertFalse(docBoostMatcher.match(map));
    
            map.remove("data1");
            assertFalse(docBoostMatcher.match(map));
    
            map.put("data2", 5);
            assertFalse(docBoostMatcher.match(map));
        }
    
        public void test_string() {
            final DocBoostMatcher docBoostMatcher = new DocBoostMatcher();
            docBoostMatcher.setBoostExpression("10");
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Mar 15 06:53:53 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/indexer/IndexUpdater.java

                addFavoriteCountField(map);
            }
    
            float documentBoost = 0.0f;
            for (final DocBoostMatcher docBoostMatcher : docBoostMatcherList) {
                if (docBoostMatcher.match(map)) {
                    documentBoost = docBoostMatcher.getValue(map);
                    break;
                }
            }
    
            if (documentBoost > 0) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 32.7K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/indexer/IndexUpdaterTest.java

        public void test_updateDocument_withBoostMatcher() {
            final Map<String, Object> doc = new HashMap<>();
            doc.put("url", "http://example.com");
    
            final DocBoostMatcher matcher = new DocBoostMatcher() {
                @Override
                public boolean match(Map<String, Object> map) {
                    return true;
                }
    
                @Override
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 33K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/helper/WebFsIndexHelper.java

            indexUpdater.setDaemon(true);
            indexUpdater.setCrawlerList(crawlerList);
            getAvailableBoostDocumentRuleList().forEach(rule -> {
                indexUpdater.addDocBoostMatcher(new org.codelibs.fess.indexer.DocBoostMatcher(rule));
            });
            indexUpdater.start();
    
            int startedCrawlerNum = 0;
            int activeCrawlerNum = 0;
            try {
                while (startedCrawlerNum < crawlerList.size()) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 24.9K bytes
    - Viewed (0)
Back to top