Changes for page Context Search Axel
Last modified by messines on 2022/10/14 11:41
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -38,7 +38,7 @@ 38 38 const contextSearchButton = document.getElementById("context-search-button"); 39 39 const xwikiSpace = space ? `.${space}` : ''; 40 40 contextSearchButton.addEventListener('click', function() { 41 - const res =$.post(solrServiceURL, {41 + $.post(solrServiceURL, { 42 42 outputSyntax: 'plain', 43 43 media: 'json', 44 44 query: [ ... ... @@ -47,9 +47,11 @@ 47 47 `fq=space:Collabs${xwikiSpace}.*` 48 48 ].join('\n'), 49 49 input: $('#context-search-text').val() 50 - }) ;51 - conso le.log(res);50 + }).then(res => { 51 + contextSearchResponse.innerText = JSON.stringify(res, null, 2); 52 52 }); 53 + 54 + }); 53 53 }); 54 54 } 55 55 </script>