Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

client/api/search vrací 500 pro Solr dotaz #342

Closed
filak opened this issue Feb 16, 2016 · 1 comment
Closed

client/api/search vrací 500 pro Solr dotaz #342

filak opened this issue Feb 16, 2016 · 1 comment

Comments

@filak
Copy link

filak commented Feb 16, 2016

Pokud se v client prochazi pres fasetu Typ dokumentu, tak po kliknuti na konkretni titul server vraci status 500. Napriklad:
http://kramerius.medvik.cz/client/index.vm?q=&page=search&start=0&rows=&typ_titulu=periodical
=> Casopis lekaru ceskych (http://kramerius.medvik.cz/client/index.vm?q=&page=doc&start=0&rows=&typ_titulu=periodical#pid=uuid:MED00010976-visk)
=> vrátí 500 pro: http://kramerius.medvik.cz/client/api/search?q=*:*&rows=5000&fq=pid_path:uuid\:med00010976-visk/*&hl=true&hl.fl=text_ocr&hl.mergeContiguous=true&hl.snippets=2&fq=typ_titulu:periodical

Pozorovano i v jinych instancich K5, napr. http://kramerius.mzk.cz/client/api/search?q=*:*&rows=5000&fq=pid_path:uuid\:87f6e957-90de-11e0-a36c-0050569d679d/*&hl=true&hl.fl=text_ocr&hl.mergeContiguous=true&hl.snippets=2&fq=typ_titulu:periodical

V Tomcat logu pak je:
16.2.2016 9:53:04 org.apache.solr.common.SolrException log
SEVERE: org.apache.solr.common.SolrException: undefined field typ_titulu
at org.apache.solr.schema.IndexSchema.getDynamicFieldType(IndexSchema.java:1254)

Problem je tedy v parametru fq=typ_titulu, a zrejme i ve fq=pid_path - takhle se neco vrati:
http://kramerius.mzk.cz/client/api/search?q=*:*&rows=5000&fq=pid_path:uuid\:87f6e957-90de-11e0-a36c-0050569d679d*&hl=true&hl.fl=text_ocr&hl.mergeContiguous=true&hl.snippets=2&fq=document_type:periodical

@pavel-stastny
Copy link
Contributor

Opraveno v 8a07dd4 a f89fd5a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants