Searched defs:term (Results 1 - 4 of 4) sorted by relevance
/opengrok/src/org/opensolaris/opengrok/search/context/ |
H A D | RegexpMatcher.java | 42 public RegexpMatcher(String term, boolean caseInsensitive) { argument 46 regexp = Pattern.compile(term, caseInsensitive ? Pattern.CASE_INSENSITIVE : 0 );
|
H A D | QueryMatchers.java | 101 String term = query.toString(query.getField()); 102 term = term.substring(1, term.length() - 1); //trim / from /regexp/ 103 matchers.add(new RegexpMatcher(term, true)); 128 Term term = query.getTerm(); 129 if (useTerm(term)) { 130 String text = term.text(); 131 if (isCaseInsensitive(term)) { 140 Term term 158 useTerm(Term term) argument 173 isCaseInsensitive(Term term) argument [all...] |
/opengrok/src/org/opensolaris/opengrok/search/ |
H A D | CustomQueryParser.java | 65 * Get a canonical form of a search term. This will convert the term to 69 * @param term the term to search for 70 * @return the canonical form of the search term, which matches how it is 76 private static String getCanonicalTerm(String field, String term) { argument 77 return isCaseSensitive(field) ? term : term.toLowerCase(); 84 protected Query getFuzzyQuery(String field, String term, float min) argument 86 return super.getFuzzyQuery(field, getCanonicalTerm(field, term), mi 90 getPrefixQuery(String field, String term) argument 108 getWildcardQuery(String field, String term) argument [all...] |
/opengrok/src/org/opensolaris/opengrok/web/ |
H A D | SearchHelper.java | 323 // Bug #3900: Check if this is a search for a single term, and that 324 // term is a definition. If that's the case, and we only have one match, 330 // one single definition term AND we have exactly one match AND there 360 private void getSuggestion(Term term, IndexReader ir, argument 362 if (term == null) { 365 String[] toks = TABSPACE.split(term.text(), 0); 368 SuggestWord[] words = checker.suggestSimilar(new Term(term.field(), tok),
|
Completed in 10 milliseconds