Unfortunatly as of today the gcd
tool doesn't support automatic index generation for languages using the JSON interface (like Node.js or Ruby).
A workaround is the manually define your index in <your-dataset-directory>/WEB-INF/datastore-indexes.xml
<?xml version="1.0" encoding="utf-8"?>
<datastore-indexes
autoGenerate="true">
<datastore-index kind="product" ancestor="false">
<property name="model" direction="asc" />
<property name="date" direction="asc" />
</datastore-index>
</datastore-indexes>
See the Index Configuration section of the datastore documentation for more details.