Reloading External File Field when server is up

2014-09-11 Thread Ramana OpenSource
Hi , I am trying to see how the External File Field functionality works. In the "solrconfig.xml", I added below listeners. In the schema.xml i defined field type and field In my SOLR data directory(example\solr\collection1\data), I created a file "external_testField" After server star

Re: How to get access to SolrCore in init method of Handler Class

2014-09-10 Thread Ramana OpenSource
Thanks Chris. I have implemented SolrCoreAware interface and loading the required file in the inform method. Thanks, Ramana. On Wed, Sep 10, 2014 at 10:59 PM, Chris Hostetter wrote: > > : But, To make it better, I would like to load this file only once and in > the > : init() method of handler

How to get access to SolrCore in init method of Handler Class

2014-09-10 Thread Ramana OpenSource
Hi, I need to load a file in instance's conf directory and this data is going to be used in handleRequestBody() implementation. As of now, i am loading the file in the handleRequestBody method like below. SolrCore solrCore = req.getCore(); solrCore .getResourceLoader().getLines(fileToLoad); But,

Re: Reading files in default Conf dir

2014-09-10 Thread Ramana OpenSource
and a little more info could > be helpful as we can’t figure what Solr “part” are you developing. > > Regards, > > On Sep 9, 2014, at 2:37 PM, Ramana OpenSource > wrote: > > > Hi, > > > > I am trying to load one of the file in conf directory in SOLR, using >

Reading files in default Conf dir

2014-09-09 Thread Ramana OpenSource
Hi, I am trying to load one of the file in conf directory in SOLR, using below code. return new HashSet(new SolrResourceLoader(null).getLines("stopwords.txt")); The "stopwords.txt" file is available in the location "solr\example\solr\collection1\conf". When i debugged the SolrResourceLoader API

Re: How to view number of backups available

2014-08-03 Thread Ramana OpenSource
t; > On Sat, Aug 2, 2014 at 8:35 AM, Ramana OpenSource < > ramanaopensou...@gmail.com> wrote: > > > Hi All, > > > > I am using Replication backup command to create snapshot of my index. > > > > http://localhost:8983/solr/replication?command=backup&nu

How to view number of backups available

2014-08-01 Thread Ramana OpenSource
Hi All, I am using Replication backup command to create snapshot of my index. http://localhost:8983/solr/replication?command=backup&numberToKeep=2 At any point, If I would like to know how many number of back ups available, do we have any API that supports this ? The close one i see is http://l