Re: can solrj swap cores?

2010-12-15 Thread Tim Heckman
It's been working for me. One thing to look out for might be the url you're using in SolrUtil.getSolrServer()? The url you use for reindexing won't be the same as the one you use to swap cores. Make sure it's using "admin/cores" and not "production/admin/cores" or "reindex/admin/cores". Sorry if t

Re: Dataimport performance

2010-12-15 Thread Tim Heckman
bottleneck. > > How exactly did you implement the custom data import? > > In our case, we need to de-normalize the relations of the sql data for the > index, > so i fear i can't really get rid of the join / subquery. > > > -robert > > > > > >

Re: Dataimport performance

2010-12-15 Thread Tim Heckman
2010/12/15 Robert Gründler : > The data-config.xml looks like this (only 1 entity): > >       >         >         >         >         >         >         name="sf_unique_id"/> > >         >           >         > >       So there's one track entity with an artist sub-entity. My (admittedly rather l

Re: Solr 1.4 replication, cleaning up old indexes

2010-12-14 Thread Tim Heckman
On Tue, Dec 14, 2010 at 10:37 AM, Shawn Heisey wrote: > It's supposed to take care of removing the old indexes on its own - when > everything is working, it builds an index. directory, replicates, > swaps that directory in to replace index, and deletes the directory with the > timestamp.  I have n

Solr 1.4 replication, cleaning up old indexes

2010-12-14 Thread Tim Heckman
When using the index replication over HTTP that was introduced in Solr 1.4, what is the recommended way to periodically clean up old indexes on the slaves? I found references to the snapcleaner script, but that seems to be for the older ssh/rsync replication model. thanks, Tim

Re: data import / delta question

2010-10-11 Thread Tim Heckman
eing your DIH config, it's really hard to say much of anything. > > You can gain finer control over edge cases by writing a Java > app that uses SolrJ if necessary. > > HTH > Erick > > On Mon, Oct 11, 2010 at 3:27 PM, Tim Heckman wrote: > >> My data-import-con

data import / delta question

2010-10-11 Thread Tim Heckman
My data-import-config.xml has a parent entity and a child entity. The data is coming from rdbms's. I'm trying to make use of the delta-import feature where a change in the child entity can be used to regenerate the entire document. The child entity is on a different database (and a different serv

script transformer vs. custom transformer

2010-10-06 Thread Tim Heckman
This might be a dumb question, but should I expect that a custom transformer written in java will perform better than a javascript script transformer? Or does the javascript get compiled to bytecode such that there really should not be much difference between the two? Of course, the bigger perfor

Re: bi-directional replication on solr 1.4?

2010-05-13 Thread Tim Heckman
running it in a sandbox right now). But I wonder what other problems it might create in a production environment (or what problems I am overlooking). Does anyone have any thoughts on this? thanks, Tim On Thu, May 13, 2010 at 2:37 PM, Tim Heckman wrote: > Does bi-directional replication wo

bi-directional replication on solr 1.4?

2010-05-13 Thread Tim Heckman
Does bi-directional replication work in solr 1.4? In other words, if I wanted to have 2 servers that are both master and slave. Call them A and B. I would configure things so that normally, A runs a DIH periodically to rebuild the index, and then B pulls the updated index from A. The idea here is t

Re: cores and SWAP

2010-05-04 Thread Tim Heckman
OK, yes, I see now. Even though the etags change when the swap happens, the last modified date on the server may be earlier than what the client has from the request prior to the swap. thank you. Tim On Tue, May 4, 2010 at 12:30 PM, Erik Hatcher wrote: > The issue is that browsers (apparently n

Re: cores and SWAP

2010-05-04 Thread Tim Heckman
ered the httpCaching settings from the example solrconfig.xml. thanks, Tim On Tue, May 4, 2010 at 10:00 AM, Tim Heckman wrote: > If it helps, I am running: > > solr 1.4.0 > tomcat 6.0.26 > > java version "1.6.0_20" > Java(TM) SE Runtime Environment (build 1.6.0_20-b

Re: cores and SWAP

2010-05-04 Thread Tim Heckman
at 4:47 PM, Tim Heckman wrote: > I have 2 cores: core1 and core2. > > Load the same data set into each and commit. Verify that searches > return the same for each core. > > Delete a document (call it docA) from core2 but not from core1. > > Commit and verify search results (d

Re: cores and SWAP

2010-05-03 Thread Tim Heckman
es to return the docA) Swap cores. Core2 should now return docA, but it doesn't until I reload core2. thanks, Tim On Mon, May 3, 2010 at 1:41 PM, Shalin Shekhar Mangar wrote: > On Mon, May 3, 2010 at 10:27 PM, Tim Heckman wrote: > >> Hi, I'm trying to figure out whether

cores and SWAP

2010-05-03 Thread Tim Heckman
Hi, I'm trying to figure out whether I need to reload a core (or both cores?) after performing a swap. When I perform a swap in my sandbox (non-production) environment, I am seeing that one of the cores needs to be reloaded following a swap and the other does not, but I haven't been able to find a