Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

throw JSONException and remove unused method.

  • Loading branch information...
commit 6f6d54fac62fe5206efe8a8d9a2e13daef3ec3bc 1 parent 09c018d
Robert Newson authored
8 src/main/java/com/github/rnewson/couchdb/lucene/DatabaseIndexer.java
View
@@ -126,12 +126,6 @@ public void returnSearcher(final IndexSearcher searcher)
returnReader(searcher.getIndexReader());
}
- public Query parse(final String query) throws ParseException {
- final QueryParser parser = new CustomQueryParser(Constants.VERSION,
- Constants.DEFAULT_FIELD, analyzer);
- return parser.parse(query);
- }
-
public Query parse(final String query, final Analyzer analyzer) throws ParseException {
final QueryParser parser = new CustomQueryParser(Constants.VERSION,
Constants.DEFAULT_FIELD, analyzer);
@@ -784,7 +778,7 @@ private boolean isStaleOk(final HttpServletRequest req) {
return "ok".equals(req.getParameter("stale"));
}
- private Analyzer getAnalyzer(final HttpServletRequest req, final Analyzer defaultAnalyzer) {
+ private Analyzer getAnalyzer(final HttpServletRequest req, final Analyzer defaultAnalyzer) throws JSONException {
final String analyzer = req.getParameter("analyzer");
return analyzer == null ? defaultAnalyzer : Analyzers.getAnalyzer(analyzer);
}
Please sign in to comment.
Something went wrong with that request. Please try again.