feature request #5890
openImplement auto-suggest for data portal
Added by Patrick Plitzner almost 8 years ago. Updated over 4 years ago.
0%
Description
This could be useful for
taxon search
taxon/classification filter for CSV export
...
Drupal has an out-of-the-box support for this feature
See also #3994
Related issues
Updated by Patrick Plitzner almost 8 years ago
- Status changed from New to Resolved
- Assignee changed from p.plitzner - to Andreas Kohlbecker
Implemented auto suggest based on TaxonListController.doSearch() with r28412
Updated by Patrick Plitzner almost 8 years ago
- Target version changed from Unassigned CDM tickets to Release 4.2
Updated by Andreas Kohlbecker almost 8 years ago
- Assignee changed from Andreas Kohlbecker to p.plitzner -
This is not working for. Even after clearing the drupal cache the autosuggest is not working.
Using the taxon/search
service is not ideal. One request/response cycle to this service takes over one second and causes >300kB to be transferred. Using a special 'lucene' suggest service https://lucene.apache.org/core/4_0_0/suggest/index.html is for sure the better solution, maybe hibernate search provides also a good solution.
Updated by Andreas Müller almost 8 years ago
For some portals (especially Cuba Checklist) it might be required to switch of this features as there are very strict limitations to the bandwith of data in Cuba.
Best would be to check where the query comes from but if this is not possible we need at least the possibility to switch the feature of via dataportal admin settings.
Updated by Andreas Kohlbecker almost 8 years ago
Ah ok, now it works.
The suggestions are however too unspecific.
For example after typing "Lac" in the cichorieae portal the first suggestions is Hieracium jordanii subsp. lacistum (Nägeli & Peter) Zahn whereas the more relevant Lactuca L. is at position 7.
Updated by Patrick Plitzner almost 8 years ago
- Status changed from Resolved to In Progress
Added taxon auto_suggest to portal setting with r28442
Updated by Andreas Müller almost 8 years ago
- Target version changed from Release 4.2 to Release 4.3
Updated by Patrick Plitzner almost 8 years ago
- Status changed from In Progress to Closed
- Resolution set to fixed
- % Done set to 100
Added a new ticket for weighted search results -> #5978
Updated by Andreas Müller almost 8 years ago
- Status changed from Closed to Feedback
- Resolution deleted (
fixed) - % Done changed from 100 to 0
Updated by Andreas Müller almost 8 years ago
- Status changed from Feedback to Resolved
- Assignee changed from p.plitzner - to Andreas Kohlbecker
Updated by Andreas Müller almost 8 years ago
- Assignee changed from Andreas Kohlbecker to Andreas Müller
Updated by Andreas Müller over 7 years ago
- Project changed from 2 to EDIT
- Description updated (diff)
- Status changed from Resolved to Feedback
- Assignee changed from Andreas Müller to Patrick Plitzner
When trying to run on http://test.e-taxonomy.eu/dataportal/preview/flora-cuba/ and searching for "Barler" I got an popup saying:
An AJAX HTTP error occurred. HTTP Result Code: 404 Debugging information follows. Path: http://test.e-taxonomy.eu/dataportal/preview/flora-cuba/index.php?q=cdm_dataportal/taxon/autosuggest//// StatusText: Not Found ResponseText: Taxon does not exist | The Spermatophyta of Cuba - A Preliminary Checklist @import url("http://test.e-taxonomy.eu/dataportal/preview/flora-cuba/modules/system/system.base.css?odh4km"); @import url("http://test.e-taxonomy.eu/dataportal/preview/flora-cuba/modules/contextual/contextual.css?odh4km"); @import url("http://test.e-taxonomy.eu/dataportal/preview/flora-cuba/modules/comment/comment.css?odh4km"); @import url("http://test.e-taxonomy.eu/dataportal/preview/flora-cuba/modules/field/theme/field.css?odh4km"); @import url("http://test.e-taxonomy.eu/dataportal/preview/flora-cuba/modules/node/node.css?odh4km"); @import url("http://test.e-taxonomy.eu/dataportal/preview/flora-cuba/modules/search/search.css?odh4km"); @import url("http://test.e-taxonomy.eu/dataportal/preview/flora-cuba/modules/user/user.css?odh4km"); @import url("http://test.e-taxonomy.eu/dataportal/preview/flora-cuba/sites/all/modules/admin_menu/admin_menu.css?odh4km"); @import url("http://test.e-taxonomy.eu/dataportal/preview/flora-cuba/sites/all/modules/admin_menu/admin_menu.uid1.css?odh4km"); @import url("http://test.e-taxonomy.eu/dataportal/preview/flora-cuba/sites/all/modules/admin_menu/admin_menu_toolbar/admin_menu_toolbar.css?odh4km"); @import url("http://test.e-taxonomy.eu/dataportal/preview/flora-cuba/modules/shortcut/shortcut.css?odh4km"); @import url("http://test.e-taxonomy.eu/dataportal/preview/flora-cuba/sites/flora-cuba/modules/cdm_dataportal/cdm_dataportal.css?odh4km"); @import url("http://test.e-taxonomy.eu/dataportal/preview/flora-cuba/sites/flora-cuba/modules/cdm_dataportal/cdm_dataportal_screen.css?odh4km"); @import url("http://test.e-taxonomy.eu/dataportal/preview/flora-cuba/sites/flora-cuba/modules/cdm_dataportal/js/colorbox/colorbox.css?odh4km"); @import url("http://test.e-taxonomy.eu/dataportal/preview/flora-cuba/sites/flora-cuba/modules/cdm_dataportal/js/DataTables-1.9.4/media/css/cdm_debug_table.css?odh4km"); @import url("http://test.e-taxonomy.eu/dataportal/preview/flora-cuba/sites/flora-cuba/themes/zen_dataportal/css/styles.css?odh4km"); #header { background: white url('http://test.e-taxonomy.eu/dataportal/preview/flora-cuba/sites/flora-cuba/files/headerneu_2.png') scroll no-repeat; background-color: white; background-clip: content-box; } #site-name a span {color:#013e33;} #main-menu a:link, #main-menu a:visited, #main-menu a.active:link {color:#ffffff;} #navigation #main-menu ul.links li {border-color:#ffffff;} #main-menu {background-color:#013e33;} #header {background-position:100px 0;} /** * On small displays the main menu and sub-header must not have extra padding * on the left side. */ @media all and (min-width: 480px) { #main-menu, #sub-header {padding-left:80px;} } #header{ height: 157px; background-position: 10px 0; } .distributionStatus { display: inline; } #distribution_hierarchy span.level_index_0 { display: block; } #block-block-3{ position: static; } #JBN_logo{ height: 93px; width: 140px; z-index:1; right: 20px; top: 20px; position: absolute; background: url(/flora-cuba/sites/flora-cuba/files/images/jbn_logo.png) scroll no-repeat; } jQuery(document).ready(function() { jQuery('#classification-breadcrumbs .taxonomic-children-button').taxonomic_children({ // hoverClass: "fa-rotate-90", // activeClass: "fa-rotate-90", classificationUuid: "5de394de-9c76-4b97-b04d-71be31c7f44b", taxonUuid: "", cdmWebappBaseUri: "http://test.e-taxonomy.eu/cdmserver/flora_cuba/", proxyBaseUri: "http://test.e-taxonomy.eu/dataportal/preview/flora-cuba", }); }); jQuery.extend(Drupal.settings, {"basePath":"\/dataportal\/preview\/flora-cuba\/","pathPrefix":"","ajaxPageState":{"theme":"zen_dataportal","theme_token":"uqkp6-fBfvJcRLngMxXvAYhhZ4uU9qfgC1hWefLaLoM","js":{"misc\/jquery.js":1,"misc\/jquery.once.js":1,"misc\/drupal.js":1,"modules\/contextual\/contextual.js":1,"sites\/all\/modules\/admin_menu\/admin_menu.js":1,"sites\/all\/modules\/admin_menu\/admin_menu_toolbar\/admin_menu_toolbar.js":1,"sites\/flora-cuba\/modules\/cdm_dataportal\/js\/DataTables-1.9.4\/media\/js\/jquery.dataTables.min.js":1,"sites\/flora-cuba\/modules\/cdm_dataportal\/js\/colorbox\/jquery.colorbox-min.js":1,"sites\/flora-cuba\/modules\/cdm_dataportal\/js\/ws_debug_block.js":1,"sites\/flora-cuba\/modules\/cdm_dataportal\/js\/http-method-link.js":1,"sites\/all\/modules\/devel\/devel_krumo_path.js":1,"sites\/flora-cuba\/modules\/cdm_dataportal\/js\/jquery.cdm.taxonomic_children.js":1,"0":1,"misc\/autocomplete.js":1},"css":{"modules\/system\/system.base.css":1,"modules\/system\/system.menus.css":1,"modules\/system\/system.messages.css":1,"modules\/system\/system.theme.css":1,"modules\/contextual\/contextual.css":1,"modules\/comment\/comment.css":1,"modules\/field\/theme\/field.css":1,"modules\/node\/node.css":1,"modules\/search\/search.css":1,"modules\/user\/user.css":1,"sites\/all\/modules\/admin_menu\/admin_menu.css":1,"sites\/all\/modules\/admin_menu\/admin_menu.uid1.css":1,"sites\/all\/modules\/admin_menu\/admin_menu_toolbar\/admin_menu_toolbar.css":1,"modules\/shortcut\/shortcut.css":1,"sites\/flora-cuba\/modules\/cdm_dataportal\/cdm_dataportal.css":1,"sites\/flora-cuba\/modules\/cdm_dataportal\/cdm_dataportal_screen.css":1,"sites\/flora-cuba\/modules\/cdm_dataportal\/js\/colorbox\/colorbox.css":1,"sites\/flora-cuba\/modules\/cdm_dataportal\/js\/DataTables-1.9.4\/media\/css\/cdm_debug_table.css":1,"sites\/flora-cuba\/themes\/zen_dataportal\/system.menus.css":1,"sites\/flora-cuba\/themes\/zen_dataportal\/system.messages.css":1,"sites\/flora-cuba\/themes\/zen_dataportal\/system.theme.css":1,"sites\/flora-cuba\/themes\/zen_dataportal\/css\/styles.css":1}},"urlIsAjaxTrusted":{"http:\/\/test.e-taxonomy.eu\/dataportal\/preview\/flora-cuba\/cdm_dataportal\/search\/results\/taxon":true},"tableHeaderOffset":"Drupal.admin.height","admin_menu":{"destination":"destination=cdm_dataportal\/taxon\/autosuggest\/\/\/\/\/Barler","hash":"0360b2b83f8aa17b0edbb05fb64c885a","basePath":"\/dataportal\/preview\/flora-cuba\/admin_menu","margin_top":1,"position_fixed":1,"toolbar":[]}}); Jump to navigation The Spermatophyta of Cuba - A Preliminary Checklist Configure block Taxon does not exist Main menuHome Bibliography Credits Configure block CDM DebugURI (http://test.e-taxonomy.eu/cdmserver/flora_cuba/...)TimeFetching [s]Parsing [s]Size [kb]StatusLinkstermVocabulary/ca04609b-1ba0-4d31-9c2e-aa8eb2f4e62d/terms?orderBy=BY_ORDER_INDEX_ASC&pageNumber=0&pageSize=5000.0000.0180.0001.2validxml-proxiedjson-proxiedportal/taxon/autosuggest0.0400.0340.0000.3invalidxml-proxiedjson-proxiedportal/classification?pageNumber=0&pageSize=5000.0490.0080.0000.5validxml-proxiedjson-proxiedportal/classification/5de394de-9c76-4b97-b04d-71be31c7f44b/childNodesOf/0.0570.0080.0000.4invalidxml-proxiedjson-proxiedURI (http://test.e-taxonomy.eu/cdmserver/flora_cuba/...)TimeFetching [s]Parsing [s]Size [kb]StatusLinks Search taxa Configure block Enter the name or part of a name you wish to search for. The asterisk character * can be used as wildcard, but must not be used as first character. Misapplied names Advanced Search Navigation List links Edit menu Configure block Add content Configure block
Updated by Andreas Müller over 7 years ago
Also I do not understand why the flag to switch on auto-completion is put to Settings - General - CdmServer - FreeText Index. This is not really where I search for it. Can't we put it to "Search" with a comment that freetext indexing must be enabled to make this work? Or what is the reason for putting it there?
Updated by Andreas Kohlbecker over 7 years ago
- Related to bug #6075: harmonize ' Enable auto-suggest' option with existing code added
Updated by Andreas Müller over 7 years ago
Andreas Müller wrote:
Also I do not understand why the flag to switch on auto-completion is put to Settings - General - CdmServer - FreeText Index. This is not really where I search for it. Can't we put it to "Search" with a comment that freetext indexing must be enabled to make this work? Or what is the reason for putting it there?
See related ticket #6075
Updated by Andreas Müller over 7 years ago
- Precedes bug #6085: Use lucene auto suggest functionality for improved auto suggest added
Updated by Andreas Müller over 7 years ago
- Related to feature request #3994: Select widget to choose the filter areas for the advanced search added
Updated by Patrick Plitzner over 7 years ago
Added "Experimental" to settings description
Should we move this feature to 4.4?
Updated by Andreas Müller over 7 years ago
- Target version changed from Release 4.3 to Release 4.4
Updated by Andreas Müller over 7 years ago
- Target version changed from Release 4.4 to Release 4.5
Updated by Andreas Müller about 7 years ago
- Target version changed from Release 4.5 to Release 4.6
- Private changed from Yes to No
Updated by Andreas Kohlbecker about 7 years ago
- Priority changed from New to Highest
Updated by Andreas Müller about 7 years ago
- Target version changed from Release 4.6 to Release 4.7
Updated by Patrick Plitzner almost 7 years ago
- Target version changed from Release 4.7 to Release 4.8
Updated by Andreas Müller almost 7 years ago
- Target version changed from Release 4.8 to Release 4.9
Updated by Andreas Müller over 6 years ago
- Status changed from Feedback to In Progress
- Target version changed from Release 4.9 to Release 4.10
Updated by Andreas Müller over 6 years ago
- Target version changed from Release 4.10 to Release 4.11
Updated by Andreas Müller over 6 years ago
- Target version changed from Release 4.11 to Release 4.12
Updated by Andreas Müller over 6 years ago
- Target version changed from Release 4.12 to Release 4.13
Updated by Andreas Müller about 6 years ago
- Target version changed from Release 4.13 to Release 4.14
Updated by Andreas Müller about 6 years ago
- Target version changed from Release 4.14 to Release 5.1
Updated by Andreas Müller almost 6 years ago
- Target version changed from Release 5.1 to Release 5.2
Updated by Andreas Müller over 5 years ago
- Target version changed from Release 5.2 to Release 5.3
Updated by Patrick Plitzner over 5 years ago
- Target version changed from Release 5.3 to Release 5.4
Updated by Andreas Müller over 5 years ago
- Related to bug #7764: Fix classification and synonym bug in taxon name freetext search added
Updated by Patrick Plitzner over 5 years ago
- Target version changed from Release 5.4 to Release 5.5
Updated by Patrick Plitzner over 5 years ago
- Target version changed from Release 5.5 to Release 5.6
Updated by Patrick Plitzner over 5 years ago
- Target version changed from Release 5.6 to Release 5.5
Updated by Patrick Plitzner about 5 years ago
- Target version changed from Release 5.5 to Release 5.6
Updated by Andreas Müller about 5 years ago
- Target version changed from Release 5.6 to Reviewed Next Major Release
Updated by Patrick Plitzner about 5 years ago
- Status changed from In Progress to New
Updated by Andreas Müller over 4 years ago
- Assignee changed from Patrick Plitzner to Andreas Kohlbecker