Skip to content

Commit

Permalink
fix some deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Newson committed Apr 12, 2012
1 parent 7c7f1cd commit 453c434
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Expand Up @@ -285,15 +285,15 @@ public void admin(final HttpServletRequest req,

if ("_expunge".equals(command)) {
logger.info("Expunging deletes from " + state);
state.writer.expungeDeletes(false);
state.writer.forceMergeDeletes(false);
resp.setStatus(202);
ServletUtils.sendJsonSuccess(req, resp);
return;
}

if ("_optimize".equals(command)) {
logger.info("Optimizing " + state);
state.writer.optimize(false);
state.writer.forceMerge(1, false);
resp.setStatus(202);
ServletUtils.sendJsonSuccess(req, resp);
return;
Expand Down
6 changes: 3 additions & 3 deletions src/test/java/com/github/rnewson/couchdb/lucene/TikaTest.java
Expand Up @@ -40,19 +40,19 @@ public void setup() {
@Test
public void testPDF() throws IOException {
parse("paxos-simple.pdf", "application/pdf", "foo");
assertThat(doc.getField("foo"), not(nullValue()));
assertThat(doc.getFieldable("foo"), not(nullValue()));
}

@Test
public void testXML() throws IOException {
parse("example.xml", "text/xml", "bar");
assertThat(doc.getField("bar"), not(nullValue()));
assertThat(doc.getFieldable("bar"), not(nullValue()));
}

@Test
public void testWord() throws IOException {
parse("example.doc", "application/msword", "bar");
assertThat(doc.getField("bar"), not(nullValue()));
assertThat(doc.getFieldable("bar"), not(nullValue()));
assertThat(doc.get("bar"), containsString("The express mission of the organization"));
}

Expand Down

0 comments on commit 453c434

Please sign in to comment.