- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for addHighlightedQuery (0.41 sec)
-
src/main/java/org/codelibs/fess/query/TermQueryCommand.java
final float boost, final String field, final String text) { context.addFieldLog(field, text); context.addHighlightedQuery(text); return buildMatchPhraseQuery(field, text).boost(boost); } protected QueryBuilder convertKeywordQuery(final FessConfig fessConfig, final QueryContext context, final TermQuery termQuery,
Registered: 2024-10-31 13:40 - Last Modified: 2024-10-12 01:54 - 10K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/query/WildcardQueryCommand.java
if (Constants.DEFAULT_FIELD.equals(field)) { final String text = wildcardQuery.getTerm().text(); context.addFieldLog(field, text); context.addHighlightedQuery(StringUtils.strip(text, "*")); return buildDefaultQueryBuilder(fessConfig, context, (f, b) -> QueryBuilders.wildcardQuery(f, toLowercaseWildcard(text)).boost(b * boost)); }
Registered: 2024-10-31 13:40 - Last Modified: 2024-02-22 01:37 - 4.1K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/query/FuzzyQueryCommand.java
if (Constants.DEFAULT_FIELD.equals(field)) { final String text = term.text(); context.addFieldLog(field, text); context.addHighlightedQuery(text); return buildDefaultQueryBuilder(fessConfig, context, (f, b) -> QueryBuilders.fuzzyQuery(f, text).fuzziness(Fuzziness.fromEdits(fuzzyQuery.getMaxEdits())).boost(b * boost)
Registered: 2024-10-31 13:40 - Last Modified: 2024-02-22 01:37 - 4.3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/query/PrefixQueryCommand.java
final String text = prefixQuery.getPrefix().text(); if (Constants.DEFAULT_FIELD.equals(field)) { context.addFieldLog(field, text + "*"); context.addHighlightedQuery(text); return buildDefaultQueryBuilder(fessConfig, context, (f, b) -> QueryBuilders.matchPhrasePrefixQuery(f, toLowercaseWildcard(text)).boost(b * boost)
Registered: 2024-10-31 13:40 - Last Modified: 2024-02-22 01:37 - 4.3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/query/PhraseQueryCommand.java
stream(texts).of(stream -> stream.forEach(t -> context.addHighlightedQuery(t))); return buildDefaultQueryBuilder(fessConfig, context, (f, b) -> buildMatchPhraseQuery(f, text).boost(b * boost)); } if (isSearchField(field)) { context.addFieldLog(field, text); stream(texts).of(stream -> stream.forEach(t -> context.addHighlightedQuery(t))); return buildMatchPhraseQuery(field, text);
Registered: 2024-10-31 13:40 - Last Modified: 2024-02-22 01:37 - 3.8K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/query/TermRangeQueryCommand.java
queryBuf.append(termRangeQuery.includesUpper() ? ']' : '}'); final String origQuery = queryBuf.toString(); context.addFieldLog(Constants.DEFAULT_FIELD, origQuery); context.addHighlightedQuery(origQuery); return buildDefaultQueryBuilder(fessConfig, context, (f, b) -> QueryBuilders.matchPhraseQuery(f, origQuery).boost(b)); } context.addFieldLog(field, termRangeQuery.toString(field));
Registered: 2024-10-31 13:40 - Last Modified: 2024-10-11 21:11 - 4.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/entity/QueryContext.java
if (fieldLogMap != null) { return fieldLogMap.getOrDefault(Constants.DEFAULT_FIELD, Collections.emptyList()); } return Collections.emptyList(); } public void addHighlightedQuery(final String text) { if (highlightedQuerySet != null) { highlightedQuerySet.add(text); } } public String getQueryString() { return queryString; }
Registered: 2024-10-31 13:40 - Last Modified: 2024-10-11 21:11 - 5.8K bytes - Viewed (0)