Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Add ability to exclude list values from indexes

Open
#3,638 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
15/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
google-cloud, php
Domain
cloud, databases

Research direction

Start by reading issue #3619 and the DatastoreClient entity example in this report, then trace how the excludeFromIndexes option is handled for list values. Done means documenting or implementing a defined way to exclude an entire list from indexes and confirming the behavior with a reproducible example.

Written by the indexing model from the issue text.

Description

api: datastore type: feature request

Hi,

I have already asked this in the issue #3619 , but as I need an answer that I cannot find elsewhere, I open a new issue. Sorry in advance for asking this here again.

How is that supposed to be done to prevent this error Exclude from indexes cannot be set on a list value? Am I supposed to do the same thing than embedded entities? Something like

$ds = new DatastoreClient;

$data = [1, 2, 3];
$array = $ds->entity(null, $data, [
    'excludeFromIndexes' => array_keys($data),
]);

I have tried this, and it doesn't work, so I'm wondering if there is any solution to exclude an entire list from indexes.

Thanks in advance

Dominant language
PHP
Stars
1.2k
Forks
464
Avg merge
2d 2h
Merged PRs (30d)
103

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from googleapis/google-cloud-php

All issues in googleapis/google-cloud-php

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.