@Test public void testIsValidQuery() { SearchEngine instance = new SearchEngine(); assertFalse(instance.isValidQuery()); instance.setFile("foo"); assertTrue(instance.isValidQuery()); }
public boolean isValidQuery() { boolean ret; try { query = createQueryBuilder().build(); ret = (query != null); } catch (ParseException e) { ret = false; } return ret; }
SearchEngine { public boolean isValidQuery() { boolean ret; try { query = createQueryBuilder().build(); ret = (query != null); } catch (ParseException e) { ret = false; } return ret; } }
SearchEngine { public boolean isValidQuery() { boolean ret; try { query = createQueryBuilder().build(); ret = (query != null); } catch (ParseException e) { ret = false; } return ret; } SearchEngine(); }
SearchEngine { public boolean isValidQuery() { boolean ret; try { query = createQueryBuilder().build(); ret = (query != null); } catch (ParseException e) { ret = false; } return ret; } SearchEngine(); boolean isValidQuery(); String getQuery(); Query getQueryObject(); QueryBuilder getQueryBuilder(); IndexSearcher getSearcher(); int search(HttpServletRequest req, String... projectNames); int search(HttpServletRequest req); int search(); ScoreDoc[] scoreDocs(); Document doc(int docId); void results(int start, int end, List<Hit> ret); void destroy(); String getDefinition(); void setDefinition(String definition); String getFile(); void setFile(String file); String getFreetext(); void setFreetext(String freetext); String getHistory(); void setHistory(String history); String getSymbol(); void setSymbol(String symbol); String getType(); void setType(String fileType); }
SearchEngine { public boolean isValidQuery() { boolean ret; try { query = createQueryBuilder().build(); ret = (query != null); } catch (ParseException e) { ret = false; } return ret; } SearchEngine(); boolean isValidQuery(); String getQuery(); Query getQueryObject(); QueryBuilder getQueryBuilder(); IndexSearcher getSearcher(); int search(HttpServletRequest req, String... projectNames); int search(HttpServletRequest req); int search(); ScoreDoc[] scoreDocs(); Document doc(int docId); void results(int start, int end, List<Hit> ret); void destroy(); String getDefinition(); void setDefinition(String definition); String getFile(); void setFile(String file); String getFreetext(); void setFreetext(String freetext); String getHistory(); void setHistory(String history); String getSymbol(); void setSymbol(String symbol); String getType(); void setType(String fileType); static final Version LUCENE_VERSION; static final String LUCENE_VERSION_HELP; }