Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for DocBoostMatcher (0.12 sec)

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

    import org.codelibs.fess.util.ComponentUtil;
    
    public class DocBoostMatcher {
    
        private String boostExpression = "0";
    
        private String matchExpression;
    
        private final String scriptType;
    
        public DocBoostMatcher() {
            scriptType = Constants.DEFAULT_SCRIPT;
        }
    
        public DocBoostMatcher(final BoostDocumentRule rule) {
            matchExpression = rule.getUrlExpr();
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 2.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 Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 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 Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:20:39 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  4. 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 Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 22.6K bytes
    - Viewed (0)
Back to top