filter = new org.apache.lucene.search.ChainedFilter(
filters, ChainedFilter.AND);
}
}
runMatch(queryString, pageSize, sortFields, filter, from);
throw new OtpContinueException();
} catch (InvalidParameterException ipe) {
ipe.printStackTrace();
OtpErlangTuple reply = new OtpErlangTuple(
new OtpErlangObject[] { new OtpErlangAtom("error"),
new OtpErlangString(ipe.getMessage()) });
return reply;
} catch (ClassCastException cce) {
cce.printStackTrace();
OtpErlangTuple reply = new OtpErlangTuple(
new OtpErlangObject[] { new OtpErlangAtom("error"),
new OtpErlangString(cce.getMessage()) });
return reply;
} catch (UnsupportedFieldTypeException ufte) {
ufte.printStackTrace();
OtpErlangTuple reply = new OtpErlangTuple(
new OtpErlangObject[] { new OtpErlangAtom("error"),
new OtpErlangString(ufte.getMessage()) });
return reply;
} catch (UnsupportedEncodingException uee) {
uee.printStackTrace();
OtpErlangTuple reply = new OtpErlangTuple(
new OtpErlangObject[] { new OtpErlangAtom("error"),
new OtpErlangString(uee.getMessage()) });
return reply;
}
} else if (cmdName.atomValue().equals("continue")) {
// {continue, Token :: binary(), PageSize :: integer()}
Object pageToken = ((OtpErlangBinary) cmdTuple.elementAt(1))
.getObject();
int pageSize = ((OtpErlangLong) cmdTuple.elementAt(2)).intValue();
runContinue(pageToken, pageSize, from);
throw new OtpContinueException();
} else {
return new OtpErlangTuple(new OtpErlangObject[] {
new OtpErlangAtom("error"),
new OtpErlangAtom("unknown command") });