@Test public void testSQLTranslationFailure() throws ParseException { try { parser.getLikeQuery("example", "_%woof_\\" , null); Assert.fail(); } catch(FTSQueryException e) { } }
public Query getLikeQuery(String field, String sqlLikeClause, AnalysisMode analysisMode) throws ParseException { String luceneWildCardExpression = translate(sqlLikeClause); return getWildcardQuery(field, luceneWildCardExpression, AnalysisMode.LIKE); }
Solr4QueryParser extends QueryParser implements QueryConstants { public Query getLikeQuery(String field, String sqlLikeClause, AnalysisMode analysisMode) throws ParseException { String luceneWildCardExpression = translate(sqlLikeClause); return getWildcardQuery(field, luceneWildCardExpression, AnalysisMode.LIKE); } }
Solr4QueryParser extends QueryParser implements QueryConstants { public Query getLikeQuery(String field, String sqlLikeClause, AnalysisMode analysisMode) throws ParseException { String luceneWildCardExpression = translate(sqlLikeClause); return getWildcardQuery(field, luceneWildCardExpression, AnalysisMode.LIKE); } Solr4QueryParser(SolrQueryRequest req, Version matchVersion, String f, Analyzer a,
            FTSQueryParser.RerankPhase rerankPhase); }
Solr4QueryParser extends QueryParser implements QueryConstants { public Query getLikeQuery(String field, String sqlLikeClause, AnalysisMode analysisMode) throws ParseException { String luceneWildCardExpression = translate(sqlLikeClause); return getWildcardQuery(field, luceneWildCardExpression, AnalysisMode.LIKE); } Solr4QueryParser(SolrQueryRequest req, Version matchVersion, String f, Analyzer a,
            FTSQueryParser.RerankPhase rerankPhase); void setTopTermSpanRewriteLimit(int topTermSpanRewriteLimit); void setSearchParameters(SearchParameters searchParameters); void setNamespacePrefixResolver(NamespacePrefixResolver namespacePrefixResolver); void setTenantService(TenantService tenantService); SearchParameters getSearchParameters(); Query getFieldQuery(String field, String queryText, AnalysisMode analysisMode, int slop,
            LuceneFunction luceneFunction); Query getLikeQuery(String field, String sqlLikeClause, AnalysisMode analysisMode); Query getDoesNotMatchFieldQuery(String field, String queryText, AnalysisMode analysisMode,
            LuceneFunction luceneFunction); Query getFieldQuery(String field, String queryText); Query getSpanQuery(String field, String first, String last, int slop, boolean inOrder); @SuppressWarnings("deprecation") Query getFieldQuery(String field, String queryText, AnalysisMode analysisMode, LuceneFunction luceneFunction); Query getRangeQuery(String field, String part1, String part2, boolean includeLower, boolean includeUpper,
            AnalysisMode analysisMode, LuceneFunction luceneFunction); @Override Query getPrefixQuery(String field, String termStr); @SuppressWarnings("deprecation") Query getPrefixQuery(String field, String termStr, AnalysisMode analysisMode); @Override Query getWildcardQuery(String field, String termStr); @SuppressWarnings("deprecation") Query getWildcardQuery(String field, String termStr, AnalysisMode analysisMode); @SuppressWarnings("deprecation") @Override Query getFuzzyQuery(String field, String termStr, float minSimilarity); void setDictionaryService(DictionaryService dictionaryService); Query getSuperFieldQuery(String field, String queryText, AnalysisMode analysisMode,
            LuceneFunction luceneFunction); Query getSuperFuzzyQuery(String field, String termStr, float minSimilarity); Query getSuperPrefixQuery(String field, String termStr); Query getSuperWildcardQuery(String field, String termStr); boolean addContentCrossLocaleWildcards(); }
Solr4QueryParser extends QueryParser implements QueryConstants { public Query getLikeQuery(String field, String sqlLikeClause, AnalysisMode analysisMode) throws ParseException { String luceneWildCardExpression = translate(sqlLikeClause); return getWildcardQuery(field, luceneWildCardExpression, AnalysisMode.LIKE); } Solr4QueryParser(SolrQueryRequest req, Version matchVersion, String f, Analyzer a,
            FTSQueryParser.RerankPhase rerankPhase); void setTopTermSpanRewriteLimit(int topTermSpanRewriteLimit); void setSearchParameters(SearchParameters searchParameters); void setNamespacePrefixResolver(NamespacePrefixResolver namespacePrefixResolver); void setTenantService(TenantService tenantService); SearchParameters getSearchParameters(); Query getFieldQuery(String field, String queryText, AnalysisMode analysisMode, int slop,
            LuceneFunction luceneFunction); Query getLikeQuery(String field, String sqlLikeClause, AnalysisMode analysisMode); Query getDoesNotMatchFieldQuery(String field, String queryText, AnalysisMode analysisMode,
            LuceneFunction luceneFunction); Query getFieldQuery(String field, String queryText); Query getSpanQuery(String field, String first, String last, int slop, boolean inOrder); @SuppressWarnings("deprecation") Query getFieldQuery(String field, String queryText, AnalysisMode analysisMode, LuceneFunction luceneFunction); Query getRangeQuery(String field, String part1, String part2, boolean includeLower, boolean includeUpper,
            AnalysisMode analysisMode, LuceneFunction luceneFunction); @Override Query getPrefixQuery(String field, String termStr); @SuppressWarnings("deprecation") Query getPrefixQuery(String field, String termStr, AnalysisMode analysisMode); @Override Query getWildcardQuery(String field, String termStr); @SuppressWarnings("deprecation") Query getWildcardQuery(String field, String termStr, AnalysisMode analysisMode); @SuppressWarnings("deprecation") @Override Query getFuzzyQuery(String field, String termStr, float minSimilarity); void setDictionaryService(DictionaryService dictionaryService); Query getSuperFieldQuery(String field, String queryText, AnalysisMode analysisMode,
            LuceneFunction luceneFunction); Query getSuperFuzzyQuery(String field, String termStr, float minSimilarity); Query getSuperPrefixQuery(String field, String termStr); Query getSuperWildcardQuery(String field, String termStr); boolean addContentCrossLocaleWildcards();  }