Re: AW: refreshing synonyms.txt - or other configs
> public class DummyRequestHandler extends RequestHandlerBase is the "requesthandlerbase" your own class? -- View this message in context: http://lucene.472066.n3.nabble.com/refreshing-synonyms-txt-or-other-configs-tp708323p1030886.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: AW: refreshing synonyms.txt - or other configs
Ok. I got the RequestHandlerBase. My solr doesn't have any cores defined. Do the Solr have a default core running all the time? In order to use SolrQueryRequest and SolrQueryResponse do we have to define any other classes? Thanks for the help in advance. -- View this message in context: http://lucene.472066.n3.nabble.com/refreshing-synonyms-txt-or-other-configs-tp708323p1031951.html Sent from the Solr - User mailing list archive at Nabble.com.
Corename after Swap in MultiCore
Hi everyone, Long question but please hold on. I'm using a multicore Solr instance to index different documents from different sources( around 4) and I'm using a common config for all the cores. So, for each source I have core and temp core like 'doc' and 'doc-temp'. So, everytime I want to get new data, I do dataimport to the temp core and then swap the cores. For swaping I'm using the postCommit event listener to make sure the swap is done after the completing commit. After the first swap when I use solr.core.name on the doc-temp it is returning doc as its name ( because the commit is done on the doc's data dir after the first swap ). How do I get the core name of the doc-temp here in order to swap again with .swap ? I'm stuck here. Please help me. Also if anyone know for sure if a dataimport is being done on a core then the next swap query will be executed only after this dataimport is finished? Thanks in advance. Ram. -- View this message in context: http://lucene.472066.n3.nabble.com/Corename-after-Swap-in-MultiCore-tp1835325p1835325.html Sent from the Solr - User mailing list archive at Nabble.com.
RE: Corename after Swap in MultiCore
Do you mean solr.core.name has the wrong value after the swap? You swapped doc-temp so now it's doc and solr.core.name is still doc-temp? This completely contradicts my experience, what version of solr are you using? Why use postCommit? You're running the risk of performing a swap when you don't mean to. Are you using DIH? If so, I'd go with querying the status of the import until it's done and then performing the swap. Hi Ephraim, No, the solr.core.name is not doc-temp. It is doc after the first swap. I'm expecting it to be doc-temp but after the swap the data dir is getting changed so it is giving me doc ( I always do full import on doc-temp, so i expect the solr.core.name as doc-temp ). Which is not the case i'm looking for. I'm using Solr 1.4.1. Right now I temporarily came up with writing a class to handle the risk of performing a swap when i don't mean to. But eventually I'm looking for getting the core name after every full import( if I do import on doc-temp I should be able to retrieve the doc-temp core name programatically ). Yes I use DIH for some cores. If I check the status and it is not complete, I should wait for the next query time to make sure it is done. So, I don't want to wait for that time. I want to swap immediately after it is done. Thanks again and please let me know if any of my approaches sound wrong. Ram. -- View this message in context: http://lucene.472066.n3.nabble.com/Corename-after-Swap-in-MultiCore-tp1835325p1889634.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Corename after Swap in MultiCore
>> Shawn That is good if we can restart the solr. But we don't want to restart the whole solr after every commit because some of the core usually have to update for comparatively short times. So, we do a core reload to get all the synonyms and other stuff getting updated with out the solr reload. -- View this message in context: http://lucene.472066.n3.nabble.com/Corename-after-Swap-in-MultiCore-tp1835325p1891671.html Sent from the Solr - User mailing list archive at Nabble.com.
Using Solr over Lucene effects performance?
Hello All, I searched for this but couldn't find a convincing answer. I'm planning to use Lucene/Solr in a tool for indexing and searching documents. I'm thinking of if I use Lucene directly instead of Solr, will it improves the performance of the search?(in terms of time taken for indexing or returning search results or if Solr slows down my application when compared to Lucene). I have worked with Solr in small scale before but this time I have to use for an index with over a million docs to get indexed and searched. Please let me know what you think and what will be the pros and cons of using Lucene over Solr or viceversa. Thanks alot, Ram. -- View this message in context: http://lucene.472066.n3.nabble.com/Using-Solr-over-Lucene-effects-performance-tp2666909p2666909.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Using Solr over Lucene effects performance?
Thanks for the quick reply Yonik, So you are saying that it all depends on how we setup the Solr? In a performance perspective, does Solr lags behind Lucene because it's a layer above Lucene to our application or will it have a better indexing and searching techniques than Lucene? (when talking about really big indexes) -- View this message in context: http://lucene.472066.n3.nabble.com/Using-Solr-over-Lucene-effects-performance-tp2666909p2667069.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Using Solr over Lucene effects performance?
Thanks alot Glen and Yonik... That's a very convincing explanation... -- View this message in context: http://lucene.472066.n3.nabble.com/Using-Solr-over-Lucene-effects-performance-tp2666909p2676015.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: problem using dataimporthandler
I know this thread is old but I encountered the exact same problem and couldn't figure out what's wrong. I'm using DIH for SQL Server. Please let me know. And the link that you provided seems to be not exist anymore. Thanks, Ram. -- View this message in context: http://lucene.472066.n3.nabble.com/problem-using-dataimporthandler-tp495415p2677131.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: problem using dataimporthandler
Regarding the DIH problem: I'm encountering "content not allowed in prolog" only when I'm deploying solr on tomcat. I'm using the same data-config.xml in the solr example through jetty and it works fine and I can index the data. Please let me know what should be changed while using tomcat. Thanks, Ram. -- View this message in context: http://lucene.472066.n3.nabble.com/problem-using-dataimporthandler-tp495415p2683596.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: problem using dataimporthandler
I got rid of the problem by just copying the other schema and config files( which sound like nothing to do with the error on the dataconfig file but I gave it a try) and it worked I don't know if I'm missing something here but its working now. Thanks, Ram. -- View this message in context: http://lucene.472066.n3.nabble.com/problem-using-dataimporthandler-tp495415p2684044.html Sent from the Solr - User mailing list archive at Nabble.com.