__construct() __construct(object $doc,null $extra = null) General constructor. Parameters object $doc The search response object null $extra