creating cores on demand

2008-12-05 Thread Dean Thompson
Our application processes RSS feeds. Its search activity is heavily concentrated on the most recent 24 hours, with modest searching across the past few days, and rare (but important) searching across months or more. So we create a Solr core for each day, and then search the appropriate se

Re: IOException: Mark invalid while analyzing HTML

2008-12-05 Thread Dean Thompson
Was this one ever addressed? I'm seeing it in some small percentage of the documents that I index in 1.4-dev 708596M. I don't see a corresponding JIRA issue. James Brady-3 wrote: > > Hi, > I'm seeing a problem mentioned in Solr-42, Highlighting problems with > HTMLStripWhitespaceTokenizerFa

Re: Is there a clean way to determine whether a core exists?

2008-12-05 Thread Dean Thompson
Wow -- thanks for all the help!! With everyone's help, I did end up in a *much* better place: private static boolean solrCoreExists(String coreName, String solrRootUrl) throws IOException, SolrServerException { CommonsHttpSolrServer adminServer = new CommonsHttpSolrServer(

Re: Is there a clean way to determine whether a core exists?

2008-12-04 Thread Dean Thompson
Thanks for the quick response, Ryan! Actually, my admin/ping call gives me a 404 if the core doesn't exist, which seemed reasonable. I get the 500 if the core *did* exist. Thanks for the suggestion of using the select URL, but that gives me: HTTP ERROR: 500 null java.lang.NullPointerExcep

Is there a clean way to determine whether a core exists?

2008-12-04 Thread Dean Thompson
The ping command gives me a 500 status if the core exists, or a 404 if it doesn't. For example, when I hit http://doom:8983/solr/content_item_representations_20081201/admin/ping I see HTTP ERROR: 500 INTERNAL_SERVER_ERROR RequestURI=/solr/admin/ping Powered by Jetty://