Open
Description
Deleted records appear on the normal search.
Expected Behavior
They shouldn't, unless explicitly specified.
Steps to Reproduce (for bugs)
- migrate this record https://labs.inspirehep.net/api/literature/1297774
inspirehep migrator one --recid=1297774
- Do an empty search and you can find it.
Notes:
- If I write
deleted:true
as a query I can see only that record. But if I writedeleted:false
doesn't return anything.
Same happens with ElasticSearch query
GET records-hep/_search
{
"query": {
"match": {
"deleted": true
}
}
}
(either true
or false
, same behaviour as described above).