Permalink
Browse files

throw JSONException and remove unused method.

  • Loading branch information...
1 parent 09c018d commit 6f6d54fac62fe5206efe8a8d9a2e13daef3ec3bc Robert Newson committed Nov 12, 2010
Showing with 1 addition and 7 deletions.
  1. +1 −7 src/main/java/com/github/rnewson/couchdb/lucene/DatabaseIndexer.java
@@ -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);
}

0 comments on commit 6f6d54f

Please sign in to comment.