@Test public void shouldParseStringWithSqlStyleWildcardCharactersInMultipleTerms() { Term result = parser.parse("term% term_ %term_"); assertThat(result, is(notNullValue())); assertThat(result, is(instanceOf(Conjunction.class))); Conjunction conjunction = (Conjunction)result; assertHasSimpleTerms(conjunction, "term%", "term_", "%term_"); }
public Term parse( String fullTextSearchExpression ) { CheckArg.isNotNull(fullTextSearchExpression, "fullTextSearchExpression"); Tokenizer tokenizer = new TermTokenizer(); TokenStream stream = new TokenStream(fullTextSearchExpression, tokenizer, false); return parse(stream.start()); }
FullTextSearchParser implements QueryParser { public Term parse( String fullTextSearchExpression ) { CheckArg.isNotNull(fullTextSearchExpression, "fullTextSearchExpression"); Tokenizer tokenizer = new TermTokenizer(); TokenStream stream = new TokenStream(fullTextSearchExpression, tokenizer, false); return parse(stream.start()); } }
FullTextSearchParser implements QueryParser { public Term parse( String fullTextSearchExpression ) { CheckArg.isNotNull(fullTextSearchExpression, "fullTextSearchExpression"); Tokenizer tokenizer = new TermTokenizer(); TokenStream stream = new TokenStream(fullTextSearchExpression, tokenizer, false); return parse(stream.start()); }  }
FullTextSearchParser implements QueryParser { public Term parse( String fullTextSearchExpression ) { CheckArg.isNotNull(fullTextSearchExpression, "fullTextSearchExpression"); Tokenizer tokenizer = new TermTokenizer(); TokenStream stream = new TokenStream(fullTextSearchExpression, tokenizer, false); return parse(stream.start()); }  @Override String getLanguage(); @Override QueryCommand parseQuery( String query,
                                    TypeSystem typeSystem ); Term parse( String fullTextSearchExpression ); Term parse( TokenStream tokens ); }
FullTextSearchParser implements QueryParser { public Term parse( String fullTextSearchExpression ) { CheckArg.isNotNull(fullTextSearchExpression, "fullTextSearchExpression"); Tokenizer tokenizer = new TermTokenizer(); TokenStream stream = new TokenStream(fullTextSearchExpression, tokenizer, false); return parse(stream.start()); }  @Override String getLanguage(); @Override QueryCommand parseQuery( String query,
                                    TypeSystem typeSystem ); Term parse( String fullTextSearchExpression ); Term parse( TokenStream tokens ); static final String LANGUAGE; }