You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Parisa <pa...@gmail.com> on 2008/10/20 17:39:30 UTC

immediatley commit of docs doesnt work in multiCore case

Hi,

I want to see the doc that is committed as soon as I commit it in my search
result so

I did as you suggest :


solrUrl = "http://mySolrServer:8080/solr/core1/";

CommonsHttpSolrServer server = new CommonsHttpSolrServer(solrUrl);
 server.setParser(new XMLResponseParser());

 UpdateRequest req = new UpdateRequest();
 req.setAction(UpdateRequest.ACTION.COMMIT, false,false);
 req.add(solrDoc);
 UpdateResponse rsp = req.process(server);


a you see I use multicore config and every thing is ok but when I commit it
I can't see this doc in search result unless I restart the solr server.

I have also tested it with this code:
  server.add(solrDoc);
 server.commit(false,false);

I track the commit method in DirectUpdateHandler2 class  and it is called
and works correctly .


Regards,

Parisa

P.S. I use Apache Solr 1.3.0
-- 
View this message in context: http://www.nabble.com/immediatley-commit-of-docs-doesnt-work-in-multiCore-case-tp20072378p20072378.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: immediatley commit of docs doesnt work in multiCore case

Posted by Parisa <pa...@gmail.com>.

I should mention that I have already added this his tag in my SolrConfig.xml
of all cores.

<requestHandler name="/update" class="solr.XmlUpdateRequestHandler">
</requestHandler> 

and It works in single core but unfortunately doesn't work in multi core .
-- 
View this message in context: http://www.nabble.com/immediatley-commit-of-docs-doesnt-work-in-multiCore-case-tp20072378p20110855.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: immediatley commit of docs doesnt work in multiCore case

Posted by Parisa <pa...@gmail.com>.
wow!!! you can't imagine what my problem was,

the problem was that  I am using solr admin Interface for testing my search
server and when you are using multicore 

it redirects you to : 

http://localhost:8080/core3/select/?q=

instead of 

http://localhost:8080/solr/core3/select/?q=


and every this is alright with first url  but the immediately committed doc
in search result .

Parisa


-- 
View this message in context: http://www.nabble.com/immediatley-commit-of-docs-doesnt-work-in-multiCore-case-tp20072378p20172973.html
Sent from the Solr - User mailing list archive at Nabble.com.