- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 61 for queryBuilders (0.14 sec)
-
src/main/java/org/codelibs/fess/query/WildcardQueryCommand.java
(f, b) -> QueryBuilders.wildcardQuery(f, toLowercaseWildcard(text)).boost(b * boost)); } if (isSearchField(field)) { final String text = wildcardQuery.getTerm().text(); context.addFieldLog(field, text); context.addHighlightedQuery(StringUtils.strip(text, "*")); return QueryBuilders.wildcardQuery(field, toLowercaseWildcard(text)).boost(boost);
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 4.1K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/query/TermRangeQueryCommand.java
context.addHighlightedQuery(origQuery); return buildDefaultQueryBuilder(fessConfig, context, (f, b) -> QueryBuilders.matchPhraseQuery(f, origQuery).boost(b)); } context.addFieldLog(field, termRangeQuery.toString(field)); final RangeQueryBuilder rangeQuery = QueryBuilders.rangeQuery(field); final BytesRef min = termRangeQuery.getLowerTerm(); if (min != null) {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Fri Oct 11 21:11:58 UTC 2024 - 4.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/suggest/request/popularwords/PopularWordsRequest.java
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")); queryBuilder.must(QueryBuilders.rangeQuery(FieldNames.QUERY_FREQ).gte(queryFreqThreshold));
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Sat Oct 12 00:10:39 UTC 2024 - 7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/job/PurgeDocJob.java
// clean up final QueryBuilder queryBuilder = QueryBuilders.rangeQuery(fessConfig.getIndexFieldExpires()).to("now"); try { searchEngineClient.deleteByQuery(fessConfig.getIndexDocumentUpdateIndex(), queryBuilder); } catch (final Exception e) { logger.error("Could not delete expired documents: {}", queryBuilder, e); resultBuf.append(e.getMessage()).append("\n");
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 1.8K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/entity/GeoInfo.java
return null; }).filter(q -> q != null).toArray(n -> new QueryBuilder[n]); if (queryBuilders.length == 1) { builder = queryBuilders[0]; } else if (queryBuilders.length > 1) { final BoolQueryBuilder boolQuery = QueryBuilders.boolQuery(); StreamUtil.stream(queryBuilders).of(stream -> stream.forEach(boolQuery::must)); builder = boolQuery; } }
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 4.7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/query/QueryCommand.java
import org.opensearch.index.query.DisMaxQueryBuilder; import org.opensearch.index.query.QueryBuilder; import org.opensearch.index.query.QueryBuilders; import org.opensearch.search.sort.SortBuilder; import org.opensearch.search.sort.SortBuilders; import org.opensearch.search.sort.SortOrder; public abstract class QueryCommand { public abstract QueryBuilder execute(final QueryContext context, final Query query, final float boost);
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Fri Oct 11 21:11:58 UTC 2024 - 6.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/query/DefaultQueryBuilderTest.java
* governing permissions and limitations under the License. */ package org.codelibs.fess.query; import org.codelibs.fess.unit.UnitFessTestCase; import org.opensearch.index.query.QueryBuilders; public class DefaultQueryBuilderTest extends UnitFessTestCase { public void test_invalid_null() { try { new DefaultQueryBuilder(null); fail();
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Jul 11 08:26:36 UTC 2024 - 1.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/query/PrefixQueryCommand.java
context.addHighlightedQuery(text); if (getQueryFieldConfig().notAnalyzedFieldSet.contains(field)) { return QueryBuilders.prefixQuery(field, toLowercaseWildcard(text)).boost(boost); } return QueryBuilders.matchPhrasePrefixQuery(field, toLowercaseWildcard(text)).boost(boost) .maxExpansions(fessConfig.getQueryPrefixExpansionsAsInteger()).slop(fessConfig.getQueryPrefixSlopAsInteger());
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 4.3K bytes - Viewed (0) -
fess-crawler-opensearch/src/test/java/org/codelibs/fess/crawler/service/impl/OpenSearchUrlQueueServiceTest.java
assertTrue(fesenClient.prepareSearch("fess_crawler.queue").setQuery(QueryBuilders.termQuery("sessionId", "sessionId")).setSize(0) .execute().actionGet().getHits().getTotalHits().value > 0); urlQueueService.delete("sessionId"); assertFalse(fesenClient.prepareSearch("fess_crawler.queue").setQuery(QueryBuilders.termQuery("sessionId", "sessionId")).setSize(0)
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Nov 07 04:44:10 UTC 2024 - 5.1K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/query/FuzzyQueryCommand.java
import org.codelibs.fess.util.ComponentUtil; import org.lastaflute.core.message.UserMessages; import org.opensearch.common.unit.Fuzziness; import org.opensearch.index.query.QueryBuilder; import org.opensearch.index.query.QueryBuilders; public class FuzzyQueryCommand extends QueryCommand { private static final Logger logger = LogManager.getLogger(FuzzyQueryCommand.class); @Override
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 4.3K bytes - Viewed (0)