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

/opengrok-jel/src/org/opensolaris/opengrok/search/
H A DCustomQueryParser.java66 * Get a canonical form of a search term. This will convert the term
70 * @param term the term to search for
71 * @return the canonical form of the search term, which matches how it
77 private static String getCanonicalTerm(String field, String term) { argument
78 return isCaseSensitive(field) ? term : term.toLowerCase();
86 protected Query getFuzzyQuery(String field, String term, float min) argument
88 return super.getFuzzyQuery(field, getCanonicalTerm(field, term), mi
92 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-jel/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-jel/src/org/opensolaris/opengrok/analysis/
H A DHash2TokenStream.java32 String term; field in class:Hash2TokenStream
45 term = keys.next();
46 terms = term.split("[^a-zA-Z_0-9]+");
/opengrok-jel/test/org/opensolaris/opengrok/analysis/php/
H A DPhpSymbolTokenizerTest.java44 CharTermAttribute term = ts.addAttribute(CharTermAttribute.class);
47 l.add(term.toString());
/opengrok-jel/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-jel/test/org/opensolaris/opengrok/search/context/
H A DContextTest.java80 String term = "qwerty";
83 QueryBuilder qb = new QueryBuilder().setDefs(term);
88 qb = new QueryBuilder().setRefs(term);
93 qb = new QueryBuilder().setFreetext(term);
98 qb = new QueryBuilder().setHist(term);
103 qb = new QueryBuilder().setPath(term);
108 qb = new QueryBuilder().setHist(term).setFreetext(term);
143 // Search freetext for the term "def"
/opengrok-jel/src/org/opensolaris/opengrok/index/
H A DIndexDatabase.java381 while (uidIter.term() != null && uidIter.term().field().equals("u")
382 && uidIter.term().text().startsWith(startuid))
555 * Remove a stale file (uidIter.term().text()) from the index database
560 String path = Util.uid2url(uidIter.term().text());
565 writer.deleteDocuments(uidIter.term());
843 while (uidIter.term() != null
844 && uidIter.term().field().equals("u")
845 && uidIter.term().text().compareTo(uid) < 0)
851 if (uidIter.term() !
[all...]
/opengrok-jel/src/org/opensolaris/opengrok/web/
H A DSearchHelper.java254 // Bug #3900: Check if this is a search for a single term, and that
255 // term is a definition. If that's the case, and we only have one match,
261 // one single definition term AND we have exactly one match AND there
291 private static void getSuggestion(String term, SpellChecker checker, argument
293 if (term == null) {
296 String[] toks = TABSPACE.split(term, 0);

Completed in 29 milliseconds