dainst / ariadne-portal

MIT License
0 stars 1 forks source link

Old numreric types in the aat index #132

Open borsna opened 8 years ago

borsna commented 8 years ago

When looking at the mapping at: http://ariadne-portal.dcu.gr:9200/aat/

...
"300404197": {
  "properties": {
      "id": {
        "type": "long"
      },
      "prefLabel": {
        "type": "string"
      },
      "uri": {
        "type": "string"
      }
  }
},
"terms":  {
  "properties": {
      "id": {
        "type": "long"
      },
      "prefLabel": {
        "type": "string"
      },
      "uri": {
        "type": "string"
      }
  }
},```

I think the only type is terms?

This could be solved by removing the index before the next insert.
eafiontzi commented 8 years ago

I can see the issue here, but when searching for http://ariadne-portal.dcu.gr:9200/aat/terms/_search, it seems that all 15620 documents have the type terms, while when trying http://ariadne-portal.dcu.gr:9200/aat/300404197/_search, I get zero results. How could this be passed to the mapping automatically?

borsna commented 8 years ago

I think this is an issue from some earlier post where the type was set to the id and the documents have been removed. I think this will resolve itself when the index is removed and the new mapping is posted.