Lines Matching defs:term
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 = query.getTerm();
141 if (useTerm(term)) {
143 new WildCardMatcher(term.text(), isCaseInsensitive(term)));
148 Term term = query.getPrefix();
149 if (useTerm(term)) {
151 new PrefixMatcher(term.text(), isCaseInsensitive(term)));
156 * Check whether a matcher should be created for a term.
158 private boolean useTerm(Term term) {
159 return useTerm(term.field());
163 * Check whether a matcher should be created for a term.
170 * Check if a term should be matched in a case-insensitive manner. Should
173 private boolean isCaseInsensitive(Term term) {
174 return fields.get(term.field());