@Test public void search_CHECK_HIGHLIGHTING_NO_LENGTH_LIMIT() { JudgmentCriteria criteria = new JudgmentCriteria("lastword"); SearchResults<JudgmentSearchResult> results = judgmentSearchService.search(criteria, null); JudgmentSearchResult result = fetchAndAssertSingleSearchResult(results); assertEquals(22, result.getId()); assertTrue(result.getContent().contains("<em>lastword</em>")); }
@Override public SearchResults<JudgmentSearchResult> search(JudgmentCriteria criteria, Paging paging) { SolrQuery solrQuery = queryFactory.createQuery(criteria, paging); QueryResponse response = null; try { response = solrServer.query(solrQuery); } catch (SolrServerException e) { e.printStackTrace(); return new SearchResults<JudgmentSearchResult>(); } SearchResults<JudgmentSearchResult> results = resultsTranslator.translate(response); return results; }
JudgmentSearchService implements SearchService<JudgmentSearchResult, JudgmentCriteria> { @Override public SearchResults<JudgmentSearchResult> search(JudgmentCriteria criteria, Paging paging) { SolrQuery solrQuery = queryFactory.createQuery(criteria, paging); QueryResponse response = null; try { response = solrServer.query(solrQuery); } catch (SolrServerException e) { e.printStackTrace(); return new SearchResults<JudgmentSearchResult>(); } SearchResults<JudgmentSearchResult> results = resultsTranslator.translate(response); return results; } }
JudgmentSearchService implements SearchService<JudgmentSearchResult, JudgmentCriteria> { @Override public SearchResults<JudgmentSearchResult> search(JudgmentCriteria criteria, Paging paging) { SolrQuery solrQuery = queryFactory.createQuery(criteria, paging); QueryResponse response = null; try { response = solrServer.query(solrQuery); } catch (SolrServerException e) { e.printStackTrace(); return new SearchResults<JudgmentSearchResult>(); } SearchResults<JudgmentSearchResult> results = resultsTranslator.translate(response); return results; }  }
JudgmentSearchService implements SearchService<JudgmentSearchResult, JudgmentCriteria> { @Override public SearchResults<JudgmentSearchResult> search(JudgmentCriteria criteria, Paging paging) { SolrQuery solrQuery = queryFactory.createQuery(criteria, paging); QueryResponse response = null; try { response = solrServer.query(solrQuery); } catch (SolrServerException e) { e.printStackTrace(); return new SearchResults<JudgmentSearchResult>(); } SearchResults<JudgmentSearchResult> results = resultsTranslator.translate(response); return results; }  @Override SearchResults<JudgmentSearchResult> search(JudgmentCriteria criteria,
            Paging paging); }
JudgmentSearchService implements SearchService<JudgmentSearchResult, JudgmentCriteria> { @Override public SearchResults<JudgmentSearchResult> search(JudgmentCriteria criteria, Paging paging) { SolrQuery solrQuery = queryFactory.createQuery(criteria, paging); QueryResponse response = null; try { response = solrServer.query(solrQuery); } catch (SolrServerException e) { e.printStackTrace(); return new SearchResults<JudgmentSearchResult>(); } SearchResults<JudgmentSearchResult> results = resultsTranslator.translate(response); return results; }  @Override SearchResults<JudgmentSearchResult> search(JudgmentCriteria criteria,
            Paging paging);  }