Hello, I've renamed one of the resource types, changed 
HERITAGE_RESOURCE.E18 to INVENTORY_RESOURCE.E18.  I made all necessary 
changes in the RESOURCE_TYPE_CONFIGS in the package's settings.py, and 
changed all other occurrences throughout the package.  However, I noticed 
that whenever I start up ElasticSearch, the 6 default entity types are 
indexed, and INVENTORY_RESOURCE.E18 does not show up anywhere.

I looked a little harder into the create_indexes() function that is in 
arches_hip, which has the six arches-hip resource types hard coded into it. 
 I tried copying and pasting that function into the package setup.py file, 
and doing the renaming there.  This doesn't work however, because the 
install function is imported from arches_hip, and it calls the arches-hip 
version of  create_indexes().

So it seems that to properly rename a resource type, I'll have to copy the 
entire install() function and all its dependencies from arches-hip to the 
package, and then copy the create_indexes() function as well and make 
changes to it there.  Is that correct?

Thanks!
Adam

-- 
-- To post, send email to [email protected]. To unsubscribe, send 
email to [email protected]. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to