From bb50f7dfcc753e1067c4e146f9b8973872fb2d63 Mon Sep 17 00:00:00 2001 From: zsloan Date: Wed, 26 Jun 2024 22:24:53 +0000 Subject: Automatically decide whether to use Xapian or SQL (uses Xapian if possible) + remove separate search button Change logic so that SQL is used for non-term Publish searches, since searches for phenotype trait IDs currently don't work in Xapian --- gn2/wqflask/static/new/javascript/dataset_select_menu_orig.js | 5 ----- 1 file changed, 5 deletions(-) (limited to 'gn2/wqflask/static') diff --git a/gn2/wqflask/static/new/javascript/dataset_select_menu_orig.js b/gn2/wqflask/static/new/javascript/dataset_select_menu_orig.js index 4310c4a8..2875eabd 100644 --- a/gn2/wqflask/static/new/javascript/dataset_select_menu_orig.js +++ b/gn2/wqflask/static/new/javascript/dataset_select_menu_orig.js @@ -329,8 +329,3 @@ $("#make_default").click(make_default); $("#btsearch").click(function() { $("#searchform").prop("action", "/search") }); - -$("#xapianSearch").click(function() { - $("input[name='search_type']").val("xapian") - $("#searchform").prop("action", "/search") -}); -- cgit v1.2.3