code: public B partialFilterSelector(Selector selector) {
          instance.def.selector = Helpers.getJsonObjectFromSelector(selector);
          return returnThis();
      }
docs: Configure a selector to choose documents that should be added to the index.