Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 23 for boolQuery (0.15 sec)

  1. fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/service/impl/AbstractCrawlerService.java

                    } else {
                        final BoolQueryBuilder boolQuery = QueryBuilders.boolQuery().filter(QueryBuilders.termQuery(SESSION_ID, sessionId));
                        if (queryBuilder != null) {
                            boolQuery.must(queryBuilder);
                        }
                        builder.setQuery(boolQuery);
                    }
                } else if (queryBuilder != null) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Nov 07 04:44:10 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/entity/QueryContext.java

        }
    
        public void addQuery(final Consumer<BoolQueryBuilder> boolQuery) {
            BoolQueryBuilder builder;
            if (queryBuilder instanceof MatchAllQueryBuilder) {
                builder = QueryBuilders.boolQuery();
            } else {
                builder = QueryBuilders.boolQuery().must(queryBuilder);
            }
            boolQuery.accept(builder);
            if (builder.hasClauses()) {
                queryBuilder = builder;
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/helper/SuggestHelper.java

                success.accept(true);
            }).error(t -> error.accept(t));
        }
    
        public void purgeDocumentSuggest(final LocalDateTime time) {
            final BoolQueryBuilder boolQueryBuilder = QueryBuilders.boolQuery();
            boolQueryBuilder
                    .must(QueryBuilders.rangeQuery(FieldNames.TIMESTAMP).lt(time.atZone(ZoneId.systemDefault()).toInstant().toEpochMilli()));
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:20:39 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/helper/QueryHelperTest.java

            BoolQueryBuilder boolQuery = QueryBuilders.boolQuery();
            for (QueryBuilder query : queries) {
                boolQuery.must(query);
            }
            return boolQuery;
        }
    
        private QueryBuilder orQuery(QueryBuilder... queries) {
            BoolQueryBuilder boolQuery = QueryBuilders.boolQuery();
            for (QueryBuilder query : queries) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Jul 11 08:26:36 UTC 2024
    - 39.8K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/helper/DataIndexHelper.java

                    return;
                }
                final FessConfig fessConfig = ComponentUtil.getFessConfig();
                final BoolQueryBuilder queryBuilder = QueryBuilders.boolQuery()//
                        .must(QueryBuilders.termQuery(fessConfig.getIndexFieldConfigId(), dataConfig.getConfigId()))//
                        .mustNot(QueryBuilders.termQuery(fessConfig.getIndexFieldSegment(), sessionId));
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 12K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/suggest/index/SuggestIndexer.java

        public SuggestDeleteResponse deleteDocumentWords() {
            final long start = System.currentTimeMillis();
    
            final SuggestDeleteResponse deleteResponse =
                    deleteByQuery(QueryBuilders.boolQuery().must(QueryBuilders.rangeQuery(FieldNames.DOC_FREQ).gte(1))
                            .mustNot(QueryBuilders.matchPhraseQuery(FieldNames.KINDS, SuggestItem.Kind.QUERY.toString()))
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/query/QueryProcessorTest.java

                protected FilterChain createDefaultFilterChain() {
                    return (context, query, boost) -> {
                        called.set(true);
                        return QueryBuilders.boolQuery();
                    };
                }
            };
            queryProcessor.init();
    
            QueryContext context = new QueryContext(null, false);
            MatchAllDocsQuery query = new MatchAllDocsQuery();
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/suggest/request/popularwords/PopularWordsRequest.java

        }
    
        @Override
        protected String getValidationError() {
            return null;
        }
    
        protected QueryBuilder buildQuery() {
            final BoolQueryBuilder queryBuilder = QueryBuilders.boolQuery();
            queryBuilder.must(QueryBuilders.termQuery(FieldNames.KINDS, SuggestItem.Kind.QUERY.toString()));
            queryBuilder.mustNot(QueryBuilders.existsQuery(FieldNames.READING_PREFIX + "1"));
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 7K bytes
    - Viewed (0)
  9. fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/service/impl/OpenSearchDataService.java

            SearchResponse response = getClient().get(c -> c.prepareSearch(index).setScroll(new TimeValue(scrollTimeout))
                    .setQuery(QueryBuilders.boolQuery().filter(QueryBuilders.termQuery(SESSION_ID, sessionId))).setSize(scrollSize).execute());
            String scrollId = response.getScrollId();
            try {
                while (scrollId != null) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Nov 07 04:44:10 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  10. fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/service/impl/OpenSearchUrlQueueService.java

            SearchResponse response = getClient().get(c -> c.prepareSearch(index).setScroll(new TimeValue(scrollTimeout))
                    .setQuery(QueryBuilders.boolQuery().filter(QueryBuilders.termQuery(SESSION_ID, oldSessionId))).setSize(scrollSize)
                    .execute());
            String scrollId = response.getScrollId();
            try {
                while (scrollId != null) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Nov 07 04:44:10 UTC 2024
    - 13.4K bytes
    - Viewed (0)
Back to top