Yes, I mean in schema.xml. The exception you got indicates that some numeric
field remains.
You should use Solr 3.5 with GSearch 2.4.1. The next release will include Solr
3.6.
Notice, that you got this exception, because you search with gfindObjects.
Since you use the solr plugin, you may also search directly on Solr with solr
syntax, in fact it is better to do so, because you may take advantage of the
solr features like facet search, and then you avoid this exception.
Gert
On 02/05/2012, at 17.00, David Chandek-Stark wrote:
> Thanks, Gert. By “definition” do you mean in schema.xml? I actually tried
> using only string and text fields, and still encountered this issue (unless I
> missed something). As to the code change, I am not familiar with the Lucene
> code base, so am probably not qualified to comment on the appropriate fix.
> Until the new release is available, what version of Solr would you recommend
> using?
>
> Thanks,
> David
>
> From: Gert Schmeltz Pedersen [mailto:[email protected]]
> Sent: Wednesday, May 02, 2012 9:19 AM
> To: Support and info exchange list for Fedora users.
> Subject: Re: [fcrepo-user] GSearch/Solr compatibility
>
> Thank you for the link. Can you send me the definition you use of a
> NumericField, thank you.
>
> I think the resolution is to do the similar change in line
>
> dk.defxws.fgssolr.Statement.executeQuery(Statement.java:161) from
>
> Field f = (Field)li.next();
> to
> Fieldable f = (Fieldable)li.next();
>
> Do you agree?
>
> I will change it in the next release, soon ;-)
>
> Gert
>
> On 01/05/2012, at 21.54, David Chandek-Stark wrote:
>
>
> Solr 3.5 has the same problem. Luke had a similar issue:
> http://code.google.com/p/luke/issues/detail?id=40.
>
> Any ideas?
>
> Thanks,
> David
>
> From: David Chandek-Stark [mailto:[email protected]]
> Sent: Tuesday, May 01, 2012 2:53 PM
> To: Support and info exchange list for Fedora users.
> Subject: Re: [fcrepo-user] GSearch/Solr compatibility
>
> Sorry, just saw in GSearch 2.4 release notes compatible with Solr 3.5 – will
> try that.
>
> --David
>
> From: David Chandek-Stark [mailto:[email protected]]
> Sent: Tuesday, May 01, 2012 1:56 PM
> To: [email protected]
> Subject: [fcrepo-user] GSearch/Solr compatibility
>
> Hi,
>
> I have GSearch 2.4.1 indexing a Fedora 3.5 repository. It works fine with
> Lucene, but I have issues with Solr 3.6 (which does work independently of
> GSearch). I can downgrade Solr, but would like to know which version
> exactly, if that’s the problem.
>
> Thanks,
> David
>
> FWIW, the GSearch Solr error I can’t work around with Solr 3.6 is:
>
> java.lang.ClassCastException: org.apache.lucene.document.NumericField cannot
> be cast to org.apache.lucene.document.Field
> at dk.defxws.fgssolr.Statement.executeQuery(Statement.java:161)
> at
> dk.defxws.fgssolr.OperationsImpl.gfindObjects(OperationsImpl.java:95)
> at
> dk.defxws.fedoragsearch.server.RESTImpl.gfindObjects(RESTImpl.java:243)
> at dk.defxws.fedoragsearch.server.RESTImpl.doGet(RESTImpl.java:125)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> org.fcrepo.server.security.servletfilters.FilterSetup.doFilter(FilterSetup.java:247)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> org.fcrepo.server.security.servletfilters.FilterSetup.doFilter(FilterSetup.java:247)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> org.fcrepo.server.security.servletfilters.FilterSetup.doFilter(FilterSetup.java:247)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> org.fcrepo.server.security.servletfilters.FilterSetup.doFilter(FilterSetup.java:247)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> org.fcrepo.server.security.servletfilters.FilterSetup.doFilter(FilterSetup.java:247)
> 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:127)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
> at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
> at java.lang.Thread.run(Thread.java:662)
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats.
> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_______________________________________________
> Fedora-commons-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/fedora-commons-users
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats.
> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_______________________________________________
> Fedora-commons-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/fedora-commons-users
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Fedora-commons-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users