Closed robyngit closed 3 years ago
After some testing, I believe that exclude
will work they way we'd expect. An example:
Query: (keywordsText:"pollinator-mediated selection" AND "deception" AND "Thynnine wasps") AND (-obsoletedBy:* AND formatType:METADATA)
Results: 3
PIDs:
Query: (originText:Peakall AND abstract:orchids) AND (-obsoletedBy:* AND formatType:METADATA)
Results: 30
Note that the PIDs in Query 2 contain all the PIDs from Query 1
As expected, the PIDs from Query 1 are excluded from the results.
In the proposal for the new Collections and Portals schemas, we want to use an
exclude
field on afilterGroup
. The idea is to create a query where we can exclude the portion of results that match a sub-query. We need to test whether we are able to create such queries in Solr before adding this enhancement to the schema.This relates to issue #70.