@Test public void testEmptySearch() { assertEquals("{}", underTest.serialize()); }
public String serialize() { ObjectMapper mapper = new ObjectMapper(); try { return mapper.writeValueAsString(this); } catch (JsonProcessingException ex) { LOG.error("Could not serialize search", ex); } return StringUtils.EMPTY; }
Search { public String serialize() { ObjectMapper mapper = new ObjectMapper(); try { return mapper.writeValueAsString(this); } catch (JsonProcessingException ex) { LOG.error("Could not serialize search", ex); } return StringUtils.EMPTY; } }
Search { public String serialize() { ObjectMapper mapper = new ObjectMapper(); try { return mapper.writeValueAsString(this); } catch (JsonProcessingException ex) { LOG.error("Could not serialize search", ex); } return StringUtils.EMPTY; } Search(ElasticSearchService elasticSearchService, String index); }
Search { public String serialize() { ObjectMapper mapper = new ObjectMapper(); try { return mapper.writeValueAsString(this); } catch (JsonProcessingException ex) { LOG.error("Could not serialize search", ex); } return StringUtils.EMPTY; } Search(ElasticSearchService elasticSearchService, String index); SearchResult perform(); RootQuery query(); Search size(int size); Search from(int from); Search minScore(double minScore); Sort sort(); Highlight highlight(); String serialize(); }
Search { public String serialize() { ObjectMapper mapper = new ObjectMapper(); try { return mapper.writeValueAsString(this); } catch (JsonProcessingException ex) { LOG.error("Could not serialize search", ex); } return StringUtils.EMPTY; } Search(ElasticSearchService elasticSearchService, String index); SearchResult perform(); RootQuery query(); Search size(int size); Search from(int from); Search minScore(double minScore); Sort sort(); Highlight highlight(); String serialize();  }