Applies the next by* method to the previous by* method, so
that a call
hasNext,
next or
results sees only the union of the two calls.
For example,
service.onlyType(Image.class);
service.byFullText("foo");
service.or();
service.onlyType(Dataset.class);
service.byFullText("foo");
will return both Images and Datasets together.
Calling this method overrides a previous setting of
and or
not. If there is no active queries
(i.e.
activeQueries > 0), then an
ApiUsageException will be thrown.