bug #4223
closedAdvanced search returns unexpected results
50%
Description
Advanced search on Tab 'Advanced' for a taxon name returns all names relevant for a part of the search. E.g. search "Lactuca triquetra" returns returns all Lactuca taxa, not only Lactuca triquetra (and non existing children). As this field is called name search but not free/full text search this for me is unexpected behaviour.
Example taken from cichorieae database.
see also #4220
another example from the corvidae portal:
searching for "Garrulus americanus" across all classifications. I did expect one or two hits, but 58 are shown.
Updated by Andreas Kohlbecker almost 9 years ago
- Target version changed from cdm_dataportal RELEASE 3.5.0 to cdm_dataportal RELEASE 3.5.1
moving tickets to next milestone
Updated by Andreas Müller almost 9 years ago
- Target version deleted (
cdm_dataportal RELEASE 3.5.1)
move open 3.5.1 tickets to next milestone after release
Updated by Andreas Müller over 8 years ago
- Target version changed from cdm_dataportal RELEASE 3.8 to Reviewed Next Major Release
- Priority changed from New to Priority13
Handle together with search refactoring
Updated by Andreas Kohlbecker over 7 years ago
- Priority changed from Priority13 to Highest
Updated by Andreas Kohlbecker over 7 years ago
- Target version changed from Reviewed Next Major Release to Release 4.5
Updated by Gabriele Dröge over 7 years ago
- Tags changed from search to search, corvidae
Updated by Andreas Kohlbecker about 7 years ago
Here we are facing two problems:
- The portal does not allow to do a phrase search with a query string like
"Garrulus americanus"
. The web service works correctly in this case: http://api.cybertaxonomy.org/corvidae/portal/taxon/search.json?pageSize=25&pageNumber=0&doTaxa=1&doSynonyms=1&doTaxaByCommonNames=1&query=%22Garrulus+americanus%22 - When using the phrase search it is not possible to use wildcards at the same time. As noted in a related stack overflow post Lucene 2.9 has ComplexPhraseQueryParser which can handle wildcards in phrases. In the cdmlib we are currently using
5.4.1
. An alternative solution could be to use MultiPhraseQuery, but as its summary says, you still need to enumerate the IndexReader.terms yourself to match the wildcard. (also from above names stackoverflow post)
Updated by Andreas Kohlbecker about 7 years ago
The ComplexPhraseQueryParser
is still available in the our current lucene version, so we could give this one a try.
Updated by Andreas Kohlbecker about 7 years ago
Andreas Kohlbecker wrote:
Here we are facing two problems:
- The portal does not allow to do a phrase search with a query string like
"Garrulus americanus"
. The web service works correctly in this case: http://api.cybertaxonomy.org/corvidae/portal/taxon/search.json?pageSize=25&pageNumber=0&doTaxa=1&doSynonyms=1&doTaxaByCommonNames=1&query=%22Garrulus+americanus%22
Problem 1) is solved by cdm-dataportal|8bb9f541
Updated by Andreas Kohlbecker about 7 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 50
Applied in changeset cdmlib|5c69d02f232481e02f850bfd10404566a8373e5b.
Updated by Andreas Kohlbecker about 7 years ago
- Assignee changed from Andreas Kohlbecker to Gabriele Dröge
this issue is fully solved now, please do the review asap.
Updated by Gabriele Dröge about 7 years ago
- Assignee changed from Gabriele Dröge to Andreas Kohlbecker
Works for me in the Corvids test portal now.
Updated by Andreas Kohlbecker about 7 years ago
- Status changed from Resolved to Closed