Solr Multicore - cant seem to get it working?
Hi, I'm trying to get a Solr install to work with multicores, as I wanna use it on several sites (each totally different, and I don't obviously wanna have loads of seperate Solr installs) Here is what I've done so far (Solr was already uploaded and working normally, without multicore): 1) Added this to solr.xml: 2) Copied the files from /multicore/core1 3) Edited schema.xml to the fields I want 4) Restarted solr Then I did the perl stuff, but it doesn't seem to wanna load? use constant SOLR => 'http://localhost:210/solr/graphics'; my $title = "foo bar test"; my $desc = "some short description to test it"; my $link_id = 1234; use WebService::Solr; my $solr = WebService::Solr->new( SOLR ); 404 Not Found: Error 404 HTTP ERROR: 404NOT_FOUND RequestURI=/solr/graphics/update http://jetty.mortbay.org/ Powered by Jetty:// at /home/user/site.com/cgi-bin/art/admin/WebService/Solr.pm line 180 WebService::Solr::_send_update('WebService::Solr=HASH(0x13d4b68)', 'XML::Generator::overload=ARRAY(0x13da3f8)') called at /home/user/site.com/cgi-bin/art/admin/WebService/Solr.pm line 73 WebService::Solr::add('WebService::Solr=HASH(0x13d4b68)', 'WebService::Solr::Document=HASH(0x6052b8)') called at solr_add_test.cgi line 42 rgillen@factory /home/rgillen/solr $ Am I doing something wrong? Still reading through the setup process in the "Solr 1.4" book I brough a while back, but just wanted to make sure it wasn't something on the server end that wasn't quite working right =) If I don't use the multicore it seems to work ok (but it obviously doesn't use the multicore, which is what I wanted to do) TIA Andy -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-Multicore-cant-seem-to-get-it-working-tp2588149p2588149.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Solr Multicore - cant seem to get it working?
Hi, Thanks for the reply. I sure did. I did a bit more research, and found out that java was still running, so I run: sudo /etc/init.d/solr stop ...then: killall java (just to make sure it was all closed) ...and finally: sudo /etc/init.d/solr start Yet I'm still getting the error about the URL not being accessable :( Could it be a syntax error in schema.xml maybe thats stopping it from loading that particular multicore? Cheers Andy On Sun, Feb 27, 2011 at 10:15 PM, Wilkes, Chris [via Lucene] < ml-node+2591060-694286558-370...@n3.nabble.com> wrote: > Did you copy the files into the solr/graphics/ directory? That > subdirectory should be the same name as the instanceDir. > That is you should have this directory structure: > solr/graphics/conf/ > solr/graphics/data/index/ > > On Feb 27, 2011, at 5:20 AM, ultranerds <[hidden > email]<http://user/SendEmail.jtp?type=node&node=2591060&i=0>> > wrote: > > > Hi, > > > > I'm trying to get a Solr install to work with multicores, as I wanna use > it > > on several sites (each totally different, and I don't obviously wanna > have > > loads of seperate Solr installs) > > > > Here is what I've done so far (Solr was already uploaded and working > > normally, without multicore): > > > > 1) Added this to solr.xml: > > > > > > > > 2) Copied the files from /multicore/core1 > > 3) Edited schema.xml to the fields I want > > 4) Restarted solr > > > > Then I did the perl stuff, but it doesn't seem to wanna load? > > > > use constant SOLR => 'http://localhost:210/solr/graphics'; > > > > my $title = "foo bar test"; > > my $desc = "some short description to test it"; > > my $link_id = 1234; > > > > use WebService::Solr; > > > >my $solr = WebService::Solr->new( SOLR ); > > > > 404 Not Found: > > > > > > > Error 404 > > > > HTTP ERROR: 404NOT_FOUND > > RequestURI=/solr/graphics/update > http://jetty.mortbay.org/ > > Powered by Jetty:// > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > at /home/user/site.com/cgi-bin/art/admin/WebService/Solr.pm line 180 > >WebService::Solr::_send_update('WebService::Solr=HASH(0x13d4b68)', > > > 'XML::Generator::overload=ARRAY(0x13da3f8)') called at > > /home/user/site.com/cgi-bin/art/admin/WebService/Solr.pm line 73 > >WebService::Solr::add('WebService::Solr=HASH(0x13d4b68)', > > 'WebService::Solr::Document=HASH(0x6052b8)') called at solr_add_test.cgi > > line 42 > > rgillen@factory /home/rgillen/solr $ > > > > Am I doing something wrong? Still reading through the setup process in > the > > "Solr 1.4" book I brough a while back, but just wanted to make sure it > > wasn't something on the server end that wasn't quite working right =) > > > > If I don't use the multicore it seems to work ok (but it obviously > doesn't > > use the multicore, which is what I wanted to do) > > > > TIA > > > > Andy > > > > > > -- > > View this message in context: > http://lucene.472066.n3.nabble.com/Solr-Multicore-cant-seem-to-get-it-working-tp2588149p2588149.html<http://lucene.472066.n3.nabble.com/Solr-Multicore-cant-seem-to-get-it-working-tp2588149p2588149.html?by-user=t> > > Sent from the Solr - User mailing list archive at Nabble.com. > > > -- > If you reply to this email, your message will be added to the discussion > below: > > http://lucene.472066.n3.nabble.com/Solr-Multicore-cant-seem-to-get-it-working-tp2588149p2591060.html > To unsubscribe from Solr Multicore - cant seem to get it working?, click > here<http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2588149&code=YW5keS5uZXdieUBnbWFpbC5jb218MjU4ODE0OXw3ODE4NzEzNjA=>. > > -- Andy Newby a...@ultranerds.com -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-Multicore-cant-seem-to-get-it-working-tp2588149p2593220.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Solr Multicore - cant seem to get it working?
Hi, I already did answer that one =) I'm waiting on my host to add my IP to the firewall for me, so I can test that part of it (they setup the bog standard Solr for me, but I'm now trying to get it working with the multicore, as I think we are gonna need several Solr instances for different parts of the site) TIA Andy On Mon, Feb 28, 2011 at 10:12 AM, Stefan Matheis [via Lucene] < ml-node+2593785-1884500610-370...@n3.nabble.com> wrote: > Andy, > > try to answer the question other guys asked you .. and not just write > something. > > On Sun, Feb 27, 2011 at 4:16 PM, Ahmet Arslan <[hidden > email]<http://user/SendEmail.jtp?type=node&node=2593785&i=0>> > wrote: > > Can you see 'Admin graphics' listed in http://localhost:210/solr/ page? > > Regards > Stefan > > On Mon, Feb 28, 2011 at 8:57 AM, ultranerds <[hidden > email]<http://user/SendEmail.jtp?type=node&node=2593785&i=1>> > wrote: > > > Hi, > > > > Thanks for the reply. I sure did. I did a bit more research, and found > out > > that java was still running, so I run: > > > > sudo /etc/init.d/solr stop > > > > ...then: > > > > killall java > > > > (just to make sure it was all closed) > > > > ...and finally: > > > > sudo /etc/init.d/solr start > > > > Yet I'm still getting the error about the URL not being accessable :( > > > > Could it be a syntax error in schema.xml maybe thats stopping it from > > loading that particular multicore? > > > > Cheers > > > > Andy > > > > On Sun, Feb 27, 2011 at 10:15 PM, Wilkes, Chris [via Lucene] < > > [hidden email] <http://user/SendEmail.jtp?type=node&node=2593785&i=2>> > wrote: > > > >> Did you copy the files into the solr/graphics/ directory? That > >> subdirectory should be the same name as the instanceDir. > >> That is you should have this directory structure: > >> solr/graphics/conf/ > >> solr/graphics/data/index/ > >> > >> On Feb 27, 2011, at 5:20 AM, ultranerds <[hidden email]< > http://user/SendEmail.jtp?type=node&node=2591060&i=0>> > >> wrote: > >> > >> > Hi, > >> > > >> > I'm trying to get a Solr install to work with multicores, as I wanna > use > >> it > >> > on several sites (each totally different, and I don't obviously wanna > >> have > >> > loads of seperate Solr installs) > >> > > >> > Here is what I've done so far (Solr was already uploaded and working > >> > normally, without multicore): > >> > > >> > 1) Added this to solr.xml: > >> > > >> > > >> > > >> > 2) Copied the files from /multicore/core1 > >> > 3) Edited schema.xml to the fields I want > >> > 4) Restarted solr > >> > > >> > Then I did the perl stuff, but it doesn't seem to wanna load? > >> > > >> > use constant SOLR => 'http://localhost:210/solr/graphics'; > >> > > >> > my $title = "foo bar test"; > >> > my $desc = "some short description to test it"; > >> > my $link_id = 1234; > >> > > >> > use WebService::Solr; > >> > > >> >my $solr = WebService::Solr->new( SOLR ); > >> > > >> > 404 Not Found: > >> > > >> > > >> > >> > Error 404 > >> > > >> > HTTP ERROR: 404NOT_FOUND > >> > RequestURI=/solr/graphics/update > >> http://jetty.mortbay.org/ > >> > Powered by Jetty:// > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > at /home/user/site.com/cgi-bin/art/admin/WebService/Solr.pm line 180 > >> > > WebService::Solr::_send_update('WebService::Solr=HASH(0x13d4b68)', > >> > >> > 'XML::Generator::overload=ARRAY(0x13da3f8)') called at > >> > /home/user/site.com/cgi-bin/art/admin/WebService/Solr.pm line 73 > >> >WebService::Solr::add('WebService::Solr=HASH(0x13d4b68)', > >>
Whys this query not working?
Hi, I'm a bit baffled as to why this querys not working for me: ((title:"test" OR title:"keywords") OR (description:"test" OR description:"keywords") OR (tags:"test" OR tags:"keywords")) AND (-title:"something" AND -tags:"something" AND -description:"something") AND (cat_id:"1") AND (private:"0") If I remove the part: AND (-title:"something" AND -tags:"something" AND -description:"something") Then it works fine... but the stupid thing, is that there is NO place in that result which as "something" as a value. Can anyone point me as to what I'm doing wrong? Failing that, I'll have to remove the "prohibit" part of my search system (which would be a shame) as its messing up queries that *should* give results :( TIA Andy -- View this message in context: http://lucene.472066.n3.nabble.com/Whys-this-query-not-working-tp4000598.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Whys this query not working?
Aaah thanks that makes sense. I wasn't aware of that bug. Doing the suggested changes manually in the query works perfectly (just gotta work out how to edit the Perl module I'm using to generate that query, so that I can use this slightly different syntax compared to what it outputs normally) Thanks :) Andy -- View this message in context: http://lucene.472066.n3.nabble.com/Whys-this-query-not-working-tp4000598p4000683.html Sent from the Solr - User mailing list archive at Nabble.com.