Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 59 for getTerm (0.08 sec)

  1. src/test/java/org/codelibs/fess/query/parser/QueryParserTest.java

            assertEquals("_default:fess", ((PhraseQuery) query).getTerms()[0].toString());
    
            query = queryParser.createDefaultFilterChain().parse("\"fess codelibs\"");
            assertEquals(PhraseQuery.class, query.getClass());
            assertEquals("_default:fess", ((PhraseQuery) query).getTerms()[0].toString());
            assertEquals("_default:codelibs", ((PhraseQuery) query).getTerms()[1].toString());
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/helper/RelatedContentHelper.java

                    relatedContentMap.put(key, pair);
                }
                if (entity.getTerm().startsWith(regexPrefix)) {
                    final String regex = entity.getTerm().substring(regexPrefix.length());
                    if (StringUtil.isBlank(regex)) {
                        logger.warn("Unknown regex pattern: {}", entity.getTerm());
                    } else {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/query/WildcardQueryCommand.java

            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);
            }
    
            final String query = wildcardQuery.getTerm().toString();
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/suggest/settings/AnalyzerSettingsTest.java

            int matchCount = 0;
            for (int i = 0; i < tokens.size(); i++) {
                final String term = tokens.get(i).getTerm();
                final String reading = readingTokens.get(i).getTerm();
                switch (term) {
                case "fess":
                    matchCount++;
                    assertEquals("fess", reading);
                    break;
                case "検索":
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/suggest/converter/AnalyzerConverter.java

                    int offset = 0;
                    for (int i = 0; i < readingTokenList.size(); i++) {
                        final String term = termTokenList.get(i).getTerm();
                        String reading = readingTokenList.get(i).getTerm();
                        if (Strings.isNullOrEmpty(reading)) {
                            reading = term;
                        }
                        reading = transliterator.transliterate(reading);
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/suggest/util/SuggestUtil.java

            } catch (final Exception e) {
                return keywords;
            }
            for (final TermQuery tq : termQueryList) {
                final String text = tq.getTerm().text();
                if (0 == text.length() || keywords.contains(text)) {
                    continue;
                }
                keywords.add(text);
            }
            return keywords;
        }
    
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/suggest/normalizer/AnalyzerNormalizer.java

                final List<AnalyzeToken> termTokenList = termResponse.getTokens();
                if (termTokenList.isEmpty()) {
                    return text;
                }
    
                return termTokenList.get(0).getTerm();
            }
        }
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/helper/KeyMatchHelper.java

                            queryMap = new HashMap<>();
                            keyMatchQueryMap.put(virtualHost, queryMap);
                        }
                        final String termKey = toLowerCase(keyMatch.getTerm());
                        List<Tuple3<String, QueryBuilder, ScoreFunctionBuilder<?>>> boostList = queryMap.get(termKey);
                        if (boostList == null) {
                            boostList = new ArrayList<>();
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/helper/RelatedQueryHelper.java

                if (map == null) {
                    map = new HashMap<>();
                    relatedQueryMap.put(key, map);
                }
                map.put(toLowerCase(entity.getTerm()), entity.getQueries());
            });
            this.relatedQueryMap = relatedQueryMap;
            return relatedQueryMap.size();
        }
    
        protected String getHostKey(final RelatedQuery entity) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/query/TermQueryCommand.java

        protected QueryBuilder convertTermQuery(final QueryContext context, final TermQuery termQuery, final float boost) {
            final String field = getSearchField(context.getDefaultField(), termQuery.getTerm().field());
            final String text = termQuery.getTerm().text();
            final FessConfig fessConfig = ComponentUtil.getFessConfig();
            return convertTermQuery(fessConfig, context, termQuery, boost, field, text);
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 12 01:54:15 UTC 2024
    - 10K bytes
    - Viewed (0)
Back to top