Re: Using Spring standalone jar as Custom Transformer
All, I have done what I really didn't want to do and it works for now, which is unpacked the solr.war and added all my libs to the WEB-INF/lib. If there is a better solution using the recommended configurations please let me know. Thanks. -- View this message in context: http://lucene.472066.n3.nabble.com/Using-Spring-standalone-jar-as-Custom-Transformer-tp4161378p4161386.html Sent from the Solr - User mailing list archive at Nabble.com.
Using Spring standalone jar as Custom Transformer
I'm trying to use a standalone Spring jar for a custom transformer and have banged my way through most of the issues so far but can't seem to get through this one. When the transformer executes it loads the spring applicationContext.xml file and throws the following error trying to parse it. org.xml.sax.SAXParseException... Cannot find the declaration of the element 'beans'. which is referring to the following: http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd";> Note that this all works when executing from the standalone jar. I had to put the applicationContext.xml into the solr/example/resource directory. I have my jar and supporting jars which includes all the spring jars in /lib. It finds my transformer, finds the springContextLoader, finds my applicationContent.xml file but can't seem to find the xsd files in the spring jars. I have tried sticking these jars everywhere with no luck. If anyone has any idea as to how I can resolve this please let me know. Thanks. -- View this message in context: http://lucene.472066.n3.nabble.com/Using-Spring-standalone-jar-as-Custom-Transformer-tp4161378.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: (auto)suggestions, but ony from a "filtered" set of documents
Perhaps instead of the suggester component you could use the EdgeNGramFilter and provide partial matches so you will me able to configure a custom request handler that will “suggest” terms of phrases for you. I’m using this approach to provide queries suggestions, of course I’m indexing the queries into a separated core. Greetings, On Sep 26, 2014, at 8:49 AM, Clemens Wyss DEV wrote: > Either my intention is dumb (pls let me know ;)), or there is no answer to > this problem. If so, I will have to index my sources into separate cores. > But then the questions arise: > a) how do I get suggestions from more than one core? Multiple > suggest-requests, then merge? > b) how doe I get (ranked) results from more than one core? > In Lucene I was able to use a MultiIndexReader (one IndexReaders per index) > > -Ursprüngliche Nachricht- > Von: Clemens Wyss DEV [mailto:clemens...@mysign.ch] > Gesendet: Donnerstag, 25. September 2014 10:24 > An: solr-user@lucene.apache.org > Betreff: (auto)suggestions, but ony from a "filtered" set of documents > > What I'd like to do is > http://localhost:8983/solr/solrpedia/suggest?q=atm&qf=source: > > Through qf (or however the parameter shall be called) I'd like to restrict > the suggestions to documents which fit the given qf-query. > I need this filter if (as posted in a previous thread) I intend to put > "different kind of data" into one core/collection, cause suggestion shall be > restrictable to one or many source(s) Concurso "Mi selfie por los 5". Detalles en http://justiciaparaloscinco.wordpress.com
Re: java.lang.NumberFormatException: For input string: "string;#-6.872515521, 53.28853084"
It looks like the data is, literally, string;#-6.872515521, 53.28853084 or maybe #-6.872515521, 53.28853084 either way the data isn't in anything like the format expected. Of course I may be mis-reading this, but it looks like your input process isn't doing what you expect. How are you sending the data to Solr? Best, Erick On Fri, Sep 26, 2014 at 7:00 AM, lalitjangra wrote: > Hi, > > I am trying to index latitude and longitude data into solr but getting > error > as below. > > ERROR - 2014-09-26 13:44:16.503; org.apache.solr.common.SolrException; > org.apache.solr.common.SolrException: ERROR: > [doc=http://testirishwaterportal/sites/am/ass/asi/agg/ami/Lists/Waste > Waste > Water Pumping Station/DispForm.aspx?ID=841] Error adding field > 'gis_x0020_coordinate'='string;#-6.872515521, 53.28853084' msg=For input > string: "string;#-6.872515521, 53.28853084" > at > org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:167) > at > > org.apache.solr.update.AddUpdateCommand.getLuceneDocument(AddUpdateCommand.java:77) > at > > org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:215) > at > > org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:69) > at > > org.apache.solr.update.processor.UpdateRequestProcessor.processAdd(UpdateRequestProcessor.java:51) > at > > org.apache.solr.update.processor.DistributedUpdateProcessor.doLocalAdd(DistributedUpdateProcessor.java:569) > at > > org.apache.solr.update.processor.DistributedUpdateProcessor.versionAdd(DistributedUpdateProcessor.java:705) > at > > org.apache.solr.update.processor.DistributedUpdateProcessor.processAdd(DistributedUpdateProcessor.java:435) > at > > org.apache.solr.update.processor.LogUpdateProcessor.processAdd(LogUpdateProcessorFactory.java:100) > at > > org.apache.solr.handler.extraction.ExtractingDocumentLoader.doAdd(ExtractingDocumentLoader.java:121) > at > > org.apache.solr.handler.extraction.ExtractingDocumentLoader.addDoc(ExtractingDocumentLoader.java:126) > at > > org.apache.solr.handler.extraction.ExtractingDocumentLoader.load(ExtractingDocumentLoader.java:228) > at > > org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:74) > at > > org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135) > at > > org.apache.solr.core.RequestHandlers$LazyRequestHandlerWrapper.handleRequest(RequestHandlers.java:241) > at > org.apache.solr.core.SolrCore.execute(SolrCore.java:1859) > at > > org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:710) > at > > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:413) > at > > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:197) > at > > org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419) > at > org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455) > at > > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) > at > org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557) > at > > org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) > at > > org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075) > at > org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384) > at > > org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) > at > > org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009) > at > > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) > at > > org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255) > at > > org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154) > at > > org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) > at org.eclipse.jetty.server.Server.handle(Server.java:368) > at > > org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489) > at > > org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:53) > at > > org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:942) > at > > org.eclipse.jetty.server.AbstractHttpConnection$RequestH
java.lang.NumberFormatException: For input string: "string;#-6.872515521, 53.28853084"
Hi, I am trying to index latitude and longitude data into solr but getting error as below. ERROR - 2014-09-26 13:44:16.503; org.apache.solr.common.SolrException; org.apache.solr.common.SolrException: ERROR: [doc=http://testirishwaterportal/sites/am/ass/asi/agg/ami/Lists/Waste Waste Water Pumping Station/DispForm.aspx?ID=841] Error adding field 'gis_x0020_coordinate'='string;#-6.872515521, 53.28853084' msg=For input string: "string;#-6.872515521, 53.28853084" at org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:167) at org.apache.solr.update.AddUpdateCommand.getLuceneDocument(AddUpdateCommand.java:77) at org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:215) at org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:69) at org.apache.solr.update.processor.UpdateRequestProcessor.processAdd(UpdateRequestProcessor.java:51) at org.apache.solr.update.processor.DistributedUpdateProcessor.doLocalAdd(DistributedUpdateProcessor.java:569) at org.apache.solr.update.processor.DistributedUpdateProcessor.versionAdd(DistributedUpdateProcessor.java:705) at org.apache.solr.update.processor.DistributedUpdateProcessor.processAdd(DistributedUpdateProcessor.java:435) at org.apache.solr.update.processor.LogUpdateProcessor.processAdd(LogUpdateProcessorFactory.java:100) at org.apache.solr.handler.extraction.ExtractingDocumentLoader.doAdd(ExtractingDocumentLoader.java:121) at org.apache.solr.handler.extraction.ExtractingDocumentLoader.addDoc(ExtractingDocumentLoader.java:126) at org.apache.solr.handler.extraction.ExtractingDocumentLoader.load(ExtractingDocumentLoader.java:228) at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:74) at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135) at org.apache.solr.core.RequestHandlers$LazyRequestHandlerWrapper.handleRequest(RequestHandlers.java:241) at org.apache.solr.core.SolrCore.execute(SolrCore.java:1859) at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:710) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:413) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:197) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) at org.eclipse.jetty.server.Server.handle(Server.java:368) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489) at org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:53) at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:942) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1004) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:636) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) at org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:72) at org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:264) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.
Re: Setting of Default Boost in Edismax Search Handler
I'm grateful to elyograg and erikhatcher on the #solr IRC for helping me with this question. They first pointed me to the Edismax documentation's boost parameter at http://wiki.apache.org/solr/ExtendedDisMax#bf_.28Boost_Function.2C_additive.29 and asked me to put the following in my solrconfig.xml where I define my request handler: log(qty) This worked perfectly for me. Thanks again. O. O. -- View this message in context: http://lucene.472066.n3.nabble.com/Setting-of-Default-Boost-in-Edismax-Search-Handler-tp4161122p4161320.html Sent from the Solr - User mailing list archive at Nabble.com.
AW: (auto)suggestions, but ony from a "filtered" set of documents
Either my intention is dumb (pls let me know ;)), or there is no answer to this problem. If so, I will have to index my sources into separate cores. But then the questions arise: a) how do I get suggestions from more than one core? Multiple suggest-requests, then merge? b) how doe I get (ranked) results from more than one core? In Lucene I was able to use a MultiIndexReader (one IndexReaders per index) -Ursprüngliche Nachricht- Von: Clemens Wyss DEV [mailto:clemens...@mysign.ch] Gesendet: Donnerstag, 25. September 2014 10:24 An: solr-user@lucene.apache.org Betreff: (auto)suggestions, but ony from a "filtered" set of documents What I'd like to do is http://localhost:8983/solr/solrpedia/suggest?q=atm&qf=source: Through qf (or however the parameter shall be called) I'd like to restrict the suggestions to documents which fit the given qf-query. I need this filter if (as posted in a previous thread) I intend to put "different kind of data" into one core/collection, cause suggestion shall be restrictable to one or many source(s)
Re: Using SolrCloud on Amazon EC2
Hi Timo, Why not use Cloudera's CDH5 which comes with Solr? Costi On Thu, Sep 25, 2014 at 10:43 AM, Timo Schmidt wrote: > Hi together, > > we currently plan to setup a project based on solr cloud and amazon > webservices. Our main search application is deployed using aws opsworks > which works out quite good. > Since we also want to provision solr to ec2 i want to ask for experiences > with the different deployment/provisioning tools. > By now i see the following 3 approaches. > > 1. Using ludic solr scale tk to setup and maintain the cluster > Who is using this in production and what are your experiences? > > 2. Implementing own chef cookbooks for aws opsworks to install solrcloud > as a custom opsworks layer > Did somebody do this allready? > What are you experiences? > > Are there any cookbooks out, where we can contribute and reuse? > > 3. Implementing own chef cookbooks for aws opsworks to install solrcloud > as a docker container > Any experiences with this? > > Do you see other options? Afaik elasticbeanstalk could also be an option? > It would be very nice to get some experiences and recommendations? > > Cheers > > Timo >