Solr not searching for me

260 views
Skip to first unread message

in...@princerupertlibrary.ca

unread,
Dec 9, 2013, 5:51:41 PM12/9/13
to isla...@googlegroups.com
I'm not very good with Islandora still. My searches aren't working at all, and I'm not sure what's going on here. Can anyone tell me what's going on here, or what other logs I should be looking at?

WM

-=-=-=-=-=-=-=-=-=-=-

14:10:08 SEVERE SolrCore org.apache.solr.SolrException: undefined field: ""
  org.apache.solr.common.SolrException: undefined field: ""

Fatal error: Call to a member function getRawResponse() on a non-object in /var/www/sites/prnewspaperarchives.ca/modules/islandora_solr_search/IslandoraSolrResults.inc on line 1415

error searching "400" Status: Bad Request

warning: Invalid argument supplied for foreach() in /var/www/includes/form.inc on line 1446.
Error searching solr index. Is the solr search block configured properly?
warning: Invalid argument supplied for foreach() in /var/www/includes/form.inc on line 1446.

{
  "responseHeader":{
    "status":400,
    "QTime":10,
    "params":{
      "hl.fragsize":"150",
      "facet":"true",
      "indent":"on",
      "facet.mincount":"1",
      "facet.limit":"10",
      "qf":"dc.title^5 dc.subject^2 dc.description^2 dc.creator^2 dc.contributor^1 dc.type",
      "hl.simple.pre":"<strong>",
      "json.nl":"map",
      "hl.fl":"dsm.OCR",
      "wt":"json",
      "hl":"true",
      "rows":"20",
      "defType":"dismax",
      "version":"1.2",
      "debugQuery":"true",
      "start":"0",
      "q":"mauve",
      "hl.simple.post":"</strong>",
      "facet.field":"",
      "qt":"standard"}},
  "response":{"numFound":0,"start":0,"docs":[]
  },
  "error":{
    "msg":"undefined field: \"\"",
    "code":400}}

****catalina.2013-12-09.log:****

9-Dec-2013 2:10:06 PM org.apache.solr.core.SolrCore execute
INFO: [collection1] webapp=/solr path=/admin/logging params={since=1386626950528&wt=json} status=0 QTime=1 
9-Dec-2013 2:10:07 PM org.apache.solr.core.SolrCore execute
INFO: [collection1] webapp=/solr path=/admin/ping params={} hits=0 status=0 QTime=4 
9-Dec-2013 2:10:07 PM org.apache.solr.core.SolrCore execute
INFO: [collection1] webapp=/solr path=/admin/ping params={} status=0 QTime=5 
9-Dec-2013 2:10:07 PM org.apache.solr.core.SolrCore execute
INFO: [collection1] webapp=/solr path=/admin/file/ params={file=solrconfig.xml} status=0 QTime=0 
9-Dec-2013 2:10:07 PM org.apache.solr.core.SolrCore execute
INFO: [collection1] webapp=/solr path=/admin/file/ params={file=solrconfig.xml} status=0 QTime=0 
9-Dec-2013 2:10:08 PM org.apache.solr.common.SolrException log
SEVERE: org.apache.solr.common.SolrException: undefined field: ""
at org.apache.solr.schema.IndexSchema.getField(IndexSchema.java:995)
at org.apache.solr.request.SimpleFacets.getTermCounts(SimpleFacets.java:345)
at org.apache.solr.request.SimpleFacets.getFacetFieldCounts(SimpleFacets.java:517)
at org.apache.solr.request.SimpleFacets.getFacetCounts(SimpleFacets.java:252)
at org.apache.solr.handler.component.FacetComponent.process(FacetComponent.java:78)
at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:208)
at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)
at org.apache.solr.core.SolrCore.execute(SolrCore.java:1797)
at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:637)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:343)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:141)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
at java.lang.Thread.run(Thread.java:662)

9-Dec-2013 2:10:08 PM org.apache.solr.core.SolrCore execute
INFO: [collection1] webapp=/solr path=/select params={hl.fragsize=150&facet=true&facet.mincount=1&facet.limit=10&qf=dc.title^5+dc.subject^2+dc.description^2+dc.creator^2+dc.contributor^1+dc.type&hl.simple.pre=<strong>&json.nl=map&hl.fl=dsm.OCR&wt=json&hl=true&rows=20&defType=dismax&version=1.2&start=0&q=mauve&hl.simple.post=</strong>&facet.field=&qt=standard} hits=0 status=400 QTime=28 
INFO: [collection1] webapp=/solr path=/admin/logging params={since=1386627008310&wt=json} status=0 QTime=0 
9-Dec-2013 2:15:11 PM org.apache.solr.core.SolrCore execute
INFO: [collection1] webapp=/solr path=/admin/ping params={} hits=0 status=0 QTime=1 
9-Dec-2013 2:15:11 PM org.apache.solr.core.SolrCore execute
INFO: [collection1] webapp=/solr path=/admin/ping params={} status=0 QTime=2 
9-Dec-2013 2:15:11 PM org.apache.solr.core.SolrCore execute
INFO: [collection1] webapp=/solr path=/admin/file/ params={file=solrconfig.xml} status=0 QTime=1 
9-Dec-2013 2:15:11 PM org.apache.solr.core.SolrCore execute
INFO: [collection1] webapp=/solr path=/admin/file/ params={file=solrconfig.xml} status=0 QTime=0 
9-Dec-2013 2:15:16 PM org.apache.solr.core.SolrCore execute
INFO: [collection1] webapp=/solr path=/admin/logging params={since=1386627008310&wt=json} status=0 QTime=0 
9-Dec-2013 2:15:26 PM org.apache.solr.core.SolrCore execute
INFO: [collection1] webapp=/solr path=/admin/logging params={since=1386627008310&wt=json} status=0 QTime=0 
9-Dec-2013 2:15:36 PM org.apache.solr.core.SolrCore execute
INFO: [collection1] webapp=/solr path=/admin/logging params={since=1386627008310&wt=json} status=0 QTime=0 
9-Dec-2013 2:15:46 PM org.apache.solr.core.SolrCore execute
INFO: [collection1] webapp=/solr path=/admin/logging params={since=1386627008310&wt=json} status=0 QTime=0 
9-Dec-2013 2:15:52 PM org.apache.solr.common.SolrException log
SEVERE: org.apache.solr.common.SolrException: undefined field: ""
at org.apache.solr.schema.IndexSchema.getField(IndexSchema.java:995)
at org.apache.solr.request.SimpleFacets.getTermCounts(SimpleFacets.java:345)
at org.apache.solr.request.SimpleFacets.getFacetFieldCounts(SimpleFacets.java:517)
at org.apache.solr.request.SimpleFacets.getFacetCounts(SimpleFacets.java:252)
at org.apache.solr.handler.component.FacetComponent.process(FacetComponent.java:78)
at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:216)
at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)
at org.apache.solr.core.SolrCore.execute(SolrCore.java:1797)
at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:637)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:343)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:141)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
at java.lang.Thread.run(Thread.java:662)

9-Dec-2013 2:15:52 PM org.apache.solr.core.SolrCore execute
INFO: [collection1] webapp=/solr path=/select params={hl.fragsize=150&facet=true&indent=on&facet.mincount=1&facet.limit=10&qf=dc.title^5+dc.subject^2+dc.description^2+dc.creator^2+dc.contributor^1+dc.type&hl.simple.pre=<strong>&json.nl=map&hl.fl=dsm.OCR&wt=json&hl=true&rows=20&defType=dismax&version=1.2&debugQuery=true&start=0&q=mauve&hl.simple.post=</strong>&facet.field=&qt=standard} hits=0 status=400 QTime=10

Adam Vessey

unread,
Dec 9, 2013, 6:07:16 PM12/9/13
to isla...@googlegroups.com
Not really sure, but given the error message, I'd suspect the empty "facet.field" value. Make sure you don't have any empty facet fields entered in the Solr config?

- Adam
--
You received this message because you are subscribed to the Google Groups "islandora" group.
To unsubscribe from this group and stop receiving emails from it, send an email to islandora+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




This email is free from viruses and malware because avast! Antivirus protection is active.


in...@princerupertlibrary.ca

unread,
Dec 9, 2013, 6:25:35 PM12/9/13
to isla...@googlegroups.com
They were blank, and are now filled in. I'll see what changes result.

in...@princerupertlibrary.ca

unread,
Dec 9, 2013, 7:53:24 PM12/9/13
to isla...@googlegroups.com
Well, filling in the facets resulted in the options, dc.type and dc.subject for two, not being recognized. I was thinking that there's something wrong with the index, so I tried to reindex and got an HTTP 500 error from fedoragsearch:

The server encountered an internal error () that prevented it from fulfilling this request.

java.lang.NullPointerException

     dk.defxws.fgssolr.OperationsImpl.indexDocs(OperationsImp.java:359)
     dk.defxws.fgssolr.OperationsImpl.indexDocs(OperationsImp.java:364)
     dk.defxws.fgssolr.OperationsImpl.indexDocs(OperationsImp.java:364)
     dk.defxws.fgssolr.OperationsImpl.indexDocs(OperationsImp.java:364)
     dk.defxws.fgssolr.OperationsImpl.fromFoxmlFiles(OperationsImpl.java:341)
     dk.defxws.fgssolr.OperationsImpl.updateIndex(OperationsImp.java:244)
     dk.defxws.fedoragsearch.server.GenericOperationsImpl.updateIndex(OperationsImp.java:308)
     dk.defxws.fedoragsearch.server.RESTImpl.updateIndex(OperationsImp.java:261)
     dk.defxws.fedoragsearch.server.RESTImpl.doGet(OperationsImp.java:114)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

The full stack trace of the root cause is available in the Apache Tomcat/6.0.20 logs.

in...@princerupertlibrary.ca

unread,
Dec 19, 2013, 4:37:14 PM12/19/13
to isla...@googlegroups.com
Still having issues, alas. I seem to remember reading somewhere that when you update to a more recent version of Solr and FedoraGSearch, you need to reindex everything. Anyone have experience to back this up and suggest what I should do? The solr requests look good now (see below) but I'm not getting results, but I can find results by using browseIndex and searching for a date. So far, my efforts to update the index have netted a java-based NullPointException part way through, but I'm still trying different things.

Might be barking up the wrong tree, though.

{
  "responseHeader":{
    "status":0,
    "QTime":17,
    "params":{
      "hl.fragsize":"150",
      "facet":"true",
      "indent":"on",
      "facet.mincount":"1",
      "facet.limit":"10",
      "qf":"dc.title^5 dc.subject^2 dc.description^2 dc.creator^2 dc.contributor^1 dc.type",
      "hl.simple.pre":"<strong>",
      "json.nl":"map",
      "hl.fl":"dsm.OCR",
      "wt":"json",
      "hl":"true",
      "rows":"20",
      "defType":"dismax",
      "version":"1.2",
      "debugQuery":"true",
      "start":"0",
      "q":"1932-01-16",
      "hl.simple.post":"</strong>",
      "facet.field":["dc.type",
        "dsm.OCR",
        "dc.title",
        "dc.date"],
      "qt":"standard"}},
  "response":{"numFound":0,"start":0,"docs":[]
  },
  "facet_counts":{
    "facet_queries":{},
    "facet_fields":{
      "dc.type":{},
      "dsm.OCR":{},
      "dc.title":{},
      "dc.date":{}},
    "facet_dates":{},
    "facet_ranges":{}},
  "highlighting":{},
  "debug":{
    "rawquerystring":"1932-01-16",
    "querystring":"1932-01-16",
    "parsedquery":"(+DisjunctionMaxQuery(((dc.type:1932 dc.type:01 dc.type:16) | dc.creator:\"1932 01 16\"^2.0 | ((dc.subject:1932 dc.subject:01 dc.subject:16)^2.0) | dc.title:\"1932 01 16\"^5.0 | (dc.contributor:1932 dc.contributor:01 dc.contributor:16) | dc.description:\"1932 01 16\"^2.0)) ())/no_coord",
    "parsedquery_toString":"+((dc.type:1932 dc.type:01 dc.type:16) | dc.creator:\"1932 01 16\"^2.0 | ((dc.subject:1932 dc.subject:01 dc.subject:16)^2.0) | dc.title:\"1932 01 16\"^5.0 | (dc.contributor:1932 dc.contributor:01 dc.contributor:16) | dc.description:\"1932 01 16\"^2.0) ()",
    "explain":{},
    "QParser":"DisMaxQParser",
    "altquerystring":null,
    "boostfuncs":null,
    "timing":{
      "time":11.0,
      "prepare":{
        "time":6.0,
        "query":{
          "time":4.0},
        "facet":{
          "time":0.0},
        "mlt":{
          "time":0.0},
        "highlight":{
          "time":0.0},
        "stats":{
          "time":0.0},
        "debug":{
          "time":0.0}},
      "process":{
        "time":4.0,
        "query":{
          "time":0.0},
        "facet":{
          "time":0.0},
        "mlt":{
          "time":0.0},
        "highlight":{
          "time":0.0},
        "stats":{
          "time":0.0},
        "debug":{
          "time":3.0}}}}}
Reply all
Reply to author
Forward
0 new messages