Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 53 for queryBuilders (0.09 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. src/test/java/org/codelibs/fess/query/QueryProcessorTest.java

                        called.set(true);
                        return QueryBuilders.boolQuery();
                    };
                }
            };
            queryProcessor.init();
    
            QueryContext context = new QueryContext(null, false);
            MatchAllDocsQuery query = new MatchAllDocsQuery();
    
            QueryBuilder queryBuilder = queryProcessor.execute(context, query, 1.0f);
            assertTrue(called.get());
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/query/BooleanQueryCommand.java

        }
    
        protected QueryBuilder convertBooleanQuery(final QueryContext context, final BooleanQuery booleanQuery, final float boost) {
            final BoolQueryBuilder boolQuery = QueryBuilders.boolQuery();
            for (final BooleanClause clause : booleanQuery.clauses()) {
                final QueryBuilder queryBuilder = getQueryProcessor().execute(context, clause.getQuery(), boost);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.9K bytes
    - Viewed (0)
Back to top