Lines Matching refs:query
41 * Utility class used to extract the terms used in a query
43 * so the caller must pass a rewritten query (see query.rewrite) to obtain a list of
53 * Get the terms from a query and returs a list of DFAs which match
56 * @param query the query to generate matchers for
62 public LineMatcher[] getMatchers(Query query, Map<String, Boolean> fields) {
67 getTerms(query);
81 private void getTerms(Query query) {
82 if (query instanceof BooleanQuery) {
83 getBooleans((BooleanQuery) query);
84 } else if (query instanceof PhraseQuery) {
85 getPhrases((PhraseQuery) query);
86 } else if (query instanceof WildcardQuery) {
87 getWildTerm((WildcardQuery) query);
88 } else if (query instanceof TermQuery) {
89 getTerm((TermQuery) query);
90 } else if (query instanceof PrefixQuery) {
91 getPrefix((PrefixQuery) query);
95 private void getBooleans(BooleanQuery query) {
96 BooleanClause[] queryClauses = query.getClauses();
104 private void getPhrases(PhraseQuery query) {
105 Term[] queryTerms = query.getTerms();
116 private void getTerm(TermQuery query) {
117 Term term = query.getTerm();
128 private void getWildTerm(WildcardQuery query) {
129 Term term = query.getTerm();
136 private void getPrefix(PrefixQuery query) {
137 Term term = query.getPrefix();