EHRI / ehri-frontend

The EHRI project's portal interface.
https://portal.ehri-project.eu
European Union Public License 1.2
14 stars 9 forks source link

GET /filter doesn't return names... #320

Closed PonteIneptique closed 10 years ago

PonteIneptique commented 10 years ago

GET http://localhost:9000/filter?limit=10&q=st&st[]=historicalAgent&page=1

{"numPages":4,"page":1,"items":[{"id":"ehri-cb-1330","did":"ehri-cb-1330-eng-707","name":"","type":"historicalAgent","parent":"","gid":22571},{"id":"ehri-cb-358","did":"ehri-cb-358-eng-42","name":"","type":"historicalAgent","parent":"","gid":17686},{"id":"ehri-cb-328","did":"ehri-cb-328-eng-12","name":"","type":"historicalAgent","parent":"","gid":19170},{"id":"ehri-cb-899","did":"ehri-cb-899-eng-496","name":"","type":"historicalAgent","parent":"","gid":21462},{"id":"ehri-pers-000021","did":"ehri-pers-000021-eng","name":"","type":"historicalAgent","parent":"","gid":22764},{"id":"ehri-cb-415","did":"ehri-cb-415-eng-101","name":"","type":"historicalAgent","parent":"","gid":18970},{"id":"ehri-cb-677","did":"ehri-cb-677-eng-323","name":"","type":"historicalAgent","parent":"","gid":17883},{"id":"ehri-cb-1156","did":"ehri-cb-1156-eng-634","name":"","type":"historicalAgent","parent":"","gid":17826},{"id":"ehri-cb-350","did":"ehri-cb-350-eng-34","name":"","type":"historicalAgent","parent":"","gid":19931},{"id":"ehri-cb-669","did":"ehri-cb-669-eng-316","name":"","type":"historicalAgent","parent":"","gid":18939}]}
PonteIneptique commented 10 years ago

Actually, it seems to be a SOLR issue ? So for you @mikesname SolrQuery

mikesname commented 10 years ago

Seems to work for me. Rebuild index?

PonteIneptique commented 10 years ago

Already did. And it is consistent with the bug you had on your laptop yesterday and on stage...

PonteIneptique commented 10 years ago
<result name="doclist" numFound="1" start="0">
<doc>
<str name="type">historicalAgent</str>
<str name="id">ehri-cb-432-eng-118</str>
<str name="itemId">ehri-cb-432</str>
<long name="gid">19627</long>
</doc>
</result>
PonteIneptique commented 10 years ago

During indexing :

Jul 23, 2014 1:41:51 PM org.apache.solr.update.processor.LanguageIdentifierUpdateProcessor concatFields
WARNING: Field name not a String value, not including in detection
mikesname commented 10 years ago

I wouldn't worry about that warning. Do you still have the problem?

PonteIneptique commented 10 years ago

Nop. Logs give me

commit df50dbceb32200b726a84601fb652770188f8d31
Author: Mike Bryant <mikesname@gmail.com>
Date:   Tue Jul 15 23:42:10 2014 +0100

    Pom cleanup
mikesname commented 10 years ago

Fixed (in indexer bug 24)