To recreate: 1 - Enable ES 2 - On staff side search for sn:4 (or real biblionumber) 3 - You go to a bib 4 - Enable IntranetCatalogSearchPulldown 5 - Reload the page to search the dropdown 6 - Repeat search 7 - It fails
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 :)