Re: Cannot get solr 1.3.0 to run properly with plesk 9.2.1 on CentOS
Hi, I would guess, that the problem is, that you use a jre not a jdk. I mean I have read, that solr requires a JDK. with best regards, Marco Aaron Aberg schrieb: Constantijn, First of all, I want you to know how much I appreciate you not giving up on me. Second of all, your instructions were really great. I think that I am getting closer to solving this issue. I am STILL get that error but after a full tomcat reboot it picked up my solr.home environment variable from my web.xml and its pointing to the new location. (Good idea) Here is the FULL log from start up of Tomcat. It might be excessive, but I want to give you all of the information that I can: Aug 17, 2009 11:16:08 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/lib/i386/client:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/lib/i386:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib Aug 17, 2009 11:16:09 PM org.apache.coyote.http11.Http11BaseProtocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Aug 17, 2009 11:16:09 PM org.apache.coyote.http11.Http11BaseProtocol init INFO: Initializing Coyote HTTP/1.1 on http-9080 Aug 17, 2009 11:16:09 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 3382 ms Aug 17, 2009 11:16:09 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Aug 17, 2009 11:16:09 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.23 Aug 17, 2009 11:16:09 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Aug 17, 2009 11:16:12 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Aug 17, 2009 11:16:12 PM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Aug 17, 2009 11:16:12 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Aug 17, 2009 11:16:12 PM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Aug 17, 2009 11:16:12 PM org.apache.catalina.core.ApplicationContext log INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]] Aug 17, 2009 11:16:13 PM org.apache.coyote.http11.Http11BaseProtocol start INFO: Starting Coyote HTTP/1.1 on http-8080 Aug 17, 2009 11:16:13 PM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 Aug 17, 2009 11:16:13 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/57 config=null Aug 17, 2009 11:16:13 PM org.apache.catalina.core.StandardService start INFO: Starting service PSA Aug 17, 2009 11:16:13 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.23 Aug 17, 2009 11:16:13 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Aug 17, 2009 11:16:15 PM org.apache.solr.servlet.SolrDispatchFilter init INFO: SolrDispatchFilter.init() Aug 17, 2009 11:16:15 PM org.apache.solr.core.SolrResourceLoader locateInstanceDir INFO: Using JNDI solr.home: /usr/share/solr Aug 17, 2009 11:16:15 PM org.apache.solr.core.CoreContainer$Initializer initialize INFO: looking for solr.xml: /usr/share/solr/solr.xml Aug 17, 2009 11:16:15 PM org.apache.solr.core.SolrResourceLoader INFO: Solr home set to '/usr/share/solr/' Aug 17, 2009 11:16:15 PM org.apache.solr.core.SolrResourceLoader createClassLoader INFO: Reusing parent classloader Aug 17, 2009 11:16:15 PM org.apache.solr.servlet.SolrDispatchFilter init SEVERE: Could not start SOLR. Check solr/home property java.lang.ExceptionInInitializerError at org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:117) at org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:69) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:221) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:302) at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:78) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3635) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4222) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at org.apache.catalina.core.Stan
Re: Can I search for a term in any field or a list of fields?
Hi Paul, I would say, you should use the copyField tag in the schema. eg: the text-field has to be difined as multivalued=true. When you now do an unqualified search, it will search every field, which is copied to the text-field. with best regards, Marco Westermann Paul Tomblin schrieb: I've got "text" and so if I do an unqualified search it only finds in the field text. If I want to search title, I can do "title:foo", but what if I want to find if the search term is in any field, or if it's in "text" or "title" or "concept" or "keywords"? I already tried "*:foo", but that throws an exception: Caused by: org.apache.solr.client.solrj.SolrServerException: org.apache.solr.client.solrj.SolrServerException: org.apache.solr.common.SolrException: undefined field * [java] at org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:161) -- ++ Business-Software aus einer Hand ++ ++ Internet, Warenwirtschaft, Linux, Virtualisierung ++ http://www.intersales.de http://www.eisxen.org http://www.tarantella-partner.de http://www.medisales.de http://www.eisfair.net interSales AG Internet Commerce Subbelrather Str. 247 50825 Köln Tel 02 21 - 27 90 50 Fax 02 21 - 27 90 517 Mail i...@intersales.de Mail m...@intersales.de Web www.intersales.de Handelsregister Köln HR B 30904 Ust.-Id.: DE199672015 Finanzamt Köln-Nord. UstID: nicht vergeben Aufsichtsratsvorsitzender: Michael Morgenstern Vorstand: Andrej Radonic, Peter Zander
Re: Can I search for a term in any field or a list of fields?
exactly! for example you could create a field called "all". And you copy your fields to it, which should be searched, when all fields are searched. then you have two possibilities: either you make this field the defaultSearchField for use of unqualified searches. or you qualify the field in the query all:foo and all fields are searched which have been copied to the all-field. best Marco Paul Tomblin schrieb: So if I want to make it so that the default search always searches three specific fields, I can make another field multi-valued that they are all copied into? On Tue, Aug 18, 2009 at 10:46 AM, Marco Westermann wrote: I would say, you should use the copyField tag in the schema. eg: the text-field has to be difined as multivalued=true. When you now do an unqualified search, it will search every field, which is copied to the text-field. -- ++ Business-Software aus einer Hand ++ ++ Internet, Warenwirtschaft, Linux, Virtualisierung ++ http://www.intersales.de http://www.eisxen.org http://www.tarantella-partner.de http://www.medisales.de http://www.eisfair.net interSales AG Internet Commerce Subbelrather Str. 247 50825 Köln Tel 02 21 - 27 90 50 Fax 02 21 - 27 90 517 Mail i...@intersales.de Mail m...@intersales.de Web www.intersales.de Handelsregister Köln HR B 30904 Ust.-Id.: DE199672015 Finanzamt Köln-Nord. UstID: nicht vergeben Aufsichtsratsvorsitzender: Michael Morgenstern Vorstand: Andrej Radonic, Peter Zander
dynamic changes to schema
Hi there, is there a possibility to change the solr-schema over php dynamically. The web-application I want to index at the moment has the feature to add fields to entitys and you can tell this fields that they are searchable. To realize this with solr the schema has to change when a searchable field is added or removed. Any suggestions, Thanks a lot, Marco Westermann -- ++ Business-Software aus einer Hand ++ ++ Internet, Warenwirtschaft, Linux, Virtualisierung ++ http://www.intersales.de http://www.eisxen.org http://www.tarantella-partner.de http://www.medisales.de http://www.eisfair.net interSales AG Internet Commerce Subbelrather Str. 247 50825 Köln Tel 02 21 - 27 90 50 Fax 02 21 - 27 90 517 Mail i...@intersales.de Mail m...@intersales.de Web www.intersales.de Handelsregister Köln HR B 30904 Ust.-Id.: DE199672015 Finanzamt Köln-Nord. UstID: nicht vergeben Aufsichtsratsvorsitzender: Michael Morgenstern Vorstand: Andrej Radonic, Peter Zander
Re: dynamic changes to schema
hi, thanks for the advise but the problem with dynamic fields is, that i cannot restrict how the user calls the field in the application. So there isn't a pattern I can use. But I thought about using mulitvalued fields for the dynamically added fields. Good Idea? thanks, Marco Constantijn Visinescu schrieb: use a dynamic field ? On Tue, Aug 18, 2009 at 5:09 PM, Marco Westermann wrote: Hi there, is there a possibility to change the solr-schema over php dynamically. The web-application I want to index at the moment has the feature to add fields to entitys and you can tell this fields that they are searchable. To realize this with solr the schema has to change when a searchable field is added or removed. Any suggestions, Thanks a lot, Marco Westermann -- ++ Business-Software aus einer Hand ++ ++ Internet, Warenwirtschaft, Linux, Virtualisierung ++ http://www.intersales.de http://www.eisxen.org http://www.tarantella-partner.de http://www.medisales.de http://www.eisfair.net interSales AG Internet Commerce Subbelrather Str. 247 50825 Köln Tel 02 21 - 27 90 50 Fax 02 21 - 27 90 517 Mail i...@intersales.de Mail m...@intersales.de Web www.intersales.de Handelsregister Köln HR B 30904 Ust.-Id.: DE199672015 Finanzamt Köln-Nord. UstID: nicht vergeben Aufsichtsratsvorsitzender: Michael Morgenstern Vorstand: Andrej Radonic, Peter Zander __ Hinweis von ESET NOD32 Antivirus, Signaturdatenbank-Version 4346 (20090818) __ E-Mail wurde geprüft mit ESET NOD32 Antivirus. http://www.eset.com -- ++ Business-Software aus einer Hand ++ ++ Internet, Warenwirtschaft, Linux, Virtualisierung ++ http://www.intersales.de http://www.eisxen.org http://www.tarantella-partner.de http://www.medisales.de http://www.eisfair.net interSales AG Internet Commerce Subbelrather Str. 247 50825 Köln Tel 02 21 - 27 90 50 Fax 02 21 - 27 90 517 Mail i...@intersales.de Mail m...@intersales.de Web www.intersales.de Handelsregister Köln HR B 30904 Ust.-Id.: DE199672015 Finanzamt Köln-Nord. UstID: nicht vergeben Aufsichtsratsvorsitzender: Michael Morgenstern Vorstand: Andrej Radonic, Peter Zander
Re: dynamic changes to schema
Hi, thanks for your answers, I think I have to go more in deatail. we are talking about a shop-application which have products I want to search for. This products normally have the standard attributes like sku, a name, a price and so on. But the user can add attributes to the product. So for example if he sells books, he could add the author as attribute. Lets say he name this field my_author (but he is free to name it as he wants) and he tells this field over the configuration, that it is searchable. So I need a field in solr for the author. Cause I cant restrict the user to prefix every field with something like my_ dynamic fields doesn't work, do they? best, Marco Constantijn Visinescu schrieb: huh? I think I lost you :) You want to use a multivalued field to list what dynamic fields you have in your document? Also if you program your application correctly you should be able to restrict your users from doing anything you please (or don't please in this case). On Tue, Aug 18, 2009 at 11:38 PM, Marco Westermann wrote: hi, thanks for the advise but the problem with dynamic fields is, that i cannot restrict how the user calls the field in the application. So there isn't a pattern I can use. But I thought about using mulitvalued fields for the dynamically added fields. Good Idea? thanks, Marco Constantijn Visinescu schrieb: use a dynamic field ? On Tue, Aug 18, 2009 at 5:09 PM, Marco Westermann wrote: Hi there, is there a possibility to change the solr-schema over php dynamically. The web-application I want to index at the moment has the feature to add fields to entitys and you can tell this fields that they are searchable. To realize this with solr the schema has to change when a searchable field is added or removed. Any suggestions, Thanks a lot, Marco Westermann -- ++ Business-Software aus einer Hand ++ ++ Internet, Warenwirtschaft, Linux, Virtualisierung ++ http://www.intersales.de http://www.eisxen.org http://www.tarantella-partner.de http://www.medisales.de http://www.eisfair.net interSales AG Internet Commerce Subbelrather Str. 247 50825 Köln Tel 02 21 - 27 90 50 Fax 02 21 - 27 90 517 Mail i...@intersales.de Mail m...@intersales.de Web www.intersales.de Handelsregister Köln HR B 30904 Ust.-Id.: DE199672015 Finanzamt Köln-Nord. UstID: nicht vergeben Aufsichtsratsvorsitzender: Michael Morgenstern Vorstand: Andrej Radonic, Peter Zander __ Hinweis von ESET NOD32 Antivirus, Signaturdatenbank-Version 4346 (20090818) __ E-Mail wurde geprüft mit ESET NOD32 Antivirus. http://www.eset.com -- ++ Business-Software aus einer Hand ++ ++ Internet, Warenwirtschaft, Linux, Virtualisierung ++ http://www.intersales.de http://www.eisxen.org http://www.tarantella-partner.de http://www.medisales.de http://www.eisfair.net interSales AG Internet Commerce Subbelrather Str. 247 50825 Köln Tel 02 21 - 27 90 50 Fax 02 21 - 27 90 517 Mail i...@intersales.de Mail m...@intersales.de Web www.intersales.de Handelsregister Köln HR B 30904 Ust.-Id.: DE199672015 Finanzamt Köln-Nord. UstID: nicht vergeben Aufsichtsratsvorsitzender: Michael Morgenstern Vorstand: Andrej Radonic, Peter Zander __ Hinweis von ESET NOD32 Antivirus, Signaturdatenbank-Version 4346 (20090818) __ E-Mail wurde geprüft mit ESET NOD32 Antivirus. http://www.eset.com -- ++ Business-Software aus einer Hand ++ ++ Internet, Warenwirtschaft, Linux, Virtualisierung ++ http://www.intersales.de http://www.eisxen.org http://www.tarantella-partner.de http://www.medisales.de http://www.eisfair.net interSales AG Internet Commerce Subbelrather Str. 247 50825 Köln Tel 02 21 - 27 90 50 Fax 02 21 - 27 90 517 Mail i...@intersales.de Mail m...@intersales.de Web www.intersales.de Handelsregister Köln HR B 30904 Ust.-Id.: DE199672015 Finanzamt Köln-Nord. UstID: nicht vergeben Aufsichtsratsvorsitzender: Michael Morgenstern Vorstand: Andrej Radonic, Peter Zander