Re: Ok, why isn't this working?
On Fri, Aug 28, 2009 at 7:40 AM, Paul Tomblin ptomb...@xcski.com wrote: On Thu, Aug 27, 2009 at 9:24 PM, Paul Tomblinptomb...@xcski.com wrote: cwd=/Users/ptomblin/apache-tomcat-6.0.20 SolrHome=/Users/ptomblin/src/lucidity/solr/ Ok, I've spotted the problem - while SolrHome is in the right place, it's still looking for the data in /Users/ptomblin/apache-tomcat-6.0.20/solr/data/ How can I changed that? One easy way is to hard code that location into solrconfig.xml ? -- Regards, Shalin Shekhar Mangar.
Re: Ok, why isn't this working?
On Fri, Aug 28, 2009 at 6:42 AM, Shalin Shekhar Mangarshalinman...@gmail.com wrote: Ok, I've spotted the problem - while SolrHome is in the right place, it's still looking for the data in /Users/ptomblin/apache-tomcat-6.0.20/solr/data/ How can I changed that? One easy way is to hard code that location into solrconfig.xml ? The conf file says: dataDir${solr.data.dir:./solr/data}/dataDir That indicates to me that there is some way to override that default ./solr/data involving something called solr.data.dir, but I don't know if that's an environment variable, or a system property, or what. -- http://www.linkedin.com/in/paultomblin
Re: Ok, why isn't this working?
Paul Tomblin schrieb: On Fri, Aug 28, 2009 at 6:42 AM, Shalin Shekhar Mangarshalinman...@gmail.com wrote: Ok, I've spotted the problem - while SolrHome is in the right place, it's still looking for the data in /Users/ptomblin/apache-tomcat-6.0.20/solr/data/ How can I changed that? One easy way is to hard code that location into solrconfig.xml ? The conf file says: dataDir${solr.data.dir:./solr/data}/dataDir That indicates to me that there is some way to override that default ./solr/data involving something called solr.data.dir, but I don't know if that's an environment variable, or a system property, or what. hi Paul, it can be specified in the many ways solr.home can. e.g. on startup add -Dsolr.data.dir=/path/to/your/data/dir or replace/extend the value in solrconfig.xml. the default is in solr.home/data, imho. Cheers, Chantal -- http://www.linkedin.com/in/paultomblin -- Chantal Ackermann
Re: Ok, why isn't this working?
On Fri, Aug 28, 2009 at 8:04 AM, Chantal Ackermannchantal.ackerm...@btelligent.de wrote: Paul Tomblin schrieb: The conf file says: dataDir${solr.data.dir:./solr/data}/dataDir That indicates to me that there is some way to override that default ./solr/data involving something called solr.data.dir, but I don't know if that's an environment variable, or a system property, or what. hi Paul, it can be specified in the many ways solr.home can. e.g. on startup add -Dsolr.data.dir=/path/to/your/data/dir or replace/extend the value in solrconfig.xml. the default is in solr.home/data, imho. I discovered that I can set the environment variable in conf/Catalina/localhost/solr.xml Context docBase=/Users/ptomblin/src/solr/example/webapps/solr.war debug=0 crossContext=true Environment name=solr/home type=java.lang.String value=/Users/ptomblin/src/lucidity/solr override=true / Environment name=solr.data.dir type=java.lang.String value=/Users/ptomblin/src/lucidity/solr/data override=true / /Context -- http://www.linkedin.com/in/paultomblin
Re: Why isn't this working?
On Thu, Aug 27, 2009 at 11:36 PM, Ryan McKinleyryan...@gmail.com wrote: Say you have an embedded solr server and an http solr server pointed to the same location. 1. make sure only is read only! otherwise you can make a mess. 2. calling commit on the embedded solr instance, will not have any effect on the http instance UNTIL you call commit (reload) on the http instance. Well, that's kind of klugy. I think what I'm going to do instead is have the cron job detect if the web server is running, and use it if it is, otherwise use the embedded server. -- http://www.linkedin.com/in/paultomblin
Ok, why isn't this working?
I've loaded some data into my solr using the embedded server, and I can see the data using Luke. I start up the web app, and it says cwd=/Users/ptomblin/apache-tomcat-6.0.20 SolrHome=/Users/ptomblin/src/lucidity/solr/ I hit the schema button and it shows the correct schema. However, if I type anything into the query window, it never returns anything. I've tried things that I know for sure are in the default search field, but all I get back is ?xml version=1.0 encoding=UTF-8? response lst name=responseHeader int name=status0/int int name=QTime2/int lst name=params str name=indenton/str str name=start0/str str name=qscientist/str str name=rows10/str str name=version2.2/str /lst /lst result name=response numFound=0 start=0/ /response How can I figure out why I'm not getting any results back? Any log files I can look at? -- http://www.linkedin.com/in/paultomblin
Re: Ok, why isn't this working?
On Thu, Aug 27, 2009 at 9:24 PM, Paul Tomblinptomb...@xcski.com wrote: cwd=/Users/ptomblin/apache-tomcat-6.0.20 SolrHome=/Users/ptomblin/src/lucidity/solr/ Ok, I've spotted the problem - while SolrHome is in the right place, it's still looking for the data in /Users/ptomblin/apache-tomcat-6.0.20/solr/data/ How can I changed that? -- http://www.linkedin.com/in/paultomblin
Why isn't this working?
Yesterday or the day before, I asked specifically if I would need to restart the Solr server if somebody else loaded data into the Solr index using the EmbeddedServer, and I was told confidently that no, the Solr server would see the new data as soon as it was committed. So today I fired up the Solr server (and after making apache-tomcat-6.0.20/solr/data a symlink to where the Solr data really lives and restarting the web server), and did some queries. Then I ran a program that loaded a bunch of data and committed it. Then I did the queries again. And the new data is NOT showing. Using Luke, I can see 10022 documents in the index, but the Solr statistics page (http://localhost:8080/solrChunk/admin/stats.jsp) is still showing 8677, which is how many there were before I reloaded the data. So am I doing something wrong, or was the assurance I got yesterday that this is possible wrong? -- http://www.linkedin.com/in/paultomblin
Re: Why isn't this working?
On Aug 27, 2009, at 10:35 PM, Paul Tomblin wrote: Yesterday or the day before, I asked specifically if I would need to restart the Solr server if somebody else loaded data into the Solr index using the EmbeddedServer, and I was told confidently that no, the Solr server would see the new data as soon as it was committed. So today I fired up the Solr server (and after making apache-tomcat-6.0.20/solr/data a symlink to where the Solr data really lives and restarting the web server), and did some queries. Then I ran a program that loaded a bunch of data and committed it. Then I did the queries again. And the new data is NOT showing. Using Luke, I can see 10022 documents in the index, but the Solr statistics page (http://localhost:8080/solrChunk/admin/stats.jsp) is still showing 8677, which is how many there were before I reloaded the data. So am I doing something wrong, or was the assurance I got yesterday that this is possible wrong? did not follow the advice from yesterday... but... the commit word can be a but misleading, it could also be called reload Say you have an embedded solr server and an http solr server pointed to the same location. 1. make sure only is read only! otherwise you can make a mess. 2. calling commit on the embedded solr instance, will not have any effect on the http instance UNTIL you call commit (reload) on the http instance. ryan