Project

General

Profile

feature request #5890

Implement auto-suggest for data portal

Added by Patrick Plitzner over 2 years ago. Updated 3 months ago.

Status:
In Progress
Priority:
Highest
Category:
cdm-dataportal
Target version:
Start date:
06/15/2016
Due date:
% Done:

0%

Estimated time:
8.00 h
Severity:
normal

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

Related to Edit - bug #6075: harmonize ' Enable auto-suggest' option with existing code Closed 09/13/2016
Related to Edit - feature request #3994: Select widget to choose the filter areas for the advanced search Closed 07/07/2015
Related to Edit - bug #7764: Fix classification and synonym bug in taxon name freetext search Resolved 09/17/2018
Precedes Edit - bug #6085: Use lucene auto suggest functionality for improved auto suggest New 06/16/2016 06/16/2016

Associated revisions

Revision 28442 (diff)
Added by Patrick Plitzner over 2 years ago

Add taxon auto_suggest to portal setting #5890

Revision 6a5d84e2 (diff)
Added by Patrick Plitzner over 2 years ago

ref #5890 Added "Experimental" to settings description

History

#1 Updated by Patrick Plitzner over 2 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

#2 Updated by Patrick Plitzner over 2 years ago

  • Target version changed from Unassigned CDM tickets to Release 4.2

#3 Updated by Andreas Kohlbecker over 2 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.

#4 Updated by Andreas Müller over 2 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.

#5 Updated by Andreas Kohlbecker over 2 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.

#6 Updated by Patrick Plitzner over 2 years ago

  • Status changed from Resolved to In Progress

Added taxon auto_suggest to portal setting with r28442

#7 Updated by Andreas Müller over 2 years ago

  • Target version changed from Release 4.2 to Release 4.3

#8 Updated by Patrick Plitzner over 2 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

#9 Updated by Andreas Müller over 2 years ago

  • Status changed from Closed to Feedback
  • Resolution deleted (fixed)
  • % Done changed from 100 to 0

#10 Updated by Andreas Müller over 2 years ago

  • Status changed from Feedback to Resolved
  • Assignee changed from p.plitzner - to Andreas Kohlbecker

#11 Updated by Andreas Müller over 2 years ago

  • Assignee changed from Andreas Kohlbecker to Andreas Müller

#12 Updated by Andreas Müller over 2 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

#13 Updated by Andreas Müller over 2 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?

#16 Updated by Andreas Kohlbecker over 2 years ago

  • Related to bug #6075: harmonize ' Enable auto-suggest' option with existing code added

#17 Updated by Andreas Müller over 2 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

#18 Updated by Andreas Müller over 2 years ago

  • Precedes bug #6085: Use lucene auto suggest functionality for improved auto suggest added

#20 Updated by Andreas Müller over 2 years ago

  • Related to feature request #3994: Select widget to choose the filter areas for the advanced search added

#21 Updated by Patrick Plitzner over 2 years ago

Added "Experimental" to settings description

Should we move this feature to 4.4?

#22 Updated by Andreas Müller over 2 years ago

  • Target version changed from Release 4.3 to Release 4.4

#23 Updated by Andreas Müller over 2 years ago

  • Estimated time set to 8.00 h

#24 Updated by Andreas Müller about 2 years ago

  • Target version changed from Release 4.4 to Release 4.5

#25 Updated by Andreas Müller about 2 years ago

  • Target version changed from Release 4.5 to Release 4.6
  • Private changed from Yes to No

#26 Updated by Andreas Kohlbecker about 2 years ago

  • Priority changed from New to Highest

#27 Updated by Andreas Müller almost 2 years ago

  • Target version changed from Release 4.6 to Release 4.7

#28 Updated by Patrick Plitzner over 1 year ago

  • Target version changed from Release 4.7 to Release 4.8

#29 Updated by Andreas Müller over 1 year ago

  • Target version changed from Release 4.8 to Release 4.9

#30 Updated by Andreas Müller over 1 year ago

  • Status changed from Feedback to In Progress
  • Target version changed from Release 4.9 to Release 4.10

#31 Updated by Andreas Müller over 1 year ago

  • Target version changed from Release 4.10 to Release 4.11

#32 Updated by Andreas Müller about 1 year ago

  • Target version changed from Release 4.11 to Release 4.12

#33 Updated by Andreas Müller about 1 year ago

  • Target version changed from Release 4.12 to Release 4.13

#34 Updated by Andreas Müller 12 months ago

  • Target version changed from Release 4.13 to Release 4.14

#35 Updated by Andreas Müller 11 months ago

  • Target version changed from Release 4.14 to Release 5.1

#36 Updated by Andreas Müller 7 months ago

  • Target version changed from Release 5.1 to Release 5.2

#37 Updated by Andreas Müller 5 months ago

  • Target version changed from Release 5.2 to Release 5.3

#38 Updated by Patrick Plitzner 5 months ago

  • Target version changed from Release 5.3 to Release 5.4

#39 Updated by Andreas Müller 4 months ago

  • Related to bug #7764: Fix classification and synonym bug in taxon name freetext search added

#40 Updated by Patrick Plitzner 3 months ago

  • Target version changed from Release 5.4 to Release 5.5

#41 Updated by Patrick Plitzner 3 months ago

  • Target version changed from Release 5.5 to Release 5.6

#42 Updated by Patrick Plitzner 3 months ago

  • Target version changed from Release 5.6 to Release 5.5

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 40 MB)