Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for disMaxQuery (0.09 sec)

  1. src/test/java/org/codelibs/fess/helper/QueryHelperTest.java

        }
    
        private QueryBuilder simpleQuery(String query, float titleBoost, float contentBoost) {
            if ("dismax".equals(ComponentUtil.getFessConfig().getQueryDefaultQueryType())) {
                return QueryBuilders.disMaxQuery().tieBreaker(0.1f)//
                        .add(QueryBuilders.matchPhraseQuery("title", query).boost(titleBoost))//
                        .add(QueryBuilders.matchPhraseQuery("content", query).boost(contentBoost))//
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Jul 11 08:26:36 UTC 2024
    - 39.8K bytes
    - Viewed (0)
Back to top