Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for SuggestHelper (0.08 sec)

  1. src/main/java/org/codelibs/fess/helper/SuggestHelper.java

    import org.opensearch.index.query.functionscore.ScoreFunctionBuilders;
    import org.opensearch.search.sort.SortBuilders;
    
    import jakarta.annotation.PostConstruct;
    
    public class SuggestHelper {
        private static final Logger logger = LogManager.getLogger(SuggestHelper.class);
    
        protected static final String TEXT_SEP = " ";
    
        protected Suggester suggester;
    
        protected FessConfig fessConfig;
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:20:39 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/app/web/api/admin/elevateword/ApiAdminElevatewordAction.java

        private static final Logger logger = LogManager.getLogger(ApiAdminElevatewordAction.class);
    
        @Resource
        private ElevateWordService elevateWordService;
    
        @Resource
        protected SuggestHelper suggestHelper;
    
        // GET /api/admin/elevateword
        // POST /api/admin/elevateword
        @Execute
        public JsonResponse<ApiResult> settings(final SearchBody body) {
            validateApi(body, messages -> {});
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/app/web/api/admin/suggest/ApiAdminSuggestAction.java

    import org.codelibs.fess.app.web.api.admin.FessApiAdminAction;
    import org.codelibs.fess.helper.SuggestHelper;
    import org.lastaflute.web.Execute;
    import org.lastaflute.web.response.JsonResponse;
    
    import jakarta.annotation.Resource;
    
    public class ApiAdminSuggestAction extends FessApiAdminAction {
    
        @Resource
        protected SuggestHelper suggestHelper;
    
        // GET /api/admin/suggest
        @Execute
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/app/web/admin/suggest/AdminSuggestAction.java

            runtime.registerData("totalWordsNum", suggestHelper.getAllWordsNum());
            runtime.registerData("documentWordsNum", suggestHelper.getDocumentWordsNum());
            runtime.registerData("queryWordsNum", suggestHelper.getQueryWordsNum());
        }
    
        @Override
        protected String getActionRole() {
            return ROLE;
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/exec/SuggestCreator.java

            }
    
            final SuggestHelper suggestHelper = ComponentUtil.getSuggestHelper();
    
            logger.info("Creating new suggest index.");
            suggestHelper.suggester().createNextIndex();
    
            logger.info("Storing all bad words.");
            suggestHelper.storeAllBadWords(true);
    
            logger.info("Storing all elevate words.");
            suggestHelper.storeAllElevateWords(true);
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 10K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/web/api/admin/badword/ApiAdminBadwordAction.java

        private static final Logger logger = LogManager.getLogger(ApiAdminBadwordAction.class);
    
        @Resource
        private BadWordService badWordService;
    
        @Resource
        protected SuggestHelper suggestHelper;
    
        // GET /api/admin/badword/settings
        // POST /api/admin/badword/settings
        @Execute
        public JsonResponse<ApiResult> settings(final SearchBody body) {
            validateApi(body, messages -> {});
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/admin/elevateword/AdminElevatewordAction.java

        @Resource
        private ElevateWordService elevateWordService;
        @Resource
        private ElevateWordPager elevateWordPager;
        @Resource
        protected SuggestHelper suggestHelper;
        @Resource
        private LabelTypeService labelTypeService;
    
        // ===================================================================================
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/web/admin/badword/AdminBadwordAction.java

        @Resource
        private BadWordService badWordService;
        @Resource
        private BadWordPager badWordPager;
        @Resource
        protected SuggestHelper suggestHelper;
    
        // ===================================================================================
        //                                                                               Hook
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/helper/PopularWordHelper.java

                    final List<String> wordList = new ArrayList<>();
                    final SuggestHelper suggestHelper = ComponentUtil.getSuggestHelper();
                    final PopularWordsRequestBuilder popularWordsRequestBuilder =
                            suggestHelper.suggester().popularWords().setSize(fessConfig.getSuggestPopularWordSizeAsInteger())
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/api/json/SearchApiManager.java

                final String[] langs = searchHelper.getLanguages(request, parameter);
    
                final SuggestHelper suggestHelper = ComponentUtil.getSuggestHelper();
                final SuggestRequestBuilder builder = suggestHelper.suggester().suggest();
                builder.setQuery(parameter.getQuery());
                stream(parameter.getSuggestFields()).of(stream -> stream.forEach(builder::addField));
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 12 01:54:46 UTC 2024
    - 50.3K bytes
    - Viewed (0)
Back to top