Failed to execute template. Cause: [Access denied when checking [script] access to [xwiki:Collaboratory.UX.HbpSkin.WebHome] for user [xwiki:XWiki.Admin]]. Click on this message for details.

Context Search - HBP Wiki

IAM21 instance, do not create collab nor modify a team, your changes will be lost


Changes for page Context Search

Last modified by bougault on 2023/02/20 16:29

From version 31.2
edited by bougault
on 2023/01/11 14:41
Change comment: There is no comment for this version
To version 30.3
edited by bougault
on 2023/01/11 14:30
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -65,7 +65,6 @@
65 65   this.nb = e.target.value;
66 66   }
67 67   handleSearch(textSearch) {
68 - console.log('search');
69 69   if(this.searchText !== "" || textSearch) {
70 70   if(this.searchText !== this.prevSearchText) {
71 71   this.clearResults();
... ... @@ -152,7 +152,7 @@
152 152   }
153 153   customElements.define('clb-unified-search', UnifiedSearch);
154 154  
155 - function handleXWikiSearch(searchString, offset, nb) {
154 + function handleXWikiSearch(searchString) {
156 156   return new Promise((resolve) => {
157 157   require(['jquery'], function($) {
158 158   const solrServiceURL = new XWiki.Document('SuggestSolrService', 'XWiki').getURL('get');
... ... @@ -160,8 +160,8 @@
160 160   $.get(solrServiceURL, {
161 161   outputSyntax: 'plain',
162 162   media: 'json',
163 - nb: nb,
164 - offset: offset,
162 + nb:100,
163 + offset:10,
165 165   query: [
166 166   'q="__INPUT__"~100',
167 167   'fq=type:DOCUMENT',