Adding metadata to a Solr schema

2011-01-19 Thread David McLaughlin
Hi, I need to add some meta data to a schema file in Solr - such a version and current transaction id. I need to be able to query Solr to get this information. What would be the best way to do this? Thanks, David

Re: Adding metadata to a Solr schema

2011-01-19 Thread David McLaughlin
c with this data... > > Otis > > Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch > Lucene ecosystem search :: http://search-lucene.com/ > > > > - Original Message > > From: David McLaughlin > > To: solr-user@lucene.apache.org > &

Detecting an empty index during start-up

2011-03-24 Thread David McLaughlin
Hi, In our Solr deployment we have a cluster of replicated Solr cores, with the small change that we have dynamic master look-up using ZooKeeper. The problem I am trying to solve is to make sure that when a new Solr core joins the cluster it isn't made available to any search services until it has

Re: Detecting an empty index during start-up

2011-03-25 Thread David McLaughlin
Thanks Chris. I dug into the SolrCore code and after reading some of the code I ended up going with core.getNewestSearcher(true) and this fixed the problem. David On Thu, Mar 24, 2011 at 7:20 PM, Chris Hostetter wrote: > : I am not familiar with Solr internals, so the approach I wanted to take