dainst / ariadne-portal

MIT License
0 stars 1 forks source link

Add raw field to title to enable alphabetical sorting #208

Open borsna opened 8 years ago

borsna commented 8 years ago

To fix the sorting of title in issue #207 we need to add a raw field for the title:

"title": { 
    "type":     "string",
    "fields": {
        "raw": { 
            "type":  "string",
            "index": "not_analyzed"
        }
    }
}

This will make it posible to sort the title field. Reference: https://www.elastic.co/guide/en/elasticsearch/guide/current/multi-fields.html

eafiontzi commented 8 years ago

It could be done, but it would need all 1.800.000 resources to be republished, which will take some time.

borsna commented 8 years ago

yepp, may be a feature for later. Would be alot of reindexing for a small feature. I think we should deactivate sorting by title the next release and do this when we have the need to reindex the whole collection again.

eafiontzi commented 7 years ago

Yeap, I will check if with the other temporal and spatial corrections the majority of the packages need republishing and if that is the case I will add the feature.