### Question:
LuceneToJexlQueryParser implements QueryParser { public void setAnalyzer(Analyzer analyzer) { this.analyzer = analyzer; } LuceneToJexlQueryParser(); @Override QueryNode parse(String query); JexlNode convertToJexlNode(String query); boolean isTokenizeUnfieldedQueries(); void setTokenizeUnfieldedQueries(boolean tokenizeUnfieldedQueries); boolean isPositionIncrementsEnabled(); void setPositionIncrementsEnabled(boolean positionIncrementsEnabled); Set<String> getTokenizedFields(); void setTokenizedFields(Set<String> tokenizedFields); Set<String> getSkipTokenizeUnfieldedFields(); void setSkipTokenizeUnfieldedFields(Set<String> skipTokenizeUnfieldedFields); boolean isAllowLeadingWildCard(); void setAllowLeadingWildCard(boolean allowLeadingWildCard); Set<String> getAllowedFields(); void setAllowedFields(Set<String> allowedFields); Boolean getAllowAnyField(); void setAllowAnyField(Boolean allowAnyField); boolean isUseSlopForTokenizedTerms(); void setUseSlopForTokenizedTerms(boolean useSlopForTokenizedTerms); Analyzer getAnalyzer(); void setAnalyzer(Analyzer analyzer); List<JexlQueryFunction> getAllowedFunctions(); void setAllowedFunctions(List<JexlQueryFunction> allowedFunctions); static final ConfigurationKey<Set<String>> TOKENIZED_FIELDS; static final ConfigurationKey<Boolean> TOKENIZE_UNFIELDED_QUERIES; static final ConfigurationKey<Set<String>> SKIP_TOKENIZE_UNFIELDED_FIELDS; static final ConfigurationKey<Set<String>> ALLOWED_FIELDS; static final ConfigurationKey<Boolean> ALLOW_ANY_FIELD_QUERIES; static final ConfigurationKey<Boolean> USE_SLOP_FOR_TOKENIZED_TERMS; }### Answer:
@Test public void testTokenizedFieldNoAnalyzer() throws ParseException { parser.setAnalyzer(null); Assert.assertEquals("TOKFIELD == '1234 5678 to bird'", parseQuery("TOKFIELD:1234\\ 5678\\ to\\ bird")); Assert.assertEquals("TOKFIELD == '1234 5678 to bird'", parseQuery("TOKFIELD:\"1234\\ 5678\\ to\\ bird\"")); }
@Test public void testSkipTokenizedFieldsNoAnalyzer() throws ParseException { parser.setAnalyzer(null); Assert.assertEquals(Constants.ANY_FIELD + " == '5678 1234 to bird'", parseQuery("NOTOKEN:5678\\ 1234\\ to\\ bird")); }