Hi Mark,

I think you are looking for the http app server settings in the Admin UI. If 
you create a REST-api instance, you can then go to the Admin UI, and change the 
documents database setting of that REST-api server to point to the database 
containing the Top Songs documents. After that you can start building your own 
UI on top of this new REST-api instance.

Does that help?

Cheers,
Geert

From: Mark Shanks <[email protected]<mailto:[email protected]>>
Reply-To: MarkLogic Developer Discussion 
<[email protected]<mailto:[email protected]>>
Date: Tuesday, April 14, 2015 at 5:33 PM
To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Subject: [MarkLogic Dev General] Unable to connect to REST server using custom 
app

Hi,

I want to use the Top-Songs example as a code base, but the tutorial does not 
detail how to include a data visualization widget in this application. Going 
through the Data Visualization Widgets guide in the Search Developer's Guide 
also hasn't helped. The problem is that adding the data visualization widget 
seems to be non-trivial as it requires the setting up of a REST server, which 
is not required for the text results currently in the Top-Songs example. 
Further, the Oscars example has the REST server at the same port as the files, 
presumably because they are all coming from the database. When I try and setup 
a REST server at the same port as the Top-Songs example, it will not let me. If 
I then setup the REST server at another port location, the documentation isn't 
clear as to how to configure the application so it can connect to the different 
location. I've played around with the proxy settings to try and point to the 
correct port, but the string doesn't seem to output correctly.

How should the controller_config be setup to point to a REST server that is on 
a different port to the app? Or should I be doing something else differently?

Thanks.
_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to