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 - $.post(solrServiceURL, { 41 + const res = $.post(solrServiceURL, { 42 42 outputSyntax: 'plain', 43 43 media: 'json', 44 44 query: [ ... ... @@ -47,11 +47,9 @@ 47 47 `fq=space:Collabs${xwikiSpace}.*` 48 48 ].join('\n'), 49 49 input: $('#context-search-text').val() 50 - }) .then(res => {51 - contextSearchResponse.innerText = JSON.stringify(res, null, 2);50 + }); 51 + console.log(res); 52 52 }); 53 - 54 - }); 55 55 }); 56 56 } 57 57 </script>