@@ -3572,6 +3572,42 @@ fetch(url, { method: 'GET', headers: headers})
35723572 .then(res = > res.buffer()).then(buf = > console.log(buf.toString()))
35733573 .catch (error = > console.log(error))
35743574```
3575+ # # View SBOLExplorer Indexing Log
3576+
3577+ `GET < SynBioHub URL > / admin/ explorerIndexingLog`
3578+
3579+ View the SBOLExplorer index log.
3580+
3581+ ```plaintext
3582+ curl - X GET - H " Accept: text/plain" - H " X-authorization: <token>" < SynBioHub URL > / admin/ explorerIndexingLog
3583+ ```
3584+
3585+ ```python
3586+ import requests
3587+
3588+ response = requests.get(
3589+ ' <SynBioHub URL>/admin/explorerIndexingLog' ,
3590+ headers = {
3591+ ' Accept' : ' text/plain' ,
3592+ ' X-authorization' : ' <token>'
3593+ },
3594+ )
3595+
3596+ print (response.status_code)
3597+ print (response.content)
3598+ ```
3599+
3600+ ```javascript
3601+ const fetch = require(" node-fetch" );
3602+ const url = ' <SynBioHub URL>/admin/explorerIndexingLog'
3603+ const headers={
3604+ " Accept" : " text/plain; charset=UTF-8" ,
3605+ " X-authorization" : " <token>"
3606+ };
3607+ fetch(url, { method: ' GET' , headers: headers})
3608+ .then(res = > res.buffer()).then(buf = > console.log(buf.toString()))
3609+ .catch (error = > console.log(error))
3610+ ```
35753611# # View SBOLExplorer Config
35763612
35773613`GET < SynBioHub URL > / admin/ explorer`
@@ -3636,10 +3672,12 @@ response = requests.post(
36363672 ' useDistributedSearch' : ' <useDistributedSearch>'
36373673 ' pagerankTolerance' : ' <pagerangeTolerance>' ,
36383674 ' uclustIdentity' : ' <uclustIdentity>' ,
3639- ' synbiohubPublicGraph' : ' <synbiohubPublicGraph>' ,
36403675 ' elasticsearchEndpont' :' <elasticsearchEndpoint>' ,
36413676 ' elasticsearchIndexName' :' <elasticSearchIndexName>' ,
36423677 ' spraqlEndpoint' :' <sparqlEndpoint>' ,
3678+ ' useCron' : ' <autoUpdateIndex>' ,
3679+ ' cronDay' : ' <days>' ,
3680+ ' whichSearch' : ' <USchecked>' ? ' usearch' : ' vsearch'
36433681 },
36443682)
36453683
@@ -3659,17 +3697,15 @@ var headers={
36593697const params = {
36603698 ' useSBOLExplorer' : ' <useSBOLExplorer>'
36613699 ' SBOLExplorerEndpoint' : ' <SBOLExplorerEndpoint>' ,
3662- ' SBOLExplorerConfig' : {
3663- ' useDistributedSearch' : ' <useDistributedSearch>' ,
3664- ' pagerankTolerance' : ' <pagerangeTolerance>' ,
3665- ' uclustIdentity' : ' <uclustIdentity>' ,
3666- ' elasticsearchEndpont' : ' <elasticsearchEndpoint>' ,
3667- ' elasticsearchIndexName' : ' <elasticSearchIndexName>' ,
3668- ' spraqlEndpoint' : ' <sparqlEndpoint>' ,
3669- ' useCron' : ' <autoUpdateIndex>' ,
3670- ' cronDay' : ' <days>' ,
3671- ' whichSearch' : ' <USchecked>' ? ' usearch' : ' vsearch'
3672- }
3700+ ' useDistributedSearch' : ' <useDistributedSearch>' ,
3701+ ' pagerankTolerance' : ' <pagerangeTolerance>' ,
3702+ ' uclustIdentity' : ' <uclustIdentity>' ,
3703+ ' elasticsearchEndpont' : ' <elasticsearchEndpoint>' ,
3704+ ' elasticsearchIndexName' : ' <elasticSearchIndexName>' ,
3705+ ' spraqlEndpoint' : ' <sparqlEndpoint>' ,
3706+ ' useCron' : ' <autoUpdateIndex>' ,
3707+ ' cronDay' : ' <days>' ,
3708+ ' whichSearch' : ' <USchecked>' ? ' usearch' : ' vsearch'
36733709}
36743710
36753711fetch(url, { method: ' POST' , headers: headers, body:params})
0 commit comments