Searched refs:termStr (Results 1 - 10 of 10) sorted by relevance

/lucene-3.6.0/solr/core/src/java/org/apache/solr/search/
H A DSolrQueryParser.java217 protected Query getPrefixQuery(String field, String termStr) throws ParseException { argument
220 termStr = termStr.toLowerCase();
223 termStr = analyzeIfMultitermTermText(field, termStr, schema.getFieldType(field));
226 return newPrefixQuery(new Term(field, termStr));
229 protected Query getWildcardQuery(String field, String termStr) throws ParseException { argument
231 if ("*".equals(field) && "*".equals(termStr)) {
235 termStr = analyzeIfMultitermTermText(field, termStr, fieldTyp
[all...]
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/analyzing/
H A DAnalyzingQueryParser.java71 * @param termStr Term token that contains one or more wild card
78 protected Query getWildcardQuery(String field, String termStr) throws ParseException { argument
83 boolean isWithinToken = (!termStr.startsWith("?") && !termStr.startsWith("*"));
85 char[] chars = termStr.toCharArray();
86 for (int i = 0; i < termStr.length(); i++) {
113 source = getAnalyzer().reusableTokenStream(field, new StringReader(termStr));
159 * with a termStr containing no wildcard ... */
189 * @param termStr Term token to use for building term for the query
196 protected Query getPrefixQuery(String field, String termStr) throw argument
249 getFuzzyQuery(String field, String termStr, float minSimilarity) argument
[all...]
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/queryParser/
H A DMultiFieldQueryParser.java164 protected Query getFuzzyQuery(String field, String termStr, float minSimilarity) throws ParseException argument
169 clauses.add(new BooleanClause(getFuzzyQuery(fields[i], termStr, minSimilarity),
174 return super.getFuzzyQuery(field, termStr, minSimilarity);
178 protected Query getPrefixQuery(String field, String termStr) throws ParseException argument
183 clauses.add(new BooleanClause(getPrefixQuery(fields[i], termStr),
188 return super.getPrefixQuery(field, termStr);
192 protected Query getWildcardQuery(String field, String termStr) throws ParseException { argument
196 clauses.add(new BooleanClause(getWildcardQuery(fields[i], termStr),
201 return super.getWildcardQuery(field, termStr);
H A DQueryParser.jj1002 * @param termStr Term token that contains one or more wild card
1008 protected Query getWildcardQuery(String field, String termStr) throws ParseException
1011 if ("*".equals(termStr)) return newMatchAllDocsQuery();
1013 if (!allowLeadingWildcard && (termStr.startsWith("*") || termStr.startsWith("?")))
1016 termStr = termStr.toLowerCase();
1018 Term t = new Term(field, termStr);
1039 * @param termStr Term token to use for building term for the query
1045 protected Query getPrefixQuery(String field, String termStr) throw
[all...]
H A DQueryParser.java978 * @param termStr Term token that contains one or more wild card
984 protected Query getWildcardQuery(String field, String termStr) throws ParseException argument
987 if ("*".equals(termStr)) return newMatchAllDocsQuery();
989 if (!allowLeadingWildcard && (termStr.startsWith("*") || termStr.startsWith("?")))
992 termStr = termStr.toLowerCase();
994 Term t = new Term(field, termStr);
1015 * @param termStr Term token to use for building term for the query
1021 protected Query getPrefixQuery(String field, String termStr) throw argument
1043 getFuzzyQuery(String field, String termStr, float minSimilarity) argument
[all...]
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/complexPhrase/
H A DComplexPhraseQueryParser.java154 protected Query getWildcardQuery(String field, String termStr) argument
159 return super.getWildcardQuery(field, termStr);
186 protected Query getFuzzyQuery(String field, String termStr, argument
191 return super.getFuzzyQuery(field, termStr, minSimilarity);
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/
H A DQueryParserWrapper.java395 protected Query getPrefixQuery(String field, String termStr) argument
400 protected Query getWildcardQuery(String field, String termStr) argument
405 protected Query getFuzzyQuery(String field, String termStr, argument
/lucene-3.6.0/lucene/test-framework/src/java/org/apache/lucene/queryParser/
H A DQueryParserTestBase.java136 protected Query getFuzzyQuery(String field, String termStr, float minSimilarity) throws ParseException { argument
141 protected Query getWildcardQuery(String field, String termStr) throws ParseException { argument
969 protected Query getWildcardQuery(String field, String termStr) throws ParseException {
972 return new TermQuery(new Term(field,termStr));
975 protected Query getPrefixQuery(String field, String termStr) throws ParseException {
978 return new TermQuery(new Term(field,termStr));
/lucene-3.6.0/lucene/backwards/src/test-framework/java/org/apache/lucene/queryParser/
H A DQueryParserTestBase.java133 protected Query getFuzzyQuery(String field, String termStr, float minSimilarity) throws ParseException { argument
138 protected Query getWildcardQuery(String field, String termStr) throws ParseException { argument
961 protected Query getWildcardQuery(String field, String termStr) throws ParseException {
964 return new TermQuery(new Term(field,termStr));
967 protected Query getPrefixQuery(String field, String termStr) throws ParseException {
970 return new TermQuery(new Term(field,termStr));
/lucene-3.6.0/lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/standard/
H A DTestQueryParserWrapper.java152 protected Query getFuzzyQuery(String field, String termStr, argument
158 protected Query getWildcardQuery(String field, String termStr) argument
1051 // protected Query getWildcardQuery(String field, String termStr) throws
1055 // return new TermQuery(new Term(field,termStr));
1057 // protected Query getPrefixQuery(String field, String termStr) throws
1061 // return new TermQuery(new Term(field,termStr));

Completed in 34 milliseconds