isamplesorg / isamples_webui

Web interface to iSB and iSC APIs

Home Page:https://isamplesorg.github.io/isamples_webui/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Adjust default query in UI to exclude relation child records

datadavev opened this issue · comments

After adding child records to solr, the total record count now includes any child records as well as the parents resulting in inflated record counts.

Child records may be excluded by adding the phrase AND NOT relation_type:* (or any equivalent syntax such as !relation_type:* or -relation_type:*) to queries being sent to solr.

For example, all parent records can be found with:

*:* AND -relation_target:*