Coming to point1
you have to create one Compound or Document types in HIPPO, which should be ability to call REST api’s on demand to fetch list of values).
using tools you can create rest call use bean writer it will create controller as well and use REST config to create rest
example: http://localhost:8080/site/rest/documents …
inside controller add as per your need search feature.