@Test public void testBuildQueryFromNativeSearchString() { ProjectionSearchRequestBuilderTestHelper sutSubclass = new ProjectionSearchRequestBuilderTestHelper(); final org.hibernate.search.jpa.FullTextQuery preparedQuery = context.mock( org.hibernate.search.jpa.FullTextQuery.class, "preparedQuery"); sutSubclass.setPreparedQuery(preparedQuery); final QueryParserBuilder basicQueryParserBuilder = context.mock(QueryParserBuilder.class, "basic query parser"); sutSubclass.setQueryParserBuilder(basicQueryParserBuilder); final QueryParser queryParser = context.mock(QueryParser.class); context.checking(new Expectations() { { one(basicQueryParserBuilder).buildQueryParser(); will(returnValue(queryParser)); } }); sutSubclass.buildQueryFromNativeSearchString("field1:(hi there foo bar) or field2:(hi there foo bar)"); assertSame(queryParser, sutSubclass.getPreparedQueryQueryParser()); assertEquals("field1:(hi there foo bar) or field2:(hi there foo bar)", sutSubclass .getPrepareQueryNativeSearchString()); context.assertIsSatisfied(); }
public org.hibernate.search.jpa.FullTextQuery buildQueryFromNativeSearchString(final String nativeSearchString) { if (log.isInfoEnabled()) { log.info("User attempting native lucene search: " + nativeSearchString); } return prepareQuery(queryParserBuilder.buildQueryParser(), nativeSearchString); }
ProjectionSearchRequestBuilder { public org.hibernate.search.jpa.FullTextQuery buildQueryFromNativeSearchString(final String nativeSearchString) { if (log.isInfoEnabled()) { log.info("User attempting native lucene search: " + nativeSearchString); } return prepareQuery(queryParserBuilder.buildQueryParser(), nativeSearchString); } }
ProjectionSearchRequestBuilder { public org.hibernate.search.jpa.FullTextQuery buildQueryFromNativeSearchString(final String nativeSearchString) { if (log.isInfoEnabled()) { log.info("User attempting native lucene search: " + nativeSearchString); } return prepareQuery(queryParserBuilder.buildQueryParser(), nativeSearchString); } ProjectionSearchRequestBuilder(); }
ProjectionSearchRequestBuilder { public org.hibernate.search.jpa.FullTextQuery buildQueryFromNativeSearchString(final String nativeSearchString) { if (log.isInfoEnabled()) { log.info("User attempting native lucene search: " + nativeSearchString); } return prepareQuery(queryParserBuilder.buildQueryParser(), nativeSearchString); } ProjectionSearchRequestBuilder(); @PersistenceContext void setEntityManager(final EntityManager newEntityManager); org.hibernate.search.jpa.FullTextQuery buildQueryFromNativeSearchString(final String nativeSearchString); org.hibernate.search.jpa.FullTextQuery buildQueryFromSearchText(final String searchText); org.hibernate.search.jpa.FullTextQuery buildQueryFromSearchText(final String searchText,
            final String constraints); org.hibernate.search.jpa.FullTextQuery setPaging(final org.hibernate.search.jpa.FullTextQuery query,
            final int from, final int to); String escapeAllButWildcardCharacters(final String s); String escape(final String s); void setResultTypes(final Class< ? >[] theResultTypes); void setSearchStringFormat(final String theSearchStringFormat); void setResultTransformer(final ResultTransformer theResultTransformer); void setQueryParserBuilder(final QueryParserBuilder inQueryParserBuilder); void setResultFields(final List<String> theResultFields); void setAdvancedQueryParserBuilder(final QueryParserBuilder inAdvancedQueryParserBuilder); String getEntityNames(); }
ProjectionSearchRequestBuilder { public org.hibernate.search.jpa.FullTextQuery buildQueryFromNativeSearchString(final String nativeSearchString) { if (log.isInfoEnabled()) { log.info("User attempting native lucene search: " + nativeSearchString); } return prepareQuery(queryParserBuilder.buildQueryParser(), nativeSearchString); } ProjectionSearchRequestBuilder(); @PersistenceContext void setEntityManager(final EntityManager newEntityManager); org.hibernate.search.jpa.FullTextQuery buildQueryFromNativeSearchString(final String nativeSearchString); org.hibernate.search.jpa.FullTextQuery buildQueryFromSearchText(final String searchText); org.hibernate.search.jpa.FullTextQuery buildQueryFromSearchText(final String searchText,
            final String constraints); org.hibernate.search.jpa.FullTextQuery setPaging(final org.hibernate.search.jpa.FullTextQuery query,
            final int from, final int to); String escapeAllButWildcardCharacters(final String s); String escape(final String s); void setResultTypes(final Class< ? >[] theResultTypes); void setSearchStringFormat(final String theSearchStringFormat); void setResultTransformer(final ResultTransformer theResultTransformer); void setQueryParserBuilder(final QueryParserBuilder inQueryParserBuilder); void setResultFields(final List<String> theResultFields); void setAdvancedQueryParserBuilder(final QueryParserBuilder inAdvancedQueryParserBuilder); String getEntityNames();  }