Skip to content

Commit

Permalink
Browser aware polish
Browse files Browse the repository at this point in the history
  • Loading branch information
epugh committed Mar 1, 2025
1 parent e3d245b commit 46e8c89
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions app/assets/javascripts/controllers/wizardModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ angular.module('QuepidApp')
}
};

$scope.isChrome = /Chrome/.test($window.navigator.userAgent);
$scope.shouldCreateNewSearchEndpointDefaultToOpen = false;
$scope.shouldExistingSearchEndpointDefaultToOpen = false;
$scope.searchEndpoints = [];
Expand Down
13 changes: 8 additions & 5 deletions app/assets/templates/views/wizardModal.html
Original file line number Diff line number Diff line change
Expand Up @@ -119,23 +119,26 @@ <h2>What Search Endpoint do you want to connect to?</h2>

<ul ng-if="pendingWizardSettings.searchEngine === 'solr'">
<li>Do you see any errors when you visit your <a target="_blank" ng-href="{{linkToSearchEndpointUrl()}}">Solr URL directly?</a></li>
<li>Use the Proxy option under <i>Advanced</i>!</li>
<li>
If you are using a version of Solr between 8.4 and 9.0, you may need to tweak the content-type being set by <code>wt=json</code>.
You may need to configure the JSON <code>wt=json</code> to be <code>application/javascript</code> to work with Quepid.
You can do this via the below curl command:
<pre>
curl -k -X POST -H 'Content-type:application/json' -d '{
"update-queryresponsewriter": {
curl {{pendingWizardSettings.basicAuthCredential ? '-u ' + pendingWizardSettings.basicAuthCredential : ''}} -k -X POST -H 'Content-type:application/json' -d '{
"create-queryresponsewriter": {
"name": "json",
"class": "solr.JSONResponseWriter",
"content-type": "application/javascript; charset=UTF-8"
}
}' {{ extractSolrConfigApiUrl(pendingWizardSettings.searchUrl) }}
</pre>
If you get a error message back, change <code>update-queryresponsewriter</code> to <code>create-queryresponsewriter</code> and re-run.
If you get a error message back, change <code>create-queryresponsewriter</code> to <code>update-queryresponsewriter</code> and re-run.

</li>
<li>If Solr responds, check if you have an ad blocker blocking your queries.</li>
<li>Chrome does not accept self signed certificates on Solr, try Firefox.</li>

<li ng-if="isChrome">Chrome does not accept self signed certificates on Solr, try Firefox.</li>
<li ng-if="isChrome">Chrome does not allow basic auth to Solr, try Firefox.</li>
<li>Use the browser <i>Network Inspector</i> to see the actual request.</li>
<li>See the <a target="_blank" href="https://github.com/o19s/quepid/wiki/Troubleshooting-Solr-and-Quepid">Troubleshooting Solr and Quepid</a> wiki page for more help!</li>
</ul>
Expand Down

0 comments on commit 46e8c89

Please sign in to comment.