Searched refs:term (Results 1 - 9 of 9) sorted by relevance

/opengrok-sun/src/org/opensolaris/opengrok/search/
H A DCustomQueryParser.java66 * Get a canonical form of a search term. This will convert the term to
70 * @param term the term to search for
71 * @return the canonical form of the search term, which matches how it is
77 private static String getCanonicalTerm(String field, String term) { argument
78 return isCaseSensitive(field) ? term : term.toLowerCase();
85 protected Query getFuzzyQuery(String field, String term, float min) argument
87 return super.getFuzzyQuery(field, getCanonicalTerm(field, term), mi
91 getPrefixQuery(String field, String term) argument
109 getWildcardQuery(String field, String term) argument
[all...]
H A DSummarizer.java168 // If we find a term that's in the query...
183 // SUM_CONTEXT beyond the last query-term.
214 // We found the series of search-term hits and added
220 // Add the words since the last hit-term insert.
289 CharTermAttribute term = ts.addAttribute(CharTermAttribute.class);
292 Token t=new Token(term.buffer(),0,term.length(),offset.startOffset(),offset.endOffset());
/opengrok-sun/src/org/opensolaris/opengrok/search/context/
H A DQueryMatchers.java117 Term term = query.getTerm();
118 if (useTerm(term)) {
119 String text = term.text();
120 if (isCaseInsensitive(term)) {
129 Term term = query.getTerm();
130 if (useTerm(term)) {
132 new WildCardMatcher(term.text(), isCaseInsensitive(term)));
137 Term term = query.getPrefix();
138 if (useTerm(term)) {
147 useTerm(Term term) argument
155 isCaseInsensitive(Term term) argument
[all...]
/opengrok-sun/src/org/opensolaris/opengrok/analysis/
H A DHash2Tokenizer.java34 String term; field in class:Hash2Tokenizer
59 term = keys.next();
60 terms = term.split("[^a-zA-Z_0-9]+");
/opengrok-sun/test/org/opensolaris/opengrok/analysis/php/
H A DPhpSymbolTokenizerTest.java39 CharTermAttribute term = ts.addAttribute(CharTermAttribute.class);
42 l.add(term.toString());
/opengrok-sun/test/org/opensolaris/opengrok/analysis/
H A DJFlexTokenizerTest.java96 CharTermAttribute term = tokenizer.addAttribute(CharTermAttribute.class);
103 assertEquals("term", expected, term.toString());
119 * the indexed term in that case.
/opengrok-sun/test/org/opensolaris/opengrok/search/context/
H A DContextTest.java73 String term = "qwerty";
76 QueryBuilder qb = new QueryBuilder().setDefs(term);
81 qb = new QueryBuilder().setRefs(term);
86 qb = new QueryBuilder().setFreetext(term);
91 qb = new QueryBuilder().setHist(term);
96 qb = new QueryBuilder().setPath(term);
101 qb = new QueryBuilder().setHist(term).setFreetext(term);
132 // Search freetext for the term "def"
/opengrok-sun/src/org/opensolaris/opengrok/index/
H A DIndexDatabase.java389 while (uidIter != null && uidIter.term() != null && uidIter.term().utf8ToString().startsWith(startuid)) {
572 * Remove a stale file (uidIter.term().text()) from the index database (and
578 String path = Util.uid2url(uidIter.term().utf8ToString());
583 writer.deleteDocuments(new Term(QueryBuilder.U, uidIter.term()));
858 while (uidIter.term() != null
859 && uidIter.term().compareTo(buid) < 0) {
864 if (uidIter.term() != null
865 && uidIter.term().bytesEquals(buid)) {
979 while (iter.term() !
[all...]
/opengrok-sun/src/org/opensolaris/opengrok/web/
H A DSearchHelper.java279 // Bug #3900: Check if this is a search for a single term, and that
280 // term is a definition. If that's the case, and we only have one match,
286 // one single definition term AND we have exactly one match AND there
316 private static void getSuggestion(String term, SpellChecker checker, argument
318 if (term == null) {
321 String[] toks = TABSPACE.split(term, 0);

Completed in 16 milliseconds