Skip to content

Deleted records appear in search results #2933

Open
@chris-asl

Description

@chris-asl

Deleted records appear on the normal search.

Expected Behavior

They shouldn't, unless explicitly specified.

Steps to Reproduce (for bugs)

  1. migrate this record https://labs.inspirehep.net/api/literature/1297774
    inspirehep migrator one --recid=1297774
  2. Do an empty search and you can find it.

Notes:

  1. If I write deleted:true as a query I can see only that record. But if I write deleted: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).

  1. This code seems related and it's being used here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions