Just want to confirm that this seems to have worked. To the app's setup.py file:
--added from arches.app.models.resource import Resource --copied and pasted both the install() and create_indexes() functions from the arches-hip setup.py --prefixed all of the commands in the install() function with setup., besides create_indexes() and Resource().... --made the desired changes to the create_index() function. Now the package installs and creates the correct indexes, and the search bar works properly. On Friday, November 13, 2015 at 3:49:13 PM UTC-6, Adam Cox wrote: > > 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.
