Opened 16 years ago

Closed 13 years ago

#502 closed defect (fixed)

ST - search results not as expected

Reported by: nc7cg Owned by: Pete Cyr
Priority: major Milestone: Release Candidate 2
Component: Search Tool Version: 1.0.3898
Severity: Keywords:
Cc: Database Engine: SQL Server
Operating System: XP Pro 32 bit

Description

search string:
Zea mays

AND @accession.reproductive_uniformity_code "Highly inbred" AND @accession_name.plant_name B73

returned:
multiple taxa, multiple reproductive uniformity types, and non-B73-related accessions

Attachments (1)

Doc1.docx​ (97.1 KB ) - added by nc7cg 16 years ago.
ST screenshot #502

Download all attachments as: .zip

Change History (5)

by nc7cg, 16 years ago

Attachment: Doc1.docx​ added

ST screenshot #502

comment:1 by bweaver, 16 years ago

Status: new → addressed

When issuing requests from the Search Tool, a new line implies an 'OR'. Meaning a search for:

{{{Zea Mays
AND @accession.reproductive_uniformity_code "Highly inbred" AND @accession_name.plant_name B73}}}

Will return all hits for Zea Mays *in addition to* all hits which are "highly inbred" and "B73" (in the test database on dev2 as of 2010/09/08, this is roughly 880 rows)

Issuing the same request without the line break will result in 0 rows:

Zea Mays AND @accession.reproductive_uniformity_code "Highly inbred" AND @accession_name.plant_name B73

There are currently no B73 accessions in the test database with an accession_name.plant_name of B73. However, if you search for just B73 you get 6 hits (PI 503806, PI 506247, PI 506255, PI 517974, PI 528313, PI 539872).

The "Highly inbred" is the english-specific text for the code of "INBRED". There is currently a problem in the search_accession dataview in the released database which does not have the english-specific field name correct, meaning automatically looking up the hit based on the language-specific name does not work. Modifying the query to use @accession.reproductive_uniformity_name_1 "Highly inbred" will provide the proper results, but that's obviously not desirable to query that way since the ST does not auto-create that field name for you (and shouldn't -- it should use the _code one like it does now)

The language-specific issue in the dataview is already fixed on dev2 and will be part of the next release. Pointing the CT at dev2 instead of localhost and doing a search there for @accession.reproductive_uniformity_code "Highly inbred" will now return the appropriate results.

comment:2 by bweaver, 16 years ago

Just for more info...

B73 is not found accession_name.plant_name in the current test database, but it is located in:

  • inventory.note (PI 528313)
  • order_request.note (PI 503806, PI 511804, PI 539872)
  • crop_trait_observation.string_value (PI 506247, PI 506255, PI 517974)

That is why searching for "B73" yields 6 results and "@accession_name.plant_name B73" yields 0.

This data can be determined in the search engine with a debugger attached, but is not currently available otherwise. This enhancement has been requested several times before but has been always been pushed aside to address more important issues (Admin Tool development, fixing defects, schema changes, dataview fixes, etc)

comment:3 by bweaver, 16 years ago

Status: addressed → released

comment:4 by Pete Cyr, 13 years ago

Resolution: → fixed
Status: released → closed
Note: See TracTickets for help on using tickets.