'; itemElement.innerHTML = content; return itemElement; } if (suggestion.displayFullResult) { content = '

See full results for {s} o182

'; content = content.replace('{s}', '« ' + sanitizer.sanitize(input.value) + ' »'); } else if (suggestion.semQuery) { content = '

Semantic search for {s}

'; content = content.replace('{s}', '« ' + sanitizer.sanitize(input.value) + ' »'); } else { var cleanText = sanitizer.sanitize(suggestion.text) var boldText = cleanText.replace(reg, function (optionText) { return '' + optionText + '' }); var subText = sanitizer.sanitize(suggestion.subText); subText = subText.replace(suggestion.artistName, function (optionText) { return optionText.replace(reg, function (boldText) { return '' + boldText + '' }) }); var cssClass = suggestion.type === 'artist' ? 'img-circle border' : ''; content = '
' + '' + cleanText + '' + '
' + '' + boldText + '' + '' + subText + '' + '
' + '
'; } itemElement.innerHTML = content; return itemElement; }, onSelect: function (element, autocomplete) { document.dispatchEvent(new CustomEvent('am.gtag.search', {'detail': {'term': autocomplete.value}})) savedSearch(sanitizer.sanitize(autocomplete.value), element); }, emptyMsg: 'No results found.', preventSubmit: false, showOnFocus: true, // Required to set the final position of the results // By default result tag is applied at the bottom of the document with fixed style // when we want it in the defined tag ( Styles are also customized ) customize: function (input, inputRect, container, maxHeight) { resultContainer.append($(container)) } }; } function savedSearch(string, element) { if (!element.url) { element.url = url.replace("term", string) } var formData = new FormData(); formData.append('string', string); formData.append('nbResults', nbResults); try { if (navigator.sendBeacon) { navigator.sendBeacon('/en/saved--search/artwork', formData) } else { var xhr = new XMLHttpRequest(); xhr.open('post', '/en/saved--search/artwork', false); xhr.send(formData); } } catch (e) { } window.location.href = element.url } document.addEventListener('am.gtag.search', function (e) { var term = e.detail.term gtag("event", "search", { search_term: term }); }); }) })();
Artmajeur Online Art Gallery | Magazine Magazine
Real-time search module

Real-time search module 132bx

Nicolas Sarazin | Jun 17, 2014 1 minutes read 15 comments
 

We have received a lot of requests to update the search module. Until now, the search module was provided by Google.

Hello,
we have received a lot of requests to update the search module. Until now, the search module was provided by Google. It was quick to find results but slow to update and index them. This caused delays of several days before your new works were included in the search results. We have developed a new search module, fully integrated into Artmajeur, in order to be able to control all results and indexing times.
Check the titles, descriptions and keywords of your images to make sure they appear correctly in search results! You can then test the new search module using the "search" field at the top of Artmajeur.

View More Articles
 

ArtMajeur

Receive our newsletter for art lovers and collectors
Iris
Iris, your AI guide
Loading...