| Summary: | Elasticsearch - IntranetCatalogSearchPulldown breaks searching indexes via query | ||
|---|---|---|---|
| Product: | Koha | Reporter: | Nick Clemens (kidclamp) <nick> |
| Component: | Searching - Elasticsearch | Assignee: | Bugs List <koha-bugs> |
| Status: | CLOSED WORKSFORME | QA Contact: | |
| Severity: | normal | ||
| Priority: | P5 - low | CC: | andrew, rhouk |
| Version: | Main | ||
| Hardware: | All | ||
| OS: | All | ||
| GIT URL: | Initiative type: | --- | |
| Sponsorship status: | --- | Comma delimited list of Sponsors: | |
| Crowdfunding goal: | 0 | Crowdfunding committed: | 0 |
| Crowdfunding contact: | Patch complexity: | --- | |
| Documentation contact: | Documentation submission: | ||
| Text to go in the release notes: | Version(s) released in: | ||
| Circulation function: | |||
|
Description
Nick Clemens (kidclamp)
2019-07-15 15:54:30 UTC
Being able to search indexes is a very useful feature and it would be nice to have it working with Elasticsearch. This jQuery in IntranetUserJS can bandaid the problem:
$(document).ready(function () {
$("select.advsearch[name='idx'] option[value='kw,phr']").after('<option value="sn">Biblionumber</option>');
$("select.advsearch[name='idx'] option[value='kw']").attr('value',"");
});
Whoops, pasted a bit more than I meant to. Here's the relevant bit:
This jQuery in IntranetUserJS can bandaid the problem:
$(document).ready(function () {
$("select.advsearch[name='idx'] option[value='kw']").attr('value',"");
});
So this actually works in master currently, as long as 'keyword' is selected. If you try to select 'Title' in the dropdown and then search 'au:dickens' it fails Do we need to support searches like that? (In reply to Nick Clemens from comment #4) > So this actually works in master currently, as long as 'keyword' is selected. > > If you try to select 'Title' in the dropdown and then search 'au:dickens' it > fails > > Do we need to support searches like that? I think 'expert search' is only expected to work with keyword selected - if that is the question :) |