Showing results with Iframe
You can retrieve existing GEODI screens from a different application by specifying query text, and use them in an iframe. This way, you can display views such as Document, Map, Words or Network graph directly in your software.
By default, GEODI is disabled in an iframe via an external domain. You can configure the allowed addresses in the iframe by using the System Configuration - Security Settings.
GEODI server should have SSL certificate.
Enterprise Search GUI | |
---|---|
Request | [GEODIURL]?wsName=[wsName]&GUIOptions=[GUIOptions]&Tab=[Tab]&loginWithGuest=1&q=[SearchString]
|
HttpMethod | GET |
Expected Errors | 401 Unauthorized access / Access denied 403 Forbidden 511 Network Authentication Required |
Usage Examples | <iframe src="[GEODIURL]?wsName=PROJECT&GUIOptions=1&Tab=DLV&q=QueryText"></iframe> <a href="GEODIURL]?wsName=PROJECT&GUIOptions=1&Tab=DLV&q=QueryText" target="_blank">...</a> <div onclick="window.open('GEODIURL]?wsName=PROJECT&GUIOptions=1&Tab=DLV&q=QueryText')" >...</div> In order to get the same result in all browsers, wsName and Query parameters must be passed with url encode. The following script can be used for HTML content for Url Encode. System.Web.HttpUtility.UrlEncode is available for .Net. |
Examples | |
Search | http://127.0.0.1:3323/?wsName=Rotas%C4%B1z%20Seyyah&loginWithGuest=1&q=geodi |
Only Result | GUIOptions = 131073 (SimpleResutView + HideLogoBar) will only display the query result Tab = DLV value can be changed to show KLV or MAP http://127.0.0.1:3323/?wsName=Rotas%C4%B1z%20Seyyah&loginWithGuest=1&GUIOptions=1&Tab=MAP&q=geodi |
Network graph | The value GUIOptions = 163841 (SimpleResultView + HideLogoBar + ShowDGARPH) will display the network graph result with simple reulsts. Adding ShowDGARPH enables viewing in the project settings even if the network chart is not opened |