Slective Metadata indexing with GRPC Index

I am following the developments for selective metadata indexing. The documentation says

metadata_config = {
    "indexed": ["metadata-field-name"]
}
pinecone.create_index("example-index", dimension=128,
                      metadata_config=metadata_config)

However, I am using GRPC index to upsert. Will something like the following work? Is there anything special I need to do for selective metadata indexing with GRPC?

metadata_config = {
    "indexed": ["metadata-field-name"]
}
pinecone.GRPCIndex("example-index", dimension=128,
                      metadata_config=metadata_config)

If I don’t specify metadata_config, does that mean none of the metadata fields will be used for indexing?

Abhijit,

Correct. You can specify metadata_config in the Python GRPC client just as you would the standard client.

If you specify metadata_config, it will be honored (only those fields will be indexed; in the future we may add options here like all or none). If you don’t specify metadata_config, everything will be indexed. This keeps the behavior compatible and can be helpful for those who want filtering and who may not need to optimize their memory use.

Dave