diff --git a/app/assets/images/algolia-icon.png b/app/assets/images/algolia-icon.png deleted file mode 100644 index c5be915f9..000000000 Binary files a/app/assets/images/algolia-icon.png and /dev/null differ diff --git a/app/assets/images/algolia.png b/app/assets/images/algolia.png new file mode 100644 index 000000000..f54f72b0c Binary files /dev/null and b/app/assets/images/algolia.png differ diff --git a/app/assets/javascripts/services/settingsSvc.js b/app/assets/javascripts/services/settingsSvc.js index 02dd53265..ebbbf16a0 100644 --- a/app/assets/javascripts/services/settingsSvc.js +++ b/app/assets/javascripts/services/settingsSvc.js @@ -155,16 +155,16 @@ angular.module('QuepidApp') headerType: 'Custom', customHeaders: [ '{', - ' "x-algolia-application-id": "YOUR_ALGOLIA_APPLICATION_ID",', - ' "x-algolia-api-key": "YOUR_ALGOLIA_API_KEY"', + ' "x-algolia-application-id": "OKF83BFQS4",', + ' "x-algolia-api-key": "2ee1381ed11d3fe70b60605b1e2cd3f4"', '}' ].join('\n'), idField: 'objectID', - titleField: 'name', - additionalFields: [], + titleField: 'title', + additionalFields: ['overview', 'cast', 'thumb:poster_path'], numberOfRows: 10, searchEngine: 'algolia', - searchUrl: 'https://78J6LMFN9N-dsn.algolia.net/1/indexes/dev_quepid/query', + searchUrl: 'https://OKF83BFQS4-dsn.algolia.net/1/indexes/movies_demo_quepid/query', urlFormat: 'https://-dsn.algolia.net/1/indexes//query', proxyRequests: true, basicAuthCredential: '' diff --git a/app/assets/javascripts/tour.js b/app/assets/javascripts/tour.js index da5989ac8..48e27adb1 100644 --- a/app/assets/javascripts/tour.js +++ b/app/assets/javascripts/tour.js @@ -110,13 +110,15 @@ this.setupTour = function() { tour.addStep('tune', { title: 'Tune Relevance', - text: `This is where all the magic happens!
If you are not familiar with how this work, read the Tuning Relevance section in the Knowledge Base.
TL;DR: always make sure this #$query## exists somewhere.
Let\s make change this up and see what happens.
If you are using Solr, change the query sandbox to: q=#$query##&defType=edismax&qf=title overview
or to { \ + text: `This is where all the magic happens!
If you are not familiar with how this work, read the Tuning Relevance section in the Knowledge Base.
TL;DR: always make sure this #$query## exists somewhere.
Let\s make change this up and see what happens.
If you are using Solr, change the query sandbox to: q=#$query##&defType=edismax&qf=title overview
, to { \ "query": { \ "match": { \ "title": "#$query##" \ } \ } \ -} if you are using Elasticsearch
(adjust appropriately if you are not using the demo case).`, +}
if you are using Elasticsearch,
or add "restrictSearchableAttributes": [ \ + "title" \ + ] for Algolia, (adjust appropriately if you are not using the demo case).`, attachTo: '.pane_east left', advanceOn: '#tune-relevance-link a click', buttons: [{ diff --git a/app/assets/templates/views/wizardModal.html b/app/assets/templates/views/wizardModal.html index 4a831d9f9..199723da1 100644 --- a/app/assets/templates/views/wizardModal.html +++ b/app/assets/templates/views/wizardModal.html @@ -93,7 +93,7 @@

What Search Endpoint do you want to connect to?

diff --git a/public/images/algolia.png b/public/images/algolia.png new file mode 100644 index 000000000..f54f72b0c Binary files /dev/null and b/public/images/algolia.png differ