/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* See LICENSE.txt included in this distribution for the specific
* language governing permissions and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at LICENSE.txt.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
*/
/**
* Utility class used to extract the terms used in a query
* This class will not find terms for MultiTermQuery, RangeQuery and PrefixQuery classes
* so the caller must pass a rewritten query (see query.rewrite) to obtain a list of
* expanded terms.
*
*/
public final class QueryMatchers {
/**
* Get the terms from a query and returs a list of DFAs which match
* a stream of tokens
*
* @param query the query to generate matchers for
* @param fields a map whose keys tell which fields to create matchers for,
* and whose values tell if the field is case insensitive (true) or
* case sensitive (false)
* @return list of LineMatching DFAs
*/
if (!caseSensitiveTerms.isEmpty()) {
}
if (!caseInsensitiveTerms.isEmpty()) {
}
return null;
}
return (m);
}
if (query instanceof BooleanQuery) {
} else if (query instanceof PhraseQuery) {
} else if (query instanceof WildcardQuery) {
} else if (query instanceof PrefixQuery) {
}
}
if (!queryClauses[i].isProhibited()) {
}
}
}
}
}
}
if (isCaseInsensitive(term)) {
} else {
}
}
}
}
}
}
}
/**
* Check whether a matcher should be created for a term.
*/
}
/**
* Check if a term should be matched in a case-insensitive manner. Should
* only be called on terms for which {@link #useTerm(Term)} returns true.
*/
}
}