You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Carl Roberts <ca...@gmail.com> on 2015/01/21 17:09:48 UTC
Errors using the Embedded Solar Server
Hi,
I have downloaded the code and documentation for Solr version 4.10.3.
I am trying to follow SolrJ Wiki guide and I am running into errors.
The latest error is this one:
Exception in thread "main" org.apache.solr.common.SolrException: No such
core: db
at
org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:112)
at
org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:124)
at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:68)
at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:54)
at solr.Test.main(Test.java:39)
My code is this:
package solr;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
import org.apache.solr.client.solrj.SolrServerException;
import org.apache.solr.client.solrj.embedded.EmbeddedSolrServer;
import org.apache.solr.common.SolrInputDocument;
import org.apache.solr.core.CoreContainer;
import org.apache.solr.core.SolrCore;
public class Test {
public static void main(String [] args){
CoreContainer container = new
CoreContainer("/Users/carlroberts/dev/solr-4.10.3");
System.out.println(container.getDefaultCoreName());
System.out.println(container.getSolrHome());
container.load();
System.out.println(container.isLoaded("db"));
System.out.println(container.getCoreInitFailures());
Collection<SolrCore> cores = container.getCores();
System.out.println(cores);
EmbeddedSolrServer server = new EmbeddedSolrServer( container,
"db" );
SolrInputDocument doc1 = new SolrInputDocument();
doc1.addField( "id", "id1", 1.0f );
doc1.addField( "name", "doc1", 1.0f );
doc1.addField( "price", 10 );
SolrInputDocument doc2 = new SolrInputDocument();
doc2.addField( "id", "id2", 1.0f );
doc2.addField( "name", "doc2", 1.0f );
doc2.addField( "price", 20 );
Collection<SolrInputDocument> docs = new
ArrayList<SolrInputDocument>();
docs.add( doc1 );
docs.add( doc2 );
try{
server.add( docs );
server.commit();
server.deleteByQuery( "*:*" );
}catch(IOException e){
e.printStackTrace();
}catch(SolrServerException e){
e.printStackTrace();
}
}
}
My solr.xml file is this:
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!--
This is an example of a simple "solr.xml" file for configuring one or
more Solr Cores, as well as allowing Cores to be added, removed, and
reloaded via HTTP requests.
More information about options available in this configuration file,
and Solr Core administration can be found online:
http://wiki.apache.org/solr/CoreAdmin
-->
<solr>
<cores adminPath="/admin/cores" defaultCoreName="db">
<core default="true" instanceDir="db/" name="db"/>
</cores>
</solr>
And my db/conf directory was copied from example/solr/collection/conf
directory and it contains the solrconfig.xml file and schema.xml file.
I have noticed that the documentation that shows how to use the
EmbeddedSolarServer is outdated as it indicates I should use
CoreContainer.Initializer class which doesn't exist, and
container.load(path, file) which also doesn't exist.
At this point I have no idea why I am getting the No such core error and
I have googled it and there seems to be tons of threads showing this
error but for different reasons, and I have tried all the suggested
resolutions and get nowhere with this.
Can you please help?
Regards,
Joe
Re: Errors using the Embedded Solar Server
Posted by Carl Roberts <ca...@gmail.com>.
Hi,
Could there be a bug in the EmbeddedSolrServer that is causing this?
Is it still supported in version 4.10.3?
If it is, can someone please provide me assistance with this?
Regards,
Joe
On 1/21/15, 12:18 PM, Carl Roberts wrote:
> I had to hardcode the path in solrconfig.xml from this:
>
> ${solr.install.dir:}
>
> to this:
>
> /Users/carlroberts/dev/solr-4.10.3/
>
>
> to avoid the classloader warnings, but I still get the same error. I
> am not sure where the ${solr.install.dir:} value gets pulled from but
> apparently that is not working. Here is the new output:
>
> [main] INFO org.apache.solr.core.SolrResourceLoader - new
> SolrResourceLoader for directory: '/Users/carlroberts/dev/solr-4.10.3/'
> [main] INFO org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/lib/commons-logging-1.2.jar'
> to classloader
> [main] INFO org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/lib/servlet-api.jar' to
> classloader
> [main] INFO org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/lib/slf4j-simple-1.7.5.jar'
> to classloader
> [main] INFO org.apache.solr.core.ConfigSolr - Loading container
> configuration from /Users/carlroberts/dev/solr-4.10.3/solr.xml
> [main] INFO org.apache.solr.core.CoreContainer - New CoreContainer
> 1023143764
> [main] INFO org.apache.solr.core.CoreContainer - Loading cores into
> CoreContainer [instanceDir=/Users/carlroberts/dev/solr-4.10.3/]
> db
> /Users/carlroberts/dev/solr-4.10.3/
> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory
> - Setting socketTimeout to: 0
> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory
> - Setting urlScheme to: null
> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory
> - Setting connTimeout to: 0
> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory
> - Setting maxConnectionsPerHost to: 20
> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory
> - Setting corePoolSize to: 0
> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory
> - Setting maximumPoolSize to: 2147483647
> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory
> - Setting maxThreadIdleTime to: 5
> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory
> - Setting sizeOfQueue to: -1
> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory
> - Setting fairnessPolicy to: false
> [main] INFO org.apache.solr.update.UpdateShardHandler - Creating
> UpdateShardHandler HTTP client with params:
> socketTimeout=0&connTimeout=0&retry=false
> [main] INFO org.apache.solr.logging.LogWatcher - SLF4J impl is
> org.slf4j.impl.SimpleLoggerFactory
> [main] INFO org.apache.solr.logging.LogWatcher - No LogWatcher configured
> [main] INFO org.apache.solr.core.CoreContainer - Host Name: null
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - new SolrResourceLoader for
> directory: '/Users/carlroberts/dev/solr-4.10.3/db/'
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrConfig -
> Adding specified lib dirs to ClassLoader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/apache-mime4j-core-0.7.2.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/apache-mime4j-dom-0.7.2.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/aspectjrt-1.6.11.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/bcmail-jdk15-1.45.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/bcprov-jdk15-1.45.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/boilerpipe-1.1.0.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/commons-compress-1.7.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/dom4j-1.6.1.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/fontbox-1.8.4.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/icu4j-53.1.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/isoparser-1.0-RC-1.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/jdom-1.0.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/jempbox-1.8.4.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/jhighlight-1.0.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/juniversalchardet-1.0.3.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/metadata-extractor-2.6.2.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/pdfbox-1.8.4.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/poi-3.10.1.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/poi-ooxml-3.10.1.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/poi-ooxml-schemas-3.10.1.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/poi-scratchpad-3.10.1.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/rome-0.9.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/tagsoup-1.2.1.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/tika-core-1.5.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/tika-parsers-1.5.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/tika-xmp-1.5.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/vorbis-java-core-0.1.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/vorbis-java-tika-0.1.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/xercesImpl-2.9.1.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/xmlbeans-2.6.0.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/xmpcore-5.1.2.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/xz-1.4.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/dist/solr-cell-4.10.3.jar' to
> classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/attributes-binder-1.2.1.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/carrot2-mini-3.9.0.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/hppc-0.5.2.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/jackson-core-asl-1.9.13.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/jackson-mapper-asl-1.9.13.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/mahout-collections-1.0.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/mahout-math-0.6.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/simple-xml-2.7.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/dist/solr-clustering-4.10.3.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/langid/lib/jsonic-1.2.7.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/langid/lib/langdetect-1.1-20120112.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/dist/solr-langid-4.10.3.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/velocity/lib/commons-beanutils-1.8.3.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/velocity/lib/commons-collections-3.2.1.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/velocity/lib/velocity-1.7.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/velocity/lib/velocity-tools-2.0.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/dist/solr-velocity-4.10.3.jar' to
> classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.update.SolrIndexConfig - IndexWriter infoStream solr
> logging is enabled
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrConfig -
> Using Lucene MatchVersion: 4.10.3
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.Config -
> Loaded SolrConfig: solrconfig.xml
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.schema.IndexSchema
> - Reading Solr Schema from
> /Users/carlroberts/dev/solr-4.10.3/db/conf/schema.xml
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.schema.IndexSchema
> - [db] Schema name=example
> false
> {}
> []
> /Users/carlroberts/dev/solr-4.10.3/
> Exception in thread "main" org.apache.solr.common.SolrException: No
> such core: db
> at
> org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:112)
> at
> org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:124)
> at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:68)
> at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:54)
> at solr.Test.main(Test.java:40)
> On 1/21/15, 12:01 PM, Carl Roberts wrote:
>> OK - I figured out the logging. Here is the logging output plus the
>> console output and the stack trace:
>>
>> main] INFO org.apache.solr.core.SolrResourceLoader - new
>> SolrResourceLoader for directory: '/Users/carlroberts/dev/solr-4.10.3/'
>> [main] INFO org.apache.solr.core.SolrResourceLoader - Adding
>> 'file:/Users/carlroberts/dev/solr-4.10.3/lib/commons-logging-1.2.jar'
>> to classloader
>> [main] INFO org.apache.solr.core.SolrResourceLoader - Adding
>> 'file:/Users/carlroberts/dev/solr-4.10.3/lib/servlet-api.jar' to
>> classloader
>> [main] INFO org.apache.solr.core.SolrResourceLoader - Adding
>> 'file:/Users/carlroberts/dev/solr-4.10.3/lib/slf4j-simple-1.7.5.jar'
>> to classloader
>> [main] INFO org.apache.solr.core.ConfigSolr - Loading container
>> configuration from /Users/carlroberts/dev/solr-4.10.3/solr.xml
>> [main] INFO org.apache.solr.core.CoreContainer - New CoreContainer
>> 2050551931
>> db
>> /Users/carlroberts/dev/solr-4.10.3/[main] INFO
>> org.apache.solr.core.CoreContainer - Loading cores into CoreContainer
>> [instanceDir=/Users/carlroberts/dev/solr-4.10.3/]
>>
>> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory
>> - Setting socketTimeout to: 0
>> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory
>> - Setting urlScheme to: null
>> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory
>> - Setting connTimeout to: 0
>> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory
>> - Setting maxConnectionsPerHost to: 20
>> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory
>> - Setting corePoolSize to: 0
>> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory
>> - Setting maximumPoolSize to: 2147483647
>> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory
>> - Setting maxThreadIdleTime to: 5
>> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory
>> - Setting sizeOfQueue to: -1
>> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory
>> - Setting fairnessPolicy to: false
>> [main] INFO org.apache.solr.update.UpdateShardHandler - Creating
>> UpdateShardHandler HTTP client with params:
>> socketTimeout=0&connTimeout=0&retry=false
>> [main] INFO org.apache.solr.logging.LogWatcher - SLF4J impl is
>> org.slf4j.impl.SimpleLoggerFactory
>> [main] INFO org.apache.solr.logging.LogWatcher - No LogWatcher
>> configured
>> [main] INFO org.apache.solr.core.CoreContainer - Host Name: null
>> [coreLoadExecutor-5-thread-1] INFO
>> org.apache.solr.core.SolrResourceLoader - new SolrResourceLoader for
>> directory: '/Users/carlroberts/dev/solr-4.10.3/db/'
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrConfig -
>> Adding specified lib dirs to ClassLoader
>> [coreLoadExecutor-5-thread-1] WARN
>> org.apache.solr.core.SolrResourceLoader - Can't find (or read)
>> directory to add to classloader: ../../../contrib/extraction/lib
>> (resolved as:
>> /Users/carlroberts/dev/solr-4.10.3/db/../../../contrib/extraction/lib).
>> [coreLoadExecutor-5-thread-1] WARN
>> org.apache.solr.core.SolrResourceLoader - Can't find (or read)
>> directory to add to classloader: ../../../dist/ (resolved as:
>> /Users/carlroberts/dev/solr-4.10.3/db/../../../dist).
>> [coreLoadExecutor-5-thread-1] WARN
>> org.apache.solr.core.SolrResourceLoader - Can't find (or read)
>> directory to add to classloader: ../../../contrib/clustering/lib/
>> (resolved as:
>> /Users/carlroberts/dev/solr-4.10.3/db/../../../contrib/clustering/lib).
>> [coreLoadExecutor-5-thread-1] WARN
>> org.apache.solr.core.SolrResourceLoader - Can't find (or read)
>> directory to add to classloader: ../../../dist/ (resolved as:
>> /Users/carlroberts/dev/solr-4.10.3/db/../../../dist).
>> [coreLoadExecutor-5-thread-1] WARN
>> org.apache.solr.core.SolrResourceLoader - Can't find (or read)
>> directory to add to classloader: ../../../contrib/langid/lib/
>> (resolved as:
>> /Users/carlroberts/dev/solr-4.10.3/db/../../../contrib/langid/lib).
>> [coreLoadExecutor-5-thread-1] WARN
>> org.apache.solr.core.SolrResourceLoader - Can't find (or read)
>> directory to add to classloader: ../../../dist/ (resolved as:
>> /Users/carlroberts/dev/solr-4.10.3/db/../../../dist).
>> [coreLoadExecutor-5-thread-1] WARN
>> org.apache.solr.core.SolrResourceLoader - Can't find (or read)
>> directory to add to classloader: ../../../contrib/velocity/lib
>> (resolved as:
>> /Users/carlroberts/dev/solr-4.10.3/db/../../../contrib/velocity/lib).
>> [coreLoadExecutor-5-thread-1] WARN
>> org.apache.solr.core.SolrResourceLoader - Can't find (or read)
>> directory to add to classloader: ../../../dist/ (resolved as:
>> /Users/carlroberts/dev/solr-4.10.3/db/../../../dist).
>> [coreLoadExecutor-5-thread-1] INFO
>> org.apache.solr.update.SolrIndexConfig - IndexWriter infoStream solr
>> logging is enabled
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrConfig -
>> Using Lucene MatchVersion: 4.10.3
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.Config -
>> Loaded SolrConfig: solrconfig.xml
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.schema.IndexSchema
>> - Reading Solr Schema from
>> /Users/carlroberts/dev/solr-4.10.3/db/conf/schema.xml
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.schema.IndexSchema
>> - [db] Schema name=example
>> false
>> {}
>> []
>> /Users/carlroberts/dev/solr-4.10.3/
>> Exception in thread "main" org.apache.solr.common.SolrException: No
>> such core: db
>> at
>> org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:112)
>> at
>> org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:124)
>> at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:68)
>> at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:54)
>> at solr.Test.main(Test.java:40)
>>
>> On 1/21/15, 11:50 AM, Alan Woodward wrote:
>>> That certainly looks like it ought to work. Is there log output
>>> that you could show us as well?
>>>
>>> Alan Woodward
>>> www.flax.co.uk
>>>
>>>
>>> On 21 Jan 2015, at 16:09, Carl Roberts wrote:
>>>
>>>> Hi,
>>>>
>>>> I have downloaded the code and documentation for Solr version 4.10.3.
>>>>
>>>> I am trying to follow SolrJ Wiki guide and I am running into
>>>> errors. The latest error is this one:
>>>>
>>>> Exception in thread "main" org.apache.solr.common.SolrException: No
>>>> such core: db
>>>> at
>>>> org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:112)
>>>> at
>>>> org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:124)
>>>> at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:68)
>>>> at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:54)
>>>> at solr.Test.main(Test.java:39)
>>>>
>>>> My code is this:
>>>>
>>>> package solr;
>>>>
>>>> import java.io.File;
>>>> import java.io.IOException;
>>>> import java.util.ArrayList;
>>>> import java.util.Collection;
>>>>
>>>> import org.apache.solr.client.solrj.SolrServerException;
>>>> import org.apache.solr.client.solrj.embedded.EmbeddedSolrServer;
>>>> import org.apache.solr.common.SolrInputDocument;
>>>> import org.apache.solr.core.CoreContainer;
>>>> import org.apache.solr.core.SolrCore;
>>>>
>>>>
>>>> public class Test {
>>>> public static void main(String [] args){
>>>> CoreContainer container = new
>>>> CoreContainer("/Users/carlroberts/dev/solr-4.10.3");
>>>> System.out.println(container.getDefaultCoreName());
>>>> System.out.println(container.getSolrHome());
>>>> container.load();
>>>> System.out.println(container.isLoaded("db"));
>>>> System.out.println(container.getCoreInitFailures());
>>>> Collection<SolrCore> cores = container.getCores();
>>>> System.out.println(cores);
>>>> EmbeddedSolrServer server = new EmbeddedSolrServer(
>>>> container, "db" );
>>>> SolrInputDocument doc1 = new SolrInputDocument();
>>>> doc1.addField( "id", "id1", 1.0f );
>>>> doc1.addField( "name", "doc1", 1.0f );
>>>> doc1.addField( "price", 10 );
>>>> SolrInputDocument doc2 = new SolrInputDocument();
>>>> doc2.addField( "id", "id2", 1.0f );
>>>> doc2.addField( "name", "doc2", 1.0f );
>>>> doc2.addField( "price", 20 );
>>>> Collection<SolrInputDocument> docs = new
>>>> ArrayList<SolrInputDocument>();
>>>> docs.add( doc1 );
>>>> docs.add( doc2 );
>>>> try{
>>>> server.add( docs );
>>>> server.commit();
>>>> server.deleteByQuery( "*:*" );
>>>> }catch(IOException e){
>>>> e.printStackTrace();
>>>> }catch(SolrServerException e){
>>>> e.printStackTrace();
>>>> }
>>>> }
>>>> }
>>>>
>>>>
>>>> My solr.xml file is this:
>>>>
>>>> <?xml version="1.0" encoding="UTF-8" ?>
>>>> <!--
>>>> Licensed to the Apache Software Foundation (ASF) under one or more
>>>> contributor license agreements. See the NOTICE file distributed with
>>>> this work for additional information regarding copyright ownership.
>>>> The ASF licenses this file to You under the Apache License, Version
>>>> 2.0
>>>> (the "License"); you may not use this file except in compliance with
>>>> the License. You may obtain a copy of the License at
>>>>
>>>> http://www.apache.org/licenses/LICENSE-2.0
>>>>
>>>> Unless required by applicable law or agreed to in writing, software
>>>> distributed under the License is distributed on an "AS IS" BASIS,
>>>> WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
>>>> implied.
>>>> See the License for the specific language governing permissions and
>>>> limitations under the License.
>>>> -->
>>>>
>>>> <!--
>>>> This is an example of a simple "solr.xml" file for configuring
>>>> one or
>>>> more Solr Cores, as well as allowing Cores to be added, removed,
>>>> and
>>>> reloaded via HTTP requests.
>>>>
>>>> More information about options available in this configuration
>>>> file,
>>>> and Solr Core administration can be found online:
>>>> http://wiki.apache.org/solr/CoreAdmin
>>>> -->
>>>>
>>>> <solr>
>>>> <cores adminPath="/admin/cores" defaultCoreName="db">
>>>> <core default="true" instanceDir="db/" name="db"/>
>>>> </cores>
>>>> </solr>
>>>>
>>>> And my db/conf directory was copied from
>>>> example/solr/collection/conf directory and it contains the
>>>> solrconfig.xml file and schema.xml file.
>>>>
>>>> I have noticed that the documentation that shows how to use the
>>>> EmbeddedSolarServer is outdated as it indicates I should use
>>>> CoreContainer.Initializer class which doesn't exist, and
>>>> container.load(path, file) which also doesn't exist.
>>>>
>>>> At this point I have no idea why I am getting the No such core
>>>> error and I have googled it and there seems to be tons of threads
>>>> showing this error but for different reasons, and I have tried all
>>>> the suggested resolutions and get nowhere with this.
>>>>
>>>> Can you please help?
>>>>
>>>> Regards,
>>>>
>>>> Joe
>>>
>>
>
Re: Errors using the Embedded Solar Server
Posted by Carl Roberts <ca...@gmail.com>.
I had to hardcode the path in solrconfig.xml from this:
${solr.install.dir:}
to this:
/Users/carlroberts/dev/solr-4.10.3/
to avoid the classloader warnings, but I still get the same error. I am
not sure where the ${solr.install.dir:} value gets pulled from but
apparently that is not working. Here is the new output:
[main] INFO org.apache.solr.core.SolrResourceLoader - new
SolrResourceLoader for directory: '/Users/carlroberts/dev/solr-4.10.3/'
[main] INFO org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/lib/commons-logging-1.2.jar' to
classloader
[main] INFO org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/lib/servlet-api.jar' to classloader
[main] INFO org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/lib/slf4j-simple-1.7.5.jar' to
classloader
[main] INFO org.apache.solr.core.ConfigSolr - Loading container
configuration from /Users/carlroberts/dev/solr-4.10.3/solr.xml
[main] INFO org.apache.solr.core.CoreContainer - New CoreContainer
1023143764
[main] INFO org.apache.solr.core.CoreContainer - Loading cores into
CoreContainer [instanceDir=/Users/carlroberts/dev/solr-4.10.3/]
db
/Users/carlroberts/dev/solr-4.10.3/
[main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory -
Setting socketTimeout to: 0
[main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory -
Setting urlScheme to: null
[main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory -
Setting connTimeout to: 0
[main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory -
Setting maxConnectionsPerHost to: 20
[main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory -
Setting corePoolSize to: 0
[main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory -
Setting maximumPoolSize to: 2147483647
[main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory -
Setting maxThreadIdleTime to: 5
[main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory -
Setting sizeOfQueue to: -1
[main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory -
Setting fairnessPolicy to: false
[main] INFO org.apache.solr.update.UpdateShardHandler - Creating
UpdateShardHandler HTTP client with params:
socketTimeout=0&connTimeout=0&retry=false
[main] INFO org.apache.solr.logging.LogWatcher - SLF4J impl is
org.slf4j.impl.SimpleLoggerFactory
[main] INFO org.apache.solr.logging.LogWatcher - No LogWatcher configured
[main] INFO org.apache.solr.core.CoreContainer - Host Name: null
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - new SolrResourceLoader for
directory: '/Users/carlroberts/dev/solr-4.10.3/db/'
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrConfig -
Adding specified lib dirs to ClassLoader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/apache-mime4j-core-0.7.2.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/apache-mime4j-dom-0.7.2.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/aspectjrt-1.6.11.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/bcmail-jdk15-1.45.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/bcprov-jdk15-1.45.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/boilerpipe-1.1.0.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/commons-compress-1.7.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/dom4j-1.6.1.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/fontbox-1.8.4.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/icu4j-53.1.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/isoparser-1.0-RC-1.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/jdom-1.0.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/jempbox-1.8.4.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/jhighlight-1.0.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/juniversalchardet-1.0.3.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/metadata-extractor-2.6.2.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/pdfbox-1.8.4.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/poi-3.10.1.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/poi-ooxml-3.10.1.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/poi-ooxml-schemas-3.10.1.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/poi-scratchpad-3.10.1.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/rome-0.9.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/tagsoup-1.2.1.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/tika-core-1.5.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/tika-parsers-1.5.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/tika-xmp-1.5.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/vorbis-java-core-0.1.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/vorbis-java-tika-0.1.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/xercesImpl-2.9.1.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/xmlbeans-2.6.0.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/xmpcore-5.1.2.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/xz-1.4.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/dist/solr-cell-4.10.3.jar' to
classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/attributes-binder-1.2.1.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/carrot2-mini-3.9.0.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/hppc-0.5.2.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/jackson-core-asl-1.9.13.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/jackson-mapper-asl-1.9.13.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/mahout-collections-1.0.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/mahout-math-0.6.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/simple-xml-2.7.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/dist/solr-clustering-4.10.3.jar' to
classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/langid/lib/jsonic-1.2.7.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/langid/lib/langdetect-1.1-20120112.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/dist/solr-langid-4.10.3.jar' to
classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/velocity/lib/commons-beanutils-1.8.3.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/velocity/lib/commons-collections-3.2.1.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/velocity/lib/velocity-1.7.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/velocity/lib/velocity-tools-2.0.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/dist/solr-velocity-4.10.3.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.update.SolrIndexConfig - IndexWriter infoStream solr
logging is enabled
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrConfig -
Using Lucene MatchVersion: 4.10.3
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.Config - Loaded
SolrConfig: solrconfig.xml
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.schema.IndexSchema -
Reading Solr Schema from
/Users/carlroberts/dev/solr-4.10.3/db/conf/schema.xml
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.schema.IndexSchema -
[db] Schema name=example
false
{}
[]
/Users/carlroberts/dev/solr-4.10.3/
Exception in thread "main" org.apache.solr.common.SolrException: No such
core: db
at
org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:112)
at
org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:124)
at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:68)
at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:54)
at solr.Test.main(Test.java:40)
On 1/21/15, 12:01 PM, Carl Roberts wrote:
> OK - I figured out the logging. Here is the logging output plus the
> console output and the stack trace:
>
> main] INFO org.apache.solr.core.SolrResourceLoader - new
> SolrResourceLoader for directory: '/Users/carlroberts/dev/solr-4.10.3/'
> [main] INFO org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/lib/commons-logging-1.2.jar'
> to classloader
> [main] INFO org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/lib/servlet-api.jar' to
> classloader
> [main] INFO org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/lib/slf4j-simple-1.7.5.jar'
> to classloader
> [main] INFO org.apache.solr.core.ConfigSolr - Loading container
> configuration from /Users/carlroberts/dev/solr-4.10.3/solr.xml
> [main] INFO org.apache.solr.core.CoreContainer - New CoreContainer
> 2050551931
> db
> /Users/carlroberts/dev/solr-4.10.3/[main] INFO
> org.apache.solr.core.CoreContainer - Loading cores into CoreContainer
> [instanceDir=/Users/carlroberts/dev/solr-4.10.3/]
>
> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory
> - Setting socketTimeout to: 0
> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory
> - Setting urlScheme to: null
> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory
> - Setting connTimeout to: 0
> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory
> - Setting maxConnectionsPerHost to: 20
> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory
> - Setting corePoolSize to: 0
> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory
> - Setting maximumPoolSize to: 2147483647
> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory
> - Setting maxThreadIdleTime to: 5
> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory
> - Setting sizeOfQueue to: -1
> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory
> - Setting fairnessPolicy to: false
> [main] INFO org.apache.solr.update.UpdateShardHandler - Creating
> UpdateShardHandler HTTP client with params:
> socketTimeout=0&connTimeout=0&retry=false
> [main] INFO org.apache.solr.logging.LogWatcher - SLF4J impl is
> org.slf4j.impl.SimpleLoggerFactory
> [main] INFO org.apache.solr.logging.LogWatcher - No LogWatcher configured
> [main] INFO org.apache.solr.core.CoreContainer - Host Name: null
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - new SolrResourceLoader for
> directory: '/Users/carlroberts/dev/solr-4.10.3/db/'
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrConfig -
> Adding specified lib dirs to ClassLoader
> [coreLoadExecutor-5-thread-1] WARN
> org.apache.solr.core.SolrResourceLoader - Can't find (or read)
> directory to add to classloader: ../../../contrib/extraction/lib
> (resolved as:
> /Users/carlroberts/dev/solr-4.10.3/db/../../../contrib/extraction/lib).
> [coreLoadExecutor-5-thread-1] WARN
> org.apache.solr.core.SolrResourceLoader - Can't find (or read)
> directory to add to classloader: ../../../dist/ (resolved as:
> /Users/carlroberts/dev/solr-4.10.3/db/../../../dist).
> [coreLoadExecutor-5-thread-1] WARN
> org.apache.solr.core.SolrResourceLoader - Can't find (or read)
> directory to add to classloader: ../../../contrib/clustering/lib/
> (resolved as:
> /Users/carlroberts/dev/solr-4.10.3/db/../../../contrib/clustering/lib).
> [coreLoadExecutor-5-thread-1] WARN
> org.apache.solr.core.SolrResourceLoader - Can't find (or read)
> directory to add to classloader: ../../../dist/ (resolved as:
> /Users/carlroberts/dev/solr-4.10.3/db/../../../dist).
> [coreLoadExecutor-5-thread-1] WARN
> org.apache.solr.core.SolrResourceLoader - Can't find (or read)
> directory to add to classloader: ../../../contrib/langid/lib/
> (resolved as:
> /Users/carlroberts/dev/solr-4.10.3/db/../../../contrib/langid/lib).
> [coreLoadExecutor-5-thread-1] WARN
> org.apache.solr.core.SolrResourceLoader - Can't find (or read)
> directory to add to classloader: ../../../dist/ (resolved as:
> /Users/carlroberts/dev/solr-4.10.3/db/../../../dist).
> [coreLoadExecutor-5-thread-1] WARN
> org.apache.solr.core.SolrResourceLoader - Can't find (or read)
> directory to add to classloader: ../../../contrib/velocity/lib
> (resolved as:
> /Users/carlroberts/dev/solr-4.10.3/db/../../../contrib/velocity/lib).
> [coreLoadExecutor-5-thread-1] WARN
> org.apache.solr.core.SolrResourceLoader - Can't find (or read)
> directory to add to classloader: ../../../dist/ (resolved as:
> /Users/carlroberts/dev/solr-4.10.3/db/../../../dist).
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.update.SolrIndexConfig - IndexWriter infoStream solr
> logging is enabled
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrConfig -
> Using Lucene MatchVersion: 4.10.3
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.Config -
> Loaded SolrConfig: solrconfig.xml
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.schema.IndexSchema
> - Reading Solr Schema from
> /Users/carlroberts/dev/solr-4.10.3/db/conf/schema.xml
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.schema.IndexSchema
> - [db] Schema name=example
> false
> {}
> []
> /Users/carlroberts/dev/solr-4.10.3/
> Exception in thread "main" org.apache.solr.common.SolrException: No
> such core: db
> at
> org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:112)
> at
> org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:124)
> at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:68)
> at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:54)
> at solr.Test.main(Test.java:40)
>
> On 1/21/15, 11:50 AM, Alan Woodward wrote:
>> That certainly looks like it ought to work. Is there log output that
>> you could show us as well?
>>
>> Alan Woodward
>> www.flax.co.uk
>>
>>
>> On 21 Jan 2015, at 16:09, Carl Roberts wrote:
>>
>>> Hi,
>>>
>>> I have downloaded the code and documentation for Solr version 4.10.3.
>>>
>>> I am trying to follow SolrJ Wiki guide and I am running into
>>> errors. The latest error is this one:
>>>
>>> Exception in thread "main" org.apache.solr.common.SolrException: No
>>> such core: db
>>> at
>>> org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:112)
>>> at
>>> org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:124)
>>> at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:68)
>>> at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:54)
>>> at solr.Test.main(Test.java:39)
>>>
>>> My code is this:
>>>
>>> package solr;
>>>
>>> import java.io.File;
>>> import java.io.IOException;
>>> import java.util.ArrayList;
>>> import java.util.Collection;
>>>
>>> import org.apache.solr.client.solrj.SolrServerException;
>>> import org.apache.solr.client.solrj.embedded.EmbeddedSolrServer;
>>> import org.apache.solr.common.SolrInputDocument;
>>> import org.apache.solr.core.CoreContainer;
>>> import org.apache.solr.core.SolrCore;
>>>
>>>
>>> public class Test {
>>> public static void main(String [] args){
>>> CoreContainer container = new
>>> CoreContainer("/Users/carlroberts/dev/solr-4.10.3");
>>> System.out.println(container.getDefaultCoreName());
>>> System.out.println(container.getSolrHome());
>>> container.load();
>>> System.out.println(container.isLoaded("db"));
>>> System.out.println(container.getCoreInitFailures());
>>> Collection<SolrCore> cores = container.getCores();
>>> System.out.println(cores);
>>> EmbeddedSolrServer server = new EmbeddedSolrServer(
>>> container, "db" );
>>> SolrInputDocument doc1 = new SolrInputDocument();
>>> doc1.addField( "id", "id1", 1.0f );
>>> doc1.addField( "name", "doc1", 1.0f );
>>> doc1.addField( "price", 10 );
>>> SolrInputDocument doc2 = new SolrInputDocument();
>>> doc2.addField( "id", "id2", 1.0f );
>>> doc2.addField( "name", "doc2", 1.0f );
>>> doc2.addField( "price", 20 );
>>> Collection<SolrInputDocument> docs = new
>>> ArrayList<SolrInputDocument>();
>>> docs.add( doc1 );
>>> docs.add( doc2 );
>>> try{
>>> server.add( docs );
>>> server.commit();
>>> server.deleteByQuery( "*:*" );
>>> }catch(IOException e){
>>> e.printStackTrace();
>>> }catch(SolrServerException e){
>>> e.printStackTrace();
>>> }
>>> }
>>> }
>>>
>>>
>>> My solr.xml file is this:
>>>
>>> <?xml version="1.0" encoding="UTF-8" ?>
>>> <!--
>>> Licensed to the Apache Software Foundation (ASF) under one or more
>>> contributor license agreements. See the NOTICE file distributed with
>>> this work for additional information regarding copyright ownership.
>>> The ASF licenses this file to You under the Apache License, Version 2.0
>>> (the "License"); you may not use this file except in compliance with
>>> the License. You may obtain a copy of the License at
>>>
>>> http://www.apache.org/licenses/LICENSE-2.0
>>>
>>> Unless required by applicable law or agreed to in writing, software
>>> distributed under the License is distributed on an "AS IS" BASIS,
>>> WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
>>> implied.
>>> See the License for the specific language governing permissions and
>>> limitations under the License.
>>> -->
>>>
>>> <!--
>>> This is an example of a simple "solr.xml" file for configuring
>>> one or
>>> more Solr Cores, as well as allowing Cores to be added, removed, and
>>> reloaded via HTTP requests.
>>>
>>> More information about options available in this configuration file,
>>> and Solr Core administration can be found online:
>>> http://wiki.apache.org/solr/CoreAdmin
>>> -->
>>>
>>> <solr>
>>> <cores adminPath="/admin/cores" defaultCoreName="db">
>>> <core default="true" instanceDir="db/" name="db"/>
>>> </cores>
>>> </solr>
>>>
>>> And my db/conf directory was copied from
>>> example/solr/collection/conf directory and it contains the
>>> solrconfig.xml file and schema.xml file.
>>>
>>> I have noticed that the documentation that shows how to use the
>>> EmbeddedSolarServer is outdated as it indicates I should use
>>> CoreContainer.Initializer class which doesn't exist, and
>>> container.load(path, file) which also doesn't exist.
>>>
>>> At this point I have no idea why I am getting the No such core error
>>> and I have googled it and there seems to be tons of threads showing
>>> this error but for different reasons, and I have tried all the
>>> suggested resolutions and get nowhere with this.
>>>
>>> Can you please help?
>>>
>>> Regards,
>>>
>>> Joe
>>
>
Re: Errors using the Embedded Solar Server
Posted by Carl Roberts <ca...@gmail.com>.
OK - I figured out the logging. Here is the logging output plus the
console output and the stack trace:
main] INFO org.apache.solr.core.SolrResourceLoader - new
SolrResourceLoader for directory: '/Users/carlroberts/dev/solr-4.10.3/'
[main] INFO org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/lib/commons-logging-1.2.jar' to
classloader
[main] INFO org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/lib/servlet-api.jar' to classloader
[main] INFO org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/lib/slf4j-simple-1.7.5.jar' to
classloader
[main] INFO org.apache.solr.core.ConfigSolr - Loading container
configuration from /Users/carlroberts/dev/solr-4.10.3/solr.xml
[main] INFO org.apache.solr.core.CoreContainer - New CoreContainer
2050551931
db
/Users/carlroberts/dev/solr-4.10.3/[main] INFO
org.apache.solr.core.CoreContainer - Loading cores into CoreContainer
[instanceDir=/Users/carlroberts/dev/solr-4.10.3/]
[main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory -
Setting socketTimeout to: 0
[main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory -
Setting urlScheme to: null
[main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory -
Setting connTimeout to: 0
[main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory -
Setting maxConnectionsPerHost to: 20
[main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory -
Setting corePoolSize to: 0
[main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory -
Setting maximumPoolSize to: 2147483647
[main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory -
Setting maxThreadIdleTime to: 5
[main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory -
Setting sizeOfQueue to: -1
[main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory -
Setting fairnessPolicy to: false
[main] INFO org.apache.solr.update.UpdateShardHandler - Creating
UpdateShardHandler HTTP client with params:
socketTimeout=0&connTimeout=0&retry=false
[main] INFO org.apache.solr.logging.LogWatcher - SLF4J impl is
org.slf4j.impl.SimpleLoggerFactory
[main] INFO org.apache.solr.logging.LogWatcher - No LogWatcher configured
[main] INFO org.apache.solr.core.CoreContainer - Host Name: null
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - new SolrResourceLoader for
directory: '/Users/carlroberts/dev/solr-4.10.3/db/'
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrConfig -
Adding specified lib dirs to ClassLoader
[coreLoadExecutor-5-thread-1] WARN
org.apache.solr.core.SolrResourceLoader - Can't find (or read) directory
to add to classloader: ../../../contrib/extraction/lib (resolved as:
/Users/carlroberts/dev/solr-4.10.3/db/../../../contrib/extraction/lib).
[coreLoadExecutor-5-thread-1] WARN
org.apache.solr.core.SolrResourceLoader - Can't find (or read) directory
to add to classloader: ../../../dist/ (resolved as:
/Users/carlroberts/dev/solr-4.10.3/db/../../../dist).
[coreLoadExecutor-5-thread-1] WARN
org.apache.solr.core.SolrResourceLoader - Can't find (or read) directory
to add to classloader: ../../../contrib/clustering/lib/ (resolved as:
/Users/carlroberts/dev/solr-4.10.3/db/../../../contrib/clustering/lib).
[coreLoadExecutor-5-thread-1] WARN
org.apache.solr.core.SolrResourceLoader - Can't find (or read) directory
to add to classloader: ../../../dist/ (resolved as:
/Users/carlroberts/dev/solr-4.10.3/db/../../../dist).
[coreLoadExecutor-5-thread-1] WARN
org.apache.solr.core.SolrResourceLoader - Can't find (or read) directory
to add to classloader: ../../../contrib/langid/lib/ (resolved as:
/Users/carlroberts/dev/solr-4.10.3/db/../../../contrib/langid/lib).
[coreLoadExecutor-5-thread-1] WARN
org.apache.solr.core.SolrResourceLoader - Can't find (or read) directory
to add to classloader: ../../../dist/ (resolved as:
/Users/carlroberts/dev/solr-4.10.3/db/../../../dist).
[coreLoadExecutor-5-thread-1] WARN
org.apache.solr.core.SolrResourceLoader - Can't find (or read) directory
to add to classloader: ../../../contrib/velocity/lib (resolved as:
/Users/carlroberts/dev/solr-4.10.3/db/../../../contrib/velocity/lib).
[coreLoadExecutor-5-thread-1] WARN
org.apache.solr.core.SolrResourceLoader - Can't find (or read) directory
to add to classloader: ../../../dist/ (resolved as:
/Users/carlroberts/dev/solr-4.10.3/db/../../../dist).
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.update.SolrIndexConfig - IndexWriter infoStream solr
logging is enabled
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrConfig -
Using Lucene MatchVersion: 4.10.3
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.Config - Loaded
SolrConfig: solrconfig.xml
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.schema.IndexSchema -
Reading Solr Schema from
/Users/carlroberts/dev/solr-4.10.3/db/conf/schema.xml
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.schema.IndexSchema -
[db] Schema name=example
false
{}
[]
/Users/carlroberts/dev/solr-4.10.3/
Exception in thread "main" org.apache.solr.common.SolrException: No such
core: db
at
org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:112)
at
org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:124)
at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:68)
at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:54)
at solr.Test.main(Test.java:40)
On 1/21/15, 11:50 AM, Alan Woodward wrote:
> That certainly looks like it ought to work. Is there log output that you could show us as well?
>
> Alan Woodward
> www.flax.co.uk
>
>
> On 21 Jan 2015, at 16:09, Carl Roberts wrote:
>
>> Hi,
>>
>> I have downloaded the code and documentation for Solr version 4.10.3.
>>
>> I am trying to follow SolrJ Wiki guide and I am running into errors. The latest error is this one:
>>
>> Exception in thread "main" org.apache.solr.common.SolrException: No such core: db
>> at org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:112)
>> at org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:124)
>> at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:68)
>> at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:54)
>> at solr.Test.main(Test.java:39)
>>
>> My code is this:
>>
>> package solr;
>>
>> import java.io.File;
>> import java.io.IOException;
>> import java.util.ArrayList;
>> import java.util.Collection;
>>
>> import org.apache.solr.client.solrj.SolrServerException;
>> import org.apache.solr.client.solrj.embedded.EmbeddedSolrServer;
>> import org.apache.solr.common.SolrInputDocument;
>> import org.apache.solr.core.CoreContainer;
>> import org.apache.solr.core.SolrCore;
>>
>>
>> public class Test {
>> public static void main(String [] args){
>> CoreContainer container = new CoreContainer("/Users/carlroberts/dev/solr-4.10.3");
>> System.out.println(container.getDefaultCoreName());
>> System.out.println(container.getSolrHome());
>> container.load();
>> System.out.println(container.isLoaded("db"));
>> System.out.println(container.getCoreInitFailures());
>> Collection<SolrCore> cores = container.getCores();
>> System.out.println(cores);
>> EmbeddedSolrServer server = new EmbeddedSolrServer( container, "db" );
>> SolrInputDocument doc1 = new SolrInputDocument();
>> doc1.addField( "id", "id1", 1.0f );
>> doc1.addField( "name", "doc1", 1.0f );
>> doc1.addField( "price", 10 );
>> SolrInputDocument doc2 = new SolrInputDocument();
>> doc2.addField( "id", "id2", 1.0f );
>> doc2.addField( "name", "doc2", 1.0f );
>> doc2.addField( "price", 20 );
>> Collection<SolrInputDocument> docs = new
>> ArrayList<SolrInputDocument>();
>> docs.add( doc1 );
>> docs.add( doc2 );
>> try{
>> server.add( docs );
>> server.commit();
>> server.deleteByQuery( "*:*" );
>> }catch(IOException e){
>> e.printStackTrace();
>> }catch(SolrServerException e){
>> e.printStackTrace();
>> }
>> }
>> }
>>
>>
>> My solr.xml file is this:
>>
>> <?xml version="1.0" encoding="UTF-8" ?>
>> <!--
>> Licensed to the Apache Software Foundation (ASF) under one or more
>> contributor license agreements. See the NOTICE file distributed with
>> this work for additional information regarding copyright ownership.
>> The ASF licenses this file to You under the Apache License, Version 2.0
>> (the "License"); you may not use this file except in compliance with
>> the License. You may obtain a copy of the License at
>>
>> http://www.apache.org/licenses/LICENSE-2.0
>>
>> Unless required by applicable law or agreed to in writing, software
>> distributed under the License is distributed on an "AS IS" BASIS,
>> WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
>> See the License for the specific language governing permissions and
>> limitations under the License.
>> -->
>>
>> <!--
>> This is an example of a simple "solr.xml" file for configuring one or
>> more Solr Cores, as well as allowing Cores to be added, removed, and
>> reloaded via HTTP requests.
>>
>> More information about options available in this configuration file,
>> and Solr Core administration can be found online:
>> http://wiki.apache.org/solr/CoreAdmin
>> -->
>>
>> <solr>
>> <cores adminPath="/admin/cores" defaultCoreName="db">
>> <core default="true" instanceDir="db/" name="db"/>
>> </cores>
>> </solr>
>>
>> And my db/conf directory was copied from example/solr/collection/conf directory and it contains the solrconfig.xml file and schema.xml file.
>>
>> I have noticed that the documentation that shows how to use the EmbeddedSolarServer is outdated as it indicates I should use CoreContainer.Initializer class which doesn't exist, and container.load(path, file) which also doesn't exist.
>>
>> At this point I have no idea why I am getting the No such core error and I have googled it and there seems to be tons of threads showing this error but for different reasons, and I have tried all the suggested resolutions and get nowhere with this.
>>
>> Can you please help?
>>
>> Regards,
>>
>> Joe
>
Re: Errors using the Embedded Solar Server
Posted by Shawn Heisey <ap...@elyograg.org>.
On 1/21/2015 7:02 PM, Carl Roberts wrote:
> Got it all working...:)
>
> I just replaced the solrconfig.xml and schema.xml files that I was using
> with the ones from collection1 in one of the examples. I had modified
> those files to remove certain sections which I thought were not needed
> and apparently I don't understand those files very well yet...:)
Glad you got it working. Here's the problem. In that log you included,
the error was:
ERROR org.apache.solr.core.SolrCore -
org.apache.solr.common.SolrException: undefined field text
Your solrconfig.xml file referenced a field named "text" (probably in
the df parameter of a request handler) ... but your schema.xml did not
have that field defined.
Thanks,
Shawn
Re: Errors using the Embedded Solar Server
Posted by Carl Roberts <ca...@gmail.com>.
Got it all working...:)
I just replaced the solrconfig.xml and schema.xml files that I was using
with the ones from collection1 in one of the examples. I had modified
those files to remove certain sections which I thought were not needed
and apparently I don't understand those files very well yet...:)
Many thanks,
Joe
On 1/21/15, 8:47 PM, Carl Roberts wrote:
> Hi Shawn,
>
> Many thanks for all your help. Moving the lucene JARs from
> solr.solr.home/lib to the same classpath directory as the solr JARs
> plus adding a bunch more dependency JAR files and most of the files
> from the collection1/conf directory - these ones to be exact, has me a
> lot closer to my goal:
>
> rw-r--r-- 1 carlroberts staff 38 Jan 21 20:41 _rest_managed.json
> -rw-r--r-- 1 carlroberts staff 56 Jan 21 20:41
> _schema_analysis_stopwords_english.json
> -rw-r--r-- 1 carlroberts staff 4041 Dec 10 00:37 currency.xml
> -rw-r--r-- 1 carlroberts staff 1386 Dec 10 00:37 elevate.xml
> drwxr-xr-x 41 carlroberts staff 1394 Dec 10 00:37 lang
> -rw-r--r-- 1 carlroberts staff 894 Dec 10 00:37 protwords.txt
> -rw-r--r--@ 1 carlroberts staff 62063 Jan 21 13:02 schema.xml
> -rw-r--r--@ 1 carlroberts staff 76821 Jan 21 13:03 solrconfig.xml
> -rw-r--r-- 1 carlroberts staff 16 Dec 10 00:37 spellings.txt
> -rw-r--r-- 1 carlroberts staff 795 Dec 10 00:37 stopwords.txt
> -rw-r--r-- 1 carlroberts staff 1148 Dec 10 00:37 synonyms.txt
>
>
> I am now getting this:
>
> [main] INFO org.apache.solr.core.SolrResourceLoader - new
> SolrResourceLoader for directory: '/Users/carlroberts/dev/solr-4.10.3/'
> [main] INFO org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/lib/commons-logging-1.2.jar'
> to classloader
> [main] INFO org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/lib/servlet-api.jar' to
> classloader
> [main] INFO org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/lib/slf4j-simple-1.7.5.jar'
> to classloader
> [main] INFO org.apache.solr.core.ConfigSolr - Loading container
> configuration from /Users/carlroberts/dev/solr-4.10.3/solr.xml
> [main] INFO org.apache.solr.core.CoreContainer - New CoreContainer
> 139145087
> [main] INFO org.apache.solr.core.CoreContainer - Loading cores into
> CoreContainer [instanceDir=/Users/carlroberts/dev/solr-4.10.3/]
> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory
> - Setting socketTimeout to: 0
> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory
> - Setting urlScheme to: null
> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory
> - Setting connTimeout to: 0
> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory
> - Setting maxConnectionsPerHost to: 20
> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory
> - Setting corePoolSize to: 0
> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory
> - Setting maximumPoolSize to: 2147483647
> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory
> - Setting maxThreadIdleTime to: 5
> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory
> - Setting sizeOfQueue to: -1
> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory
> - Setting fairnessPolicy to: false
> [main] INFO org.apache.solr.update.UpdateShardHandler - Creating
> UpdateShardHandler HTTP client with params:
> socketTimeout=0&connTimeout=0&retry=false
> [main] INFO org.apache.solr.logging.LogWatcher - SLF4J impl is
> org.slf4j.impl.SimpleLoggerFactory
> [main] INFO org.apache.solr.logging.LogWatcher - No LogWatcher configured
> [main] INFO org.apache.solr.core.CoreContainer - Host Name: null
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - new SolrResourceLoader for
> directory: '/Users/carlroberts/dev/solr-4.10.3/db/'
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrConfig -
> Adding specified lib dirs to ClassLoader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/apache-mime4j-core-0.7.2.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/apache-mime4j-dom-0.7.2.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/aspectjrt-1.6.11.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/bcmail-jdk15-1.45.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/bcprov-jdk15-1.45.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/boilerpipe-1.1.0.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/commons-compress-1.7.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/dom4j-1.6.1.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/fontbox-1.8.4.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/icu4j-53.1.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/isoparser-1.0-RC-1.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/jdom-1.0.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/jempbox-1.8.4.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/jhighlight-1.0.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/juniversalchardet-1.0.3.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/metadata-extractor-2.6.2.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/pdfbox-1.8.4.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/poi-3.10.1.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/poi-ooxml-3.10.1.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/poi-ooxml-schemas-3.10.1.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/poi-scratchpad-3.10.1.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/rome-0.9.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/tagsoup-1.2.1.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/tika-core-1.5.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/tika-parsers-1.5.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/tika-xmp-1.5.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/vorbis-java-core-0.1.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/vorbis-java-tika-0.1.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/xercesImpl-2.9.1.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/xmlbeans-2.6.0.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/xmpcore-5.1.2.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/xz-1.4.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/dist/solr-cell-4.10.3.jar' to
> classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/attributes-binder-1.2.1.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/carrot2-mini-3.9.0.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/hppc-0.5.2.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/jackson-core-asl-1.9.13.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/jackson-mapper-asl-1.9.13.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/mahout-collections-1.0.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/mahout-math-0.6.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/simple-xml-2.7.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/dist/solr-clustering-4.10.3.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/langid/lib/jsonic-1.2.7.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/langid/lib/langdetect-1.1-20120112.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/dist/solr-langid-4.10.3.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/velocity/lib/commons-beanutils-1.8.3.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/velocity/lib/commons-collections-3.2.1.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/velocity/lib/velocity-1.7.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/velocity/lib/velocity-tools-2.0.jar'
> to classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/dist/solr-velocity-4.10.3.jar' to
> classloader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.update.SolrIndexConfig - IndexWriter infoStream solr
> logging is enabled
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrConfig -
> Using Lucene MatchVersion: 4.10.3
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.Config -
> Loaded SolrConfig: solrconfig.xml
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.schema.IndexSchema
> - Reading Solr Schema from
> /Users/carlroberts/dev/solr-4.10.3/db/conf/schema.xml
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.schema.IndexSchema
> - [db] Schema name=example
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.schema.IndexSchema
> - unique key field: id
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.rest.RestManager -
> Registered ManagedResource impl
> org.apache.solr.rest.schema.analysis.ManagedWordSetResource for path
> /schema/analysis/stopwords/english
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.rest.RestManager -
> Registered ManagedResource impl
> org.apache.solr.rest.schema.analysis.ManagedSynonymFilterFactory$SynonymManager
> for path /schema/analysis/synonyms/english
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.schema.FileExchangeRateProvider - Reloading exchange
> rates from file currency.xml
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.schema.FileExchangeRateProvider - Reloading exchange
> rates from file currency.xml
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.CoreContainer
> - Creating SolrCore 'db' using configuration from instancedir
> /Users/carlroberts/dev/solr-4.10.3/db/
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrCore -
> solr.NRTCachingDirectoryFactory
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrCore -
> [db] Opening new SolrCore at /Users/carlroberts/dev/solr-4.10.3/db/,
> dataDir=/Users/carlroberts/dev/solr-4.10.3/db/data/
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.JmxMonitoredMap - No JMX servers found, not
> exposing Solr information with JMX.
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrCore -
> [db] Added SolrEventListener for newSearcher:
> org.apache.solr.core.QuerySenderListener{queries=[]}
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrCore -
> [db] Added SolrEventListener for firstSearcher:
> org.apache.solr.core.QuerySenderListener{queries=[{q=static
> firstSearcher warming in solrconfig.xml}]}
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.CachingDirectoryFactory - return new directory
> for /Users/carlroberts/dev/solr-4.10.3/db/data
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrCore - New
> index directory detected: old=null
> new=/Users/carlroberts/dev/solr-4.10.3/db/data/index/
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.CachingDirectoryFactory - return new directory
> for /Users/carlroberts/dev/solr-4.10.3/db/data/index
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrCore -
> created json: solr.JSONResponseWriter
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrCore -
> adding lazy queryResponseWriter: solr.VelocityResponseWriter
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrCore -
> created velocity: solr.VelocityResponseWriter
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrCore -
> created xslt: solr.XSLTResponseWriter
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.response.XSLTResponseWriter - xsltCacheLifetimeSeconds=5
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrCore - no
> updateRequestProcessorChain defined as default, creating implicit default
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.RequestHandlers - created /update:
> org.apache.solr.handler.UpdateRequestHandler
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.RequestHandlers - created /update/json:
> org.apache.solr.handler.UpdateRequestHandler
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.RequestHandlers - created /update/csv:
> org.apache.solr.handler.UpdateRequestHandler
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.RequestHandlers - created /update/json/docs:
> org.apache.solr.handler.UpdateRequestHandler
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.RequestHandlers - created /select: solr.SearchHandler
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.RequestHandlers - created /query: solr.SearchHandler
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.RequestHandlers - created /get:
> solr.RealTimeGetHandler
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.RequestHandlers - created /export: solr.SearchHandler
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.RequestHandlers - created /browse: solr.SearchHandler
> [coreLoadExecutor-5-thread-1] WARN
> org.apache.solr.core.RequestHandlers - Multiple requestHandler
> registered to the same name: /update ignoring:
> org.apache.solr.handler.UpdateRequestHandler
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.RequestHandlers - created /update:
> solr.UpdateRequestHandler
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.RequestHandlers - adding lazy requestHandler:
> solr.extraction.ExtractingRequestHandler
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.RequestHandlers - created /update/extract:
> solr.extraction.ExtractingRequestHandler
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.RequestHandlers - adding lazy requestHandler:
> solr.FieldAnalysisRequestHandler
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.RequestHandlers - created /analysis/field:
> solr.FieldAnalysisRequestHandler
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.RequestHandlers - adding lazy requestHandler:
> solr.DocumentAnalysisRequestHandler
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.RequestHandlers - created /analysis/document:
> solr.DocumentAnalysisRequestHandler
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.RequestHandlers - created /admin/:
> solr.admin.AdminHandlers
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.RequestHandlers - created /admin/ping:
> solr.PingRequestHandler
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.RequestHandlers - created /debug/dump:
> solr.DumpRequestHandler
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.RequestHandlers - created /replication:
> solr.ReplicationHandler
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.RequestHandlers - adding lazy requestHandler:
> solr.SearchHandler
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.RequestHandlers - created /spell: solr.SearchHandler
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.RequestHandlers - adding lazy requestHandler:
> solr.SearchHandler
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.RequestHandlers - created /tvrh: solr.SearchHandler
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.RequestHandlers - adding lazy requestHandler:
> solr.SearchHandler
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.RequestHandlers - created /terms: solr.SearchHandler
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.RequestHandlers - adding lazy requestHandler:
> solr.SearchHandler
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.core.RequestHandlers - created /elevate:
> solr.SearchHandler
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.handler.loader.XMLLoader - xsltCacheLifetimeSeconds=60
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.handler.loader.XMLLoader - xsltCacheLifetimeSeconds=60
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.handler.loader.XMLLoader - xsltCacheLifetimeSeconds=60
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.handler.loader.XMLLoader - xsltCacheLifetimeSeconds=60
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.handler.loader.XMLLoader - xsltCacheLifetimeSeconds=60
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrCore -
> Hard AutoCommit: if uncommited for 15000ms;
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrCore -
> Soft AutoCommit: disabled
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.update.LoggingInfoStream -
> [IFD][coreLoadExecutor-5-thread-1]: init: current segments file is
> "segments_3";
> deletionPolicy=org.apache.solr.core.IndexDeletionPolicyWrapper@c39a582
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.update.LoggingInfoStream -
> [IFD][coreLoadExecutor-5-thread-1]: init: load commit "segments_3"
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.update.LoggingInfoStream -
> [IFD][coreLoadExecutor-5-thread-1]: init: removing unreferenced file
> "_0.fnm"
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.update.LoggingInfoStream -
> [IFD][coreLoadExecutor-5-thread-1]: delete "_0.fnm"
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.update.LoggingInfoStream -
> [IFD][coreLoadExecutor-5-thread-1]: init: removing unreferenced file
> "_0_Lucene41_0.doc"
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.update.LoggingInfoStream -
> [IFD][coreLoadExecutor-5-thread-1]: delete "_0_Lucene41_0.doc"
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.update.LoggingInfoStream -
> [IFD][coreLoadExecutor-5-thread-1]: init: removing unreferenced file
> "_0_Lucene41_0.pos"
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.update.LoggingInfoStream -
> [IFD][coreLoadExecutor-5-thread-1]: delete "_0_Lucene41_0.pos"
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.update.LoggingInfoStream -
> [IFD][coreLoadExecutor-5-thread-1]: init: removing unreferenced file
> "_0.nvd"
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.update.LoggingInfoStream -
> [IFD][coreLoadExecutor-5-thread-1]: delete "_0.nvd"
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.update.LoggingInfoStream -
> [IFD][coreLoadExecutor-5-thread-1]: init: removing unreferenced file
> "_0.fdx"
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.update.LoggingInfoStream -
> [IFD][coreLoadExecutor-5-thread-1]: delete "_0.fdx"
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.update.LoggingInfoStream -
> [IFD][coreLoadExecutor-5-thread-1]: init: removing unreferenced file
> "_0.si"
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.update.LoggingInfoStream -
> [IFD][coreLoadExecutor-5-thread-1]: delete "_0.si"
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.update.LoggingInfoStream -
> [IFD][coreLoadExecutor-5-thread-1]: init: removing unreferenced file
> "_0.nvm"
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.update.LoggingInfoStream -
> [IFD][coreLoadExecutor-5-thread-1]: delete "_0.nvm"
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.update.LoggingInfoStream -
> [IFD][coreLoadExecutor-5-thread-1]: init: removing unreferenced file
> "_0_Lucene41_0.tim"
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.update.LoggingInfoStream -
> [IFD][coreLoadExecutor-5-thread-1]: delete "_0_Lucene41_0.tim"
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.update.LoggingInfoStream -
> [IFD][coreLoadExecutor-5-thread-1]: init: removing unreferenced file
> "_0_Lucene41_0.tip"
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.update.LoggingInfoStream -
> [IFD][coreLoadExecutor-5-thread-1]: delete "_0_Lucene41_0.tip"
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.update.LoggingInfoStream -
> [IFD][coreLoadExecutor-5-thread-1]: init: removing unreferenced file
> "_0.fdt"
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.update.LoggingInfoStream -
> [IFD][coreLoadExecutor-5-thread-1]: delete "_0.fdt"
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrCore -
> SolrDeletionPolicy.onInit: commits: num=1
>
> commit{dir=NRTCachingDirectory(MMapDirectory@/Users/carlroberts/dev/solr-4.10.3/db/data/index
> lockFactory=NativeFSLockFactory@/Users/carlroberts/dev/solr-4.10.3/db/data/index;
> maxCacheMB=48.0 maxMergeSizeMB=4.0),segFN=segments_3,generation=3}
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrCore -
> newest commit generation = 3
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.update.LoggingInfoStream -
> [IFD][coreLoadExecutor-5-thread-1]: now checkpoint "" [0 segments ;
> isCommit = false]
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.update.LoggingInfoStream -
> [IFD][coreLoadExecutor-5-thread-1]: 0 msec to checkpoint
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.update.LoggingInfoStream -
> [IW][coreLoadExecutor-5-thread-1]: init: create=false
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.update.LoggingInfoStream -
> [IW][coreLoadExecutor-5-thread-1]:
> dir=NRTCachingDirectory(MMapDirectory@/Users/carlroberts/dev/solr-4.10.3/db/data/index
> lockFactory=NativeFSLockFactory@/Users/carlroberts/dev/solr-4.10.3/db/data/index;
> maxCacheMB=48.0 maxMergeSizeMB=4.0)
> index=
> version=4.10.3
> matchVersion=4.10.3
> analyzer=null
> ramBufferSizeMB=100.0
> maxBufferedDocs=-1
> maxBufferedDeleteTerms=-1
> mergedSegmentWarmer=null
> readerTermsIndexDivisor=1
> termIndexInterval=32
> delPolicy=org.apache.solr.core.IndexDeletionPolicyWrapper
> commit=null
> openMode=APPEND
> similarity=org.apache.lucene.search.similarities.DefaultSimilarity
> mergeScheduler=ConcurrentMergeScheduler: maxThreadCount=1,
> maxMergeCount=2, mergeThreadPriority=-1
> default WRITE_LOCK_TIMEOUT=1000
> writeLockTimeout=1000
> codec=Lucene410
> infoStream=org.apache.solr.update.LoggingInfoStream
> mergePolicy=[TieredMergePolicy: maxMergeAtOnce=10,
> maxMergeAtOnceExplicit=30, maxMergedSegmentMB=5120.0,
> floorSegmentMB=2.0, forceMergeDeletesPctAllowed=10.0,
> segmentsPerTier=10.0, maxCFSSegmentSizeMB=8.796093022207999E12,
> noCFSRatio=0.0
> indexerThreadPool=org.apache.lucene.index.DocumentsWriterPerThreadPool@70db5d33
> readerPooling=false
> perThreadHardLimitMB=1945
> useCompoundFile=false
> checkIntegrityAtMerge=false
> writer=org.apache.lucene.util.SetOnce@51c3f927
>
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.update.LoggingInfoStream -
> [IW][coreLoadExecutor-5-thread-1]: flush at getReader
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.update.LoggingInfoStream -
> [DW][coreLoadExecutor-5-thread-1]: startFullFlush
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.update.LoggingInfoStream -
> [IW][coreLoadExecutor-5-thread-1]: apply all deletes during flush
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.update.LoggingInfoStream -
> [BD][coreLoadExecutor-5-thread-1]: prune sis=segments_3:
> minGen=9223372036854775807 packetCount=0
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.update.LoggingInfoStream -
> [IW][coreLoadExecutor-5-thread-1]: return reader version=4
> reader=StandardDirectoryReader(segments_3:4:nrt)
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.update.LoggingInfoStream -
> [DW][coreLoadExecutor-5-thread-1]: coreLoadExecutor-5-thread-1
> finishFullFlush success=true
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.update.LoggingInfoStream -
> [IW][coreLoadExecutor-5-thread-1]: getReader took 2 msec
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.search.SolrIndexSearcher - Opening
> Searcher@162f4910[db] main
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.rest.ManagedResourceStorage - File-based storage
> initialized to use dir: /Users/carlroberts/dev/solr-4.10.3/db/conf
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.rest.RestManager -
> Initializing RestManager with initArgs:
> {storageDir=/Users/carlroberts/dev/solr-4.10.3/db/conf}
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.rest.ManagedResourceStorage - Reading
> _rest_managed.json using
> file:dir=/Users/carlroberts/dev/solr-4.10.3/db/conf
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.rest.ManagedResourceStorage - Loaded LinkedHashMap at
> path _rest_managed.json using
> file:dir=/Users/carlroberts/dev/solr-4.10.3/db/conf
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.rest.ManagedResource - Loaded initArgs {} for
> /rest/managed
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.rest.RestManager -
> Initializing 2 registered ManagedResources
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.rest.ManagedResourceStorage - Reading
> _schema_analysis_stopwords_english.json using
> file:dir=/Users/carlroberts/dev/solr-4.10.3/db/conf
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.rest.ManagedResourceStorage - Loaded LinkedHashMap at
> path _schema_analysis_stopwords_english.json using
> file:dir=/Users/carlroberts/dev/solr-4.10.3/db/conf
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.rest.ManagedResource - Loaded initArgs
> {ignoreCase=false} for /schema/analysis/stopwords/english
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.rest.ManagedResource - Loaded 0 words for
> /schema/analysis/stopwords/english
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.rest.ManagedResource - Notified 1 observers of
> /schema/analysis/stopwords/english
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.rest.ManagedResourceStorage - Reading
> _schema_analysis_synonyms_english.json using
> file:dir=/Users/carlroberts/dev/solr-4.10.3/db/conf
> [coreLoadExecutor-5-thread-1] WARN
> org.apache.solr.rest.ManagedResource - No stored data found for
> /schema/analysis/synonyms/english
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.rest.ManagedResource - Loaded 0 synonym mappings for
> /schema/analysis/synonyms/english
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.rest.ManagedResource - Notified 1 observers of
> /schema/analysis/synonyms/english
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.handler.component.SpellCheckComponent - Initializing
> spell checkers
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.spelling.DirectSolrSpellChecker - init:
> {name=default,field=text,classname=solr.DirectSolrSpellChecker,distanceMeasure=internal,accuracy=0.5,maxEdits=2,minPrefix=1,maxInspections=5,minQueryLength=4,maxQueryFrequency=0.01}
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.handler.component.SpellCheckComponent - No
> queryConverter defined, using default converter
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.handler.component.QueryElevationComponent - Loading
> QueryElevation from:
> /Users/carlroberts/dev/solr-4.10.3/db/conf/elevate.xml
> [coreLoadExecutor-5-thread-1] INFO
> org.apache.solr.handler.ReplicationHandler - Commits will be reserved
> for 10000
> [searcherExecutor-6-thread-1] INFO org.apache.solr.core.SolrCore -
> QuerySenderListener sending requests to Searcher@162f4910[db]
> main{StandardDirectoryReader(segments_3:4:nrt)}
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.CoreContainer
> - registering core: db
> default core name=db
> solr home=/Users/carlroberts/dev/solr-4.10.3/
> db is loaded=true
> core init failures={}
> cores=[org.apache.solr.core.SolrCore@5d89ced4]
> [searcherExecutor-6-thread-1] ERROR org.apache.solr.core.SolrCore -
> org.apache.solr.common.SolrException: undefined field text
> at
> org.apache.solr.schema.IndexSchema.getDynamicFieldType(IndexSchema.java:1269)
> at
> org.apache.solr.schema.IndexSchema$SolrQueryAnalyzer.getWrappedAnalyzer(IndexSchema.java:434)
> at
> org.apache.lucene.analysis.DelegatingAnalyzerWrapper$DelegatingReuseStrategy.getReusableComponents(DelegatingAnalyzerWrapper.java:74)
> at org.apache.lucene.analysis.Analyzer.tokenStream(Analyzer.java:175)
> at
> org.apache.lucene.util.QueryBuilder.createFieldQuery(QueryBuilder.java:207)
> at
> org.apache.solr.parser.SolrQueryParserBase.newFieldQuery(SolrQueryParserBase.java:374)
> at
> org.apache.solr.parser.SolrQueryParserBase.getFieldQuery(SolrQueryParserBase.java:742)
> at
> org.apache.solr.parser.SolrQueryParserBase.handleBareTokenQuery(SolrQueryParserBase.java:541)
> at org.apache.solr.parser.QueryParser.Term(QueryParser.java:299)
> at org.apache.solr.parser.QueryParser.Clause(QueryParser.java:185)
> at org.apache.solr.parser.QueryParser.Query(QueryParser.java:107)
> at
> org.apache.solr.parser.QueryParser.TopLevelQuery(QueryParser.java:96)
> at
> org.apache.solr.parser.SolrQueryParserBase.parse(SolrQueryParserBase.java:151)
> at org.apache.solr.search.LuceneQParser.parse(LuceneQParser.java:50)
> at org.apache.solr.search.QParser.getQuery(QParser.java:141)
> at
> org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:147)
> at
> org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:197)
> at
> org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)
> at org.apache.solr.core.SolrCore.execute(SolrCore.java:1976)
> at
> org.apache.solr.core.QuerySenderListener.newSearcher(QuerySenderListener.java:64)
> at org.apache.solr.core.SolrCore$5.call(SolrCore.java:1748)
> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
>
> [searcherExecutor-6-thread-1] INFO org.apache.solr.core.SolrCore -
> [db] webapp=null path=null
> params={event=firstSearcher&q=static+firstSearcher+warming+in+solrconfig.xml&distrib=false}
> status=400 QTime=21
> [searcherExecutor-6-thread-1] INFO org.apache.solr.core.SolrCore -
> QuerySenderListener done.
> [searcherExecutor-6-thread-1] INFO
> org.apache.solr.handler.component.SpellCheckComponent - Loading spell
> index for spellchecker: default
> [searcherExecutor-6-thread-1] INFO
> org.apache.solr.handler.component.SpellCheckComponent - Loading spell
> index for spellchecker: wordbreak
> [searcherExecutor-6-thread-1] INFO org.apache.solr.core.SolrCore -
> [db] Registered new searcher Searcher@162f4910[db]
> main{StandardDirectoryReader(segments_3:4:nrt)}
> [main] INFO org.apache.solr.update.processor.LogUpdateProcessor - [db]
> webapp=null path=/update params={} {add=[id1, id2]} 0 63
> [main] INFO org.apache.solr.update.UpdateHandler - start
> commit{,optimize=false,openSearcher=true,waitSearcher=true,expungeDeletes=false,softCommit=false,prepareCommit=false}
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
> commit: start
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
> commit: enter lock
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
> commit: now prepare
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
> prepareCommit: flush
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
> index before flush
> [main] INFO org.apache.solr.update.LoggingInfoStream - [DW][main]:
> startFullFlush
> [main] INFO org.apache.solr.update.LoggingInfoStream - [DW][main]:
> anyChanges? numDocsInRam=2 deletes=true hasTickets:false
> pendingChangesInFullFlush: false
> [main] INFO org.apache.solr.update.LoggingInfoStream - [DWFC][main]:
> addFlushableState DocumentsWriterPerThread [pendingDeletes=gen=0 1
> deleted terms (unique count=1) bytesUsed=167, segment=_1,
> aborting=false, numDocsInRAM=2, deleteQueue=DWDQ: [ generation: 1 ]]
> [main] INFO org.apache.solr.update.LoggingInfoStream - [DWPT][main]:
> flush postings as segment _1 numDocs=2
> [main] INFO org.apache.solr.update.LoggingInfoStream - [DWPT][main]:
> new segment has 0 deleted docs
> [main] INFO org.apache.solr.update.LoggingInfoStream - [DWPT][main]:
> new segment has no vectors; norms; no docValues; prox; freqs
> [main] INFO org.apache.solr.update.LoggingInfoStream - [DWPT][main]:
> flushedFiles=[_1_Lucene41_0.pos, _1.nvm, _1.fdx, _1_Lucene41_0.doc,
> _1.fdt, _1_Lucene41_0.tim, _1.nvd, _1_Lucene41_0.tip, _1.fnm]
> [main] INFO org.apache.solr.update.LoggingInfoStream - [DWPT][main]:
> flushed codec=Lucene410
> [main] INFO org.apache.solr.update.LoggingInfoStream - [DWPT][main]:
> flushed: segment=_1 ramUsed=0.071 MB newFlushedSize(includes
> docstores)=0.001 MB docs/MB=1,987.822
> [main] INFO org.apache.solr.update.LoggingInfoStream - [DW][main]:
> publishFlushedSegment seg-private updates=null
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
> publishFlushedSegment
> [main] INFO org.apache.solr.update.LoggingInfoStream - [BD][main]:
> push deletes 2 deleted terms (unique count=2) bytesUsed=1056 delGen=2
> packetCount=1 totBytesUsed=1056
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
> publish sets newSegment delGen=3 seg=_1(4.10.3):C2
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IFD][main]:
> now checkpoint "_1(4.10.3):C2" [1 segments ; isCommit = false]
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IFD][main]: 0
> msec to checkpoint
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
> apply all deletes during flush
> [main] INFO org.apache.solr.update.LoggingInfoStream - [BD][main]:
> applyDeletes: infos=[_1(4.10.3):C2] packetCount=1
> [main] INFO org.apache.solr.update.LoggingInfoStream - [BD][main]:
> applyDeletes took 0 msec
> [main] INFO org.apache.solr.update.LoggingInfoStream - [BD][main]:
> prune sis=segments_3: _1(4.10.3):C2 minGen=4 packetCount=1
> [main] INFO org.apache.solr.update.LoggingInfoStream - [BD][main]:
> pruneDeletes: prune 1 packets; 0 packets remain
> [main] INFO org.apache.solr.update.LoggingInfoStream - [DW][main]:
> main finishFullFlush success=true
> [main] INFO org.apache.solr.update.LoggingInfoStream - [TMP][main]:
> findMerges: 1 segments
> [main] INFO org.apache.solr.update.LoggingInfoStream - [TMP][main]:
> seg=_1(4.10.3):C2 size=0.001 MB [floored]
> [main] INFO org.apache.solr.update.LoggingInfoStream - [TMP][main]:
> allowedSegmentCount=1 vs count=1 (eligible count=1) tooBigCount=0
> [main] INFO org.apache.solr.update.LoggingInfoStream - [CMS][main]:
> now merge
> [main] INFO org.apache.solr.update.LoggingInfoStream - [CMS][main]:
> index: _1(4.10.3):C2
> [main] INFO org.apache.solr.update.LoggingInfoStream - [CMS][main]:
> no more merges pending; now return
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
> startCommit(): start
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
> startCommit index=_1(4.10.3):C2 changeCount=3
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
> done all syncs: [_1.fdx, _1.nvm, _1_Lucene41_0.pos, _1_Lucene41_0.doc,
> _1.fdt, _1.si, _1_Lucene41_0.tim, _1.nvd, _1_Lucene41_0.tip, _1.fnm]
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
> commit: pendingCommit != null
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IFD][main]:
> now checkpoint "_1(4.10.3):C2" [1 segments ; isCommit = true]
> [main] INFO org.apache.solr.core.SolrCore -
> SolrDeletionPolicy.onCommit: commits: num=2
>
> commit{dir=NRTCachingDirectory(MMapDirectory@/Users/carlroberts/dev/solr-4.10.3/db/data/index
> lockFactory=NativeFSLockFactory@/Users/carlroberts/dev/solr-4.10.3/db/data/index;
> maxCacheMB=48.0 maxMergeSizeMB=4.0),segFN=segments_3,generation=3}
>
> commit{dir=NRTCachingDirectory(MMapDirectory@/Users/carlroberts/dev/solr-4.10.3/db/data/index
> lockFactory=NativeFSLockFactory@/Users/carlroberts/dev/solr-4.10.3/db/data/index;
> maxCacheMB=48.0 maxMergeSizeMB=4.0),segFN=segments_4,generation=4}
> [main] INFO org.apache.solr.core.SolrCore - newest commit generation = 4
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IFD][main]:
> deleteCommits: now decRef commit "segments_3"
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IFD][main]:
> delete "segments_3"
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IFD][main]: 0
> msec to checkpoint
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
> commit: wrote segments file "segments_4"
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
> commit: took 47.8 msec
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
> commit: done
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
> nrtIsCurrent: infoVersion matches: false; DW changes: false; BD
> changes: false
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
> flush at getReader
> [main] INFO org.apache.solr.update.LoggingInfoStream - [DW][main]:
> startFullFlush
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
> apply all deletes during flush
> [main] INFO org.apache.solr.update.LoggingInfoStream - [BD][main]:
> applyDeletes: no deletes; skipping
> [main] INFO org.apache.solr.update.LoggingInfoStream - [BD][main]:
> prune sis=segments_3: _1(4.10.3):C2 minGen=4 packetCount=0
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
> return reader version=6
> reader=StandardDirectoryReader(segments_3:6:nrt _1(4.10.3):C2)
> [main] INFO org.apache.solr.update.LoggingInfoStream - [DW][main]:
> main finishFullFlush success=true
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
> getReader took 13 msec
> [main] INFO org.apache.solr.search.SolrIndexSearcher - Opening
> Searcher@7a0f9651[db] main
> [main] INFO org.apache.solr.update.UpdateHandler - end_commit_flush
> [searcherExecutor-6-thread-1] INFO org.apache.solr.core.SolrCore -
> QuerySenderListener sending requests to Searcher@7a0f9651[db]
> main{StandardDirectoryReader(segments_3:6:nrt _1(4.10.3):C2)}
> [searcherExecutor-6-thread-1] INFO org.apache.solr.core.SolrCore -
> QuerySenderListener done.
> [searcherExecutor-6-thread-1] INFO org.apache.solr.core.SolrCore -
> [db] Registered new searcher Searcher@7a0f9651[db]
> main{StandardDirectoryReader(segments_3:6:nrt _1(4.10.3):C2)}
> [main] INFO org.apache.solr.update.processor.LogUpdateProcessor - [db]
> webapp=null path=/update
> params={commit=true&softCommit=false&waitSearcher=true} {commit=} 0 63
> [main] INFO org.apache.solr.core.SolrCore - [db] REMOVING ALL
> DOCUMENTS FROM INDEX
> [main] INFO org.apache.solr.update.LoggingInfoStream - [DW][main]:
> lockAndAbortAll
> [main] INFO org.apache.solr.update.LoggingInfoStream - [DW][main]:
> finished lockAndAbortAll success=true
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]: all
> running merges have aborted
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IFD][main]:
> now checkpoint "" [0 segments ; isCommit = false]
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IFD][main]: 0
> msec to checkpoint
> [main] INFO org.apache.solr.update.LoggingInfoStream - [DW][main]:
> unlockAll
> [main] INFO org.apache.solr.update.processor.LogUpdateProcessor - [db]
> webapp=null path=/update params={} {deleteByQuery=*:*} 0 1
> [main] INFO org.apache.solr.core.CoreContainer - Shutting down
> CoreContainer instance=139145087
> [main] INFO org.apache.solr.core.SolrCore - [db] CLOSING SolrCore
> org.apache.solr.core.SolrCore@5d89ced4
> [main] INFO org.apache.solr.update.UpdateHandler - closing
> DirectUpdateHandler2{commits=1,autocommit
> maxTime=15000ms,autocommits=0,soft
> autocommits=0,optimizes=0,rollbacks=0,expungeDeletes=0,docsPending=0,adds=0,deletesById=0,deletesByQuery=1,errors=0,cumulative_adds=2,cumulative_deletesById=0,cumulative_deletesByQuery=1,cumulative_errors=0}
> [main] INFO org.apache.solr.update.SolrCoreState - Closing SolrCoreState
> [main] INFO org.apache.solr.update.DefaultSolrCoreState -
> SolrCoreState ref count has reached 0 - closing IndexWriter
> [main] INFO org.apache.solr.update.DefaultSolrCoreState - closing
> IndexWriter with IndexWriterCloser
> [main] INFO org.apache.solr.update.LoggingInfoStream - [CMS][main]:
> now merge
> [main] INFO org.apache.solr.update.LoggingInfoStream - [CMS][main]:
> index:
> [main] INFO org.apache.solr.update.LoggingInfoStream - [CMS][main]:
> no more merges pending; now return
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
> waitForMerges
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
> waitForMerges done
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]: now
> flush at close
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
> start flush: applyAllDeletes=true
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
> index before flush
> [main] INFO org.apache.solr.update.LoggingInfoStream - [DW][main]:
> startFullFlush
> [main] INFO org.apache.solr.update.LoggingInfoStream - [DW][main]:
> main finishFullFlush success=true
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
> apply all deletes during flush
> [main] INFO org.apache.solr.update.LoggingInfoStream - [BD][main]:
> prune sis=segments_3: minGen=9223372036854775807 packetCount=0
> [main] INFO org.apache.solr.update.LoggingInfoStream - [CMS][main]:
> now merge
> [main] INFO org.apache.solr.update.LoggingInfoStream - [CMS][main]:
> index:
> [main] INFO org.apache.solr.update.LoggingInfoStream - [CMS][main]:
> no more merges pending; now return
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
> waitForMerges
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
> waitForMerges done
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
> commit: start
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
> commit: enter lock
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
> commit: now prepare
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
> prepareCommit: flush
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
> index before flush
> [main] INFO org.apache.solr.update.LoggingInfoStream - [DW][main]:
> startFullFlush
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
> apply all deletes during flush
> [main] INFO org.apache.solr.update.LoggingInfoStream - [BD][main]:
> prune sis=segments_3: minGen=9223372036854775807 packetCount=0
> [main] INFO org.apache.solr.update.LoggingInfoStream - [DW][main]:
> main finishFullFlush success=true
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
> startCommit(): start
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
> startCommit index= changeCount=4
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
> done all syncs: []
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
> commit: pendingCommit != null
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IFD][main]:
> now checkpoint "" [0 segments ; isCommit = true]
> [main] INFO org.apache.solr.core.SolrCore -
> SolrDeletionPolicy.onCommit: commits: num=2
>
> commit{dir=NRTCachingDirectory(MMapDirectory@/Users/carlroberts/dev/solr-4.10.3/db/data/index
> lockFactory=NativeFSLockFactory@/Users/carlroberts/dev/solr-4.10.3/db/data/index;
> maxCacheMB=48.0 maxMergeSizeMB=4.0),segFN=segments_4,generation=4}
>
> commit{dir=NRTCachingDirectory(MMapDirectory@/Users/carlroberts/dev/solr-4.10.3/db/data/index
> lockFactory=NativeFSLockFactory@/Users/carlroberts/dev/solr-4.10.3/db/data/index;
> maxCacheMB=48.0 maxMergeSizeMB=4.0),segFN=segments_5,generation=5}
> [main] INFO org.apache.solr.core.SolrCore - newest commit generation = 5
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IFD][main]:
> deleteCommits: now decRef commit "segments_4"
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IFD][main]:
> delete "segments_4"
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IFD][main]: 0
> msec to checkpoint
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
> commit: wrote segments file "segments_5"
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
> commit: took 5.4 msec
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
> commit: done
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
> rollback
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]: all
> running merges have aborted
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
> rollback: done finish merges
> [main] INFO org.apache.solr.update.LoggingInfoStream - [DW][main]: abort
> [main] INFO org.apache.solr.update.LoggingInfoStream - [DW][main]:
> done abort; abortedFiles=[] success=true
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
> rollback: infos=
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IFD][main]:
> now checkpoint "" [0 segments ; isCommit = false]
> [main] INFO org.apache.solr.update.LoggingInfoStream - [IFD][main]: 0
> msec to checkpoint
> [main] INFO org.apache.solr.core.SolrCore - [db] Closing main searcher
> on request.
> [main] INFO org.apache.solr.core.CachingDirectoryFactory - Closing
> NRTCachingDirectoryFactory - 2 directories currently being tracked
> [main] INFO org.apache.solr.core.CachingDirectoryFactory - looking to
> close /Users/carlroberts/dev/solr-4.10.3/db/data/index
> [CachedDir<<refCount=0;path=/Users/carlroberts/dev/solr-4.10.3/db/data/index;done=false>>]
> [main] INFO org.apache.solr.core.CachingDirectoryFactory - Closing
> directory: /Users/carlroberts/dev/solr-4.10.3/db/data/index
> [main] INFO org.apache.solr.core.CachingDirectoryFactory - looking to
> close /Users/carlroberts/dev/solr-4.10.3/db/data
> [CachedDir<<refCount=0;path=/Users/carlroberts/dev/solr-4.10.3/db/data;done=false>>]
> [main] INFO org.apache.solr.core.CachingDirectoryFactory - Closing
> directory: /Users/carlroberts/dev/solr-4.10.3/db/data
>
> On 1/21/15, 8:28 PM, Carl Roberts wrote:
>> Ah - OK - let me try that. BTW - I applied the fix from the bug
>> link you gave me to log the errors and I am now at least getting the
>> actual errors:
>>
>> *default core name=db
>> solr home=/Users/carlroberts/dev/solr-4.10.3/
>> db is loaded=false
>> core init
>> failures={db=org.apache.solr.core.CoreContainer$CoreLoadFailure@4d351f9b}
>> cores=[]
>> Exception in thread "main" org.apache.solr.common.SolrException:
>> SolrCore 'db' is not available due to init failure: JVM Error
>> creating core [db]: org/apache/lucene/queries/function/ValueSource
>> at org.apache.solr.core.CoreContainer.getCore(CoreContainer.java:749)
>> at
>> org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:110)
>> at
>> org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:124)
>> at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:68)
>> at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:54)
>> at solr.Test.main(Test.java:38)
>> Caused by: org.apache.solr.common.SolrException: JVM Error creating
>> core [db]: org/apache/lucene/queries/function/ValueSource
>> at org.apache.solr.core.CoreContainer.create(CoreContainer.java:508)
>> at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:255)
>> at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:249)
>> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>> at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>> at java.lang.Thread.run(Thread.java:745)
>> Caused by: java.lang.NoClassDefFoundError:
>> org/apache/lucene/queries/function/ValueSource
>> at java.lang.Class.forName0(Native Method)
>> at java.lang.Class.forName(Class.java:274)
>> at
>> org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:484)
>> at
>> org.apache.solr.core.SolrResourceLoader.newInstance(SolrResourceLoader.java:521)
>> at
>> org.apache.solr.core.SolrResourceLoader.newInstance(SolrResourceLoader.java:517)
>> at
>> org.apache.solr.schema.FieldTypePluginLoader.create(FieldTypePluginLoader.java:81)
>> at
>> org.apache.solr.schema.FieldTypePluginLoader.create(FieldTypePluginLoader.java:43)
>> at
>> org.apache.solr.util.plugin.AbstractPluginLoader.load(AbstractPluginLoader.java:151)
>> at
>> org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:486)
>> at org.apache.solr.schema.IndexSchema.<init>(IndexSchema.java:166)
>> at
>> org.apache.solr.schema.IndexSchemaFactory.create(IndexSchemaFactory.java:55)
>> at
>> org.apache.solr.schema.IndexSchemaFactory.buildIndexSchema(IndexSchemaFactory.java:69)
>> at
>> org.apache.solr.core.ConfigSetService.createIndexSchema(ConfigSetService.java:90)
>> at
>> org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:62)
>> at org.apache.solr.core.CoreContainer.create(CoreContainer.java:489)
>> ... 6 more
>> Caused by: java.lang.ClassNotFoundException:
>> org.apache.lucene.queries.function.ValueSource
>> at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
>> at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
>> ... 21 more
>> *
>> On 1/21/15, 7:32 PM, Shawn Heisey wrote:
>>> On 1/21/2015 5:16 PM, Carl Roberts wrote:
>>>> BTW - it seems that is very hard to get started with the Embedded
>>>> server. The doc is out of date. The code seems to be untested and buggy.
>>>>
>>>> On 1/21/15, 7:15 PM, Carl Roberts wrote:
>>>>> Hmmm....It looks like FutureTask is calling setException(Throwable t)
>>>>> with this exception which is not making it to the console.
>>>>>
>>>>> What I don't understand is why it is throwing that exception. I made
>>>>> sure that I added lucene-queries-4.10.3.jar file to the classpath by
>>>>> adding it to the solr home directory. See the new tracing:
>>> I'm pretty sure that all the lucene jars need to be available *before*
>>> Solr reaches the point in the log that you have quoted, where it adds
>>> jars from ${solr.solr.home}/lib. This would be the same location where
>>> the solrj and solr-core jars live. The only kind of jars that should be
>>> in the solr home lib directory are extra jars for extra features that
>>> you might specify in schema.xml (or some places in solrconfig.xml), like
>>> the ICU analysis jars, tika, mysql, etc.
>>>
>>> Thanks,
>>> Shawn
>>>
>>
>
Re: Errors using the Embedded Solar Server
Posted by Carl Roberts <ca...@gmail.com>.
Hi Shawn,
Many thanks for all your help. Moving the lucene JARs from
solr.solr.home/lib to the same classpath directory as the solr JARs plus
adding a bunch more dependency JAR files and most of the files from the
collection1/conf directory - these ones to be exact, has me a lot closer
to my goal:
rw-r--r-- 1 carlroberts staff 38 Jan 21 20:41 _rest_managed.json
-rw-r--r-- 1 carlroberts staff 56 Jan 21 20:41
_schema_analysis_stopwords_english.json
-rw-r--r-- 1 carlroberts staff 4041 Dec 10 00:37 currency.xml
-rw-r--r-- 1 carlroberts staff 1386 Dec 10 00:37 elevate.xml
drwxr-xr-x 41 carlroberts staff 1394 Dec 10 00:37 lang
-rw-r--r-- 1 carlroberts staff 894 Dec 10 00:37 protwords.txt
-rw-r--r--@ 1 carlroberts staff 62063 Jan 21 13:02 schema.xml
-rw-r--r--@ 1 carlroberts staff 76821 Jan 21 13:03 solrconfig.xml
-rw-r--r-- 1 carlroberts staff 16 Dec 10 00:37 spellings.txt
-rw-r--r-- 1 carlroberts staff 795 Dec 10 00:37 stopwords.txt
-rw-r--r-- 1 carlroberts staff 1148 Dec 10 00:37 synonyms.txt
I am now getting this:
[main] INFO org.apache.solr.core.SolrResourceLoader - new
SolrResourceLoader for directory: '/Users/carlroberts/dev/solr-4.10.3/'
[main] INFO org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/lib/commons-logging-1.2.jar' to
classloader
[main] INFO org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/lib/servlet-api.jar' to classloader
[main] INFO org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/lib/slf4j-simple-1.7.5.jar' to
classloader
[main] INFO org.apache.solr.core.ConfigSolr - Loading container
configuration from /Users/carlroberts/dev/solr-4.10.3/solr.xml
[main] INFO org.apache.solr.core.CoreContainer - New CoreContainer 139145087
[main] INFO org.apache.solr.core.CoreContainer - Loading cores into
CoreContainer [instanceDir=/Users/carlroberts/dev/solr-4.10.3/]
[main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory -
Setting socketTimeout to: 0
[main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory -
Setting urlScheme to: null
[main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory -
Setting connTimeout to: 0
[main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory -
Setting maxConnectionsPerHost to: 20
[main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory -
Setting corePoolSize to: 0
[main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory -
Setting maximumPoolSize to: 2147483647
[main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory -
Setting maxThreadIdleTime to: 5
[main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory -
Setting sizeOfQueue to: -1
[main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory -
Setting fairnessPolicy to: false
[main] INFO org.apache.solr.update.UpdateShardHandler - Creating
UpdateShardHandler HTTP client with params:
socketTimeout=0&connTimeout=0&retry=false
[main] INFO org.apache.solr.logging.LogWatcher - SLF4J impl is
org.slf4j.impl.SimpleLoggerFactory
[main] INFO org.apache.solr.logging.LogWatcher - No LogWatcher configured
[main] INFO org.apache.solr.core.CoreContainer - Host Name: null
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - new SolrResourceLoader for
directory: '/Users/carlroberts/dev/solr-4.10.3/db/'
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrConfig -
Adding specified lib dirs to ClassLoader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/apache-mime4j-core-0.7.2.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/apache-mime4j-dom-0.7.2.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/aspectjrt-1.6.11.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/bcmail-jdk15-1.45.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/bcprov-jdk15-1.45.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/boilerpipe-1.1.0.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/commons-compress-1.7.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/dom4j-1.6.1.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/fontbox-1.8.4.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/icu4j-53.1.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/isoparser-1.0-RC-1.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/jdom-1.0.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/jempbox-1.8.4.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/jhighlight-1.0.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/juniversalchardet-1.0.3.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/metadata-extractor-2.6.2.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/pdfbox-1.8.4.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/poi-3.10.1.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/poi-ooxml-3.10.1.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/poi-ooxml-schemas-3.10.1.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/poi-scratchpad-3.10.1.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/rome-0.9.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/tagsoup-1.2.1.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/tika-core-1.5.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/tika-parsers-1.5.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/tika-xmp-1.5.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/vorbis-java-core-0.1.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/vorbis-java-tika-0.1.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/xercesImpl-2.9.1.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/xmlbeans-2.6.0.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/xmpcore-5.1.2.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/xz-1.4.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/dist/solr-cell-4.10.3.jar' to
classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/attributes-binder-1.2.1.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/carrot2-mini-3.9.0.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/hppc-0.5.2.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/jackson-core-asl-1.9.13.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/jackson-mapper-asl-1.9.13.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/mahout-collections-1.0.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/mahout-math-0.6.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/simple-xml-2.7.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/dist/solr-clustering-4.10.3.jar' to
classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/langid/lib/jsonic-1.2.7.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/langid/lib/langdetect-1.1-20120112.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/dist/solr-langid-4.10.3.jar' to
classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/velocity/lib/commons-beanutils-1.8.3.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/velocity/lib/commons-collections-3.2.1.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/velocity/lib/velocity-1.7.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/velocity/lib/velocity-tools-2.0.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/dist/solr-velocity-4.10.3.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.update.SolrIndexConfig - IndexWriter infoStream solr
logging is enabled
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrConfig -
Using Lucene MatchVersion: 4.10.3
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.Config - Loaded
SolrConfig: solrconfig.xml
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.schema.IndexSchema -
Reading Solr Schema from
/Users/carlroberts/dev/solr-4.10.3/db/conf/schema.xml
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.schema.IndexSchema -
[db] Schema name=example
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.schema.IndexSchema -
unique key field: id
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.rest.RestManager -
Registered ManagedResource impl
org.apache.solr.rest.schema.analysis.ManagedWordSetResource for path
/schema/analysis/stopwords/english
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.rest.RestManager -
Registered ManagedResource impl
org.apache.solr.rest.schema.analysis.ManagedSynonymFilterFactory$SynonymManager
for path /schema/analysis/synonyms/english
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.schema.FileExchangeRateProvider - Reloading exchange
rates from file currency.xml
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.schema.FileExchangeRateProvider - Reloading exchange
rates from file currency.xml
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.CoreContainer -
Creating SolrCore 'db' using configuration from instancedir
/Users/carlroberts/dev/solr-4.10.3/db/
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrCore -
solr.NRTCachingDirectoryFactory
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrCore - [db]
Opening new SolrCore at /Users/carlroberts/dev/solr-4.10.3/db/,
dataDir=/Users/carlroberts/dev/solr-4.10.3/db/data/
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.JmxMonitoredMap
- No JMX servers found, not exposing Solr information with JMX.
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrCore - [db]
Added SolrEventListener for newSearcher:
org.apache.solr.core.QuerySenderListener{queries=[]}
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrCore - [db]
Added SolrEventListener for firstSearcher:
org.apache.solr.core.QuerySenderListener{queries=[{q=static
firstSearcher warming in solrconfig.xml}]}
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.CachingDirectoryFactory - return new directory for
/Users/carlroberts/dev/solr-4.10.3/db/data
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrCore - New
index directory detected: old=null
new=/Users/carlroberts/dev/solr-4.10.3/db/data/index/
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.CachingDirectoryFactory - return new directory for
/Users/carlroberts/dev/solr-4.10.3/db/data/index
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrCore -
created json: solr.JSONResponseWriter
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrCore -
adding lazy queryResponseWriter: solr.VelocityResponseWriter
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrCore -
created velocity: solr.VelocityResponseWriter
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrCore -
created xslt: solr.XSLTResponseWriter
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.response.XSLTResponseWriter - xsltCacheLifetimeSeconds=5
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrCore - no
updateRequestProcessorChain defined as default, creating implicit default
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers
- created /update: org.apache.solr.handler.UpdateRequestHandler
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers
- created /update/json: org.apache.solr.handler.UpdateRequestHandler
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers
- created /update/csv: org.apache.solr.handler.UpdateRequestHandler
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers
- created /update/json/docs: org.apache.solr.handler.UpdateRequestHandler
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers
- created /select: solr.SearchHandler
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers
- created /query: solr.SearchHandler
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers
- created /get: solr.RealTimeGetHandler
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers
- created /export: solr.SearchHandler
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers
- created /browse: solr.SearchHandler
[coreLoadExecutor-5-thread-1] WARN org.apache.solr.core.RequestHandlers
- Multiple requestHandler registered to the same name: /update ignoring:
org.apache.solr.handler.UpdateRequestHandler
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers
- created /update: solr.UpdateRequestHandler
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers
- adding lazy requestHandler: solr.extraction.ExtractingRequestHandler
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers
- created /update/extract: solr.extraction.ExtractingRequestHandler
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers
- adding lazy requestHandler: solr.FieldAnalysisRequestHandler
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers
- created /analysis/field: solr.FieldAnalysisRequestHandler
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers
- adding lazy requestHandler: solr.DocumentAnalysisRequestHandler
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers
- created /analysis/document: solr.DocumentAnalysisRequestHandler
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers
- created /admin/: solr.admin.AdminHandlers
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers
- created /admin/ping: solr.PingRequestHandler
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers
- created /debug/dump: solr.DumpRequestHandler
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers
- created /replication: solr.ReplicationHandler
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers
- adding lazy requestHandler: solr.SearchHandler
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers
- created /spell: solr.SearchHandler
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers
- adding lazy requestHandler: solr.SearchHandler
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers
- created /tvrh: solr.SearchHandler
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers
- adding lazy requestHandler: solr.SearchHandler
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers
- created /terms: solr.SearchHandler
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers
- adding lazy requestHandler: solr.SearchHandler
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers
- created /elevate: solr.SearchHandler
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.handler.loader.XMLLoader - xsltCacheLifetimeSeconds=60
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.handler.loader.XMLLoader - xsltCacheLifetimeSeconds=60
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.handler.loader.XMLLoader - xsltCacheLifetimeSeconds=60
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.handler.loader.XMLLoader - xsltCacheLifetimeSeconds=60
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.handler.loader.XMLLoader - xsltCacheLifetimeSeconds=60
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrCore - Hard
AutoCommit: if uncommited for 15000ms;
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrCore - Soft
AutoCommit: disabled
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.update.LoggingInfoStream -
[IFD][coreLoadExecutor-5-thread-1]: init: current segments file is
"segments_3";
deletionPolicy=org.apache.solr.core.IndexDeletionPolicyWrapper@c39a582
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.update.LoggingInfoStream -
[IFD][coreLoadExecutor-5-thread-1]: init: load commit "segments_3"
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.update.LoggingInfoStream -
[IFD][coreLoadExecutor-5-thread-1]: init: removing unreferenced file
"_0.fnm"
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.update.LoggingInfoStream -
[IFD][coreLoadExecutor-5-thread-1]: delete "_0.fnm"
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.update.LoggingInfoStream -
[IFD][coreLoadExecutor-5-thread-1]: init: removing unreferenced file
"_0_Lucene41_0.doc"
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.update.LoggingInfoStream -
[IFD][coreLoadExecutor-5-thread-1]: delete "_0_Lucene41_0.doc"
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.update.LoggingInfoStream -
[IFD][coreLoadExecutor-5-thread-1]: init: removing unreferenced file
"_0_Lucene41_0.pos"
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.update.LoggingInfoStream -
[IFD][coreLoadExecutor-5-thread-1]: delete "_0_Lucene41_0.pos"
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.update.LoggingInfoStream -
[IFD][coreLoadExecutor-5-thread-1]: init: removing unreferenced file
"_0.nvd"
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.update.LoggingInfoStream -
[IFD][coreLoadExecutor-5-thread-1]: delete "_0.nvd"
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.update.LoggingInfoStream -
[IFD][coreLoadExecutor-5-thread-1]: init: removing unreferenced file
"_0.fdx"
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.update.LoggingInfoStream -
[IFD][coreLoadExecutor-5-thread-1]: delete "_0.fdx"
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.update.LoggingInfoStream -
[IFD][coreLoadExecutor-5-thread-1]: init: removing unreferenced file "_0.si"
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.update.LoggingInfoStream -
[IFD][coreLoadExecutor-5-thread-1]: delete "_0.si"
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.update.LoggingInfoStream -
[IFD][coreLoadExecutor-5-thread-1]: init: removing unreferenced file
"_0.nvm"
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.update.LoggingInfoStream -
[IFD][coreLoadExecutor-5-thread-1]: delete "_0.nvm"
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.update.LoggingInfoStream -
[IFD][coreLoadExecutor-5-thread-1]: init: removing unreferenced file
"_0_Lucene41_0.tim"
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.update.LoggingInfoStream -
[IFD][coreLoadExecutor-5-thread-1]: delete "_0_Lucene41_0.tim"
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.update.LoggingInfoStream -
[IFD][coreLoadExecutor-5-thread-1]: init: removing unreferenced file
"_0_Lucene41_0.tip"
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.update.LoggingInfoStream -
[IFD][coreLoadExecutor-5-thread-1]: delete "_0_Lucene41_0.tip"
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.update.LoggingInfoStream -
[IFD][coreLoadExecutor-5-thread-1]: init: removing unreferenced file
"_0.fdt"
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.update.LoggingInfoStream -
[IFD][coreLoadExecutor-5-thread-1]: delete "_0.fdt"
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrCore -
SolrDeletionPolicy.onInit: commits: num=1
commit{dir=NRTCachingDirectory(MMapDirectory@/Users/carlroberts/dev/solr-4.10.3/db/data/index
lockFactory=NativeFSLockFactory@/Users/carlroberts/dev/solr-4.10.3/db/data/index;
maxCacheMB=48.0 maxMergeSizeMB=4.0),segFN=segments_3,generation=3}
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrCore -
newest commit generation = 3
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.update.LoggingInfoStream -
[IFD][coreLoadExecutor-5-thread-1]: now checkpoint "" [0 segments ;
isCommit = false]
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.update.LoggingInfoStream -
[IFD][coreLoadExecutor-5-thread-1]: 0 msec to checkpoint
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.update.LoggingInfoStream -
[IW][coreLoadExecutor-5-thread-1]: init: create=false
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.update.LoggingInfoStream -
[IW][coreLoadExecutor-5-thread-1]:
dir=NRTCachingDirectory(MMapDirectory@/Users/carlroberts/dev/solr-4.10.3/db/data/index
lockFactory=NativeFSLockFactory@/Users/carlroberts/dev/solr-4.10.3/db/data/index;
maxCacheMB=48.0 maxMergeSizeMB=4.0)
index=
version=4.10.3
matchVersion=4.10.3
analyzer=null
ramBufferSizeMB=100.0
maxBufferedDocs=-1
maxBufferedDeleteTerms=-1
mergedSegmentWarmer=null
readerTermsIndexDivisor=1
termIndexInterval=32
delPolicy=org.apache.solr.core.IndexDeletionPolicyWrapper
commit=null
openMode=APPEND
similarity=org.apache.lucene.search.similarities.DefaultSimilarity
mergeScheduler=ConcurrentMergeScheduler: maxThreadCount=1,
maxMergeCount=2, mergeThreadPriority=-1
default WRITE_LOCK_TIMEOUT=1000
writeLockTimeout=1000
codec=Lucene410
infoStream=org.apache.solr.update.LoggingInfoStream
mergePolicy=[TieredMergePolicy: maxMergeAtOnce=10,
maxMergeAtOnceExplicit=30, maxMergedSegmentMB=5120.0,
floorSegmentMB=2.0, forceMergeDeletesPctAllowed=10.0,
segmentsPerTier=10.0, maxCFSSegmentSizeMB=8.796093022207999E12,
noCFSRatio=0.0
indexerThreadPool=org.apache.lucene.index.DocumentsWriterPerThreadPool@70db5d33
readerPooling=false
perThreadHardLimitMB=1945
useCompoundFile=false
checkIntegrityAtMerge=false
writer=org.apache.lucene.util.SetOnce@51c3f927
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.update.LoggingInfoStream -
[IW][coreLoadExecutor-5-thread-1]: flush at getReader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.update.LoggingInfoStream -
[DW][coreLoadExecutor-5-thread-1]: startFullFlush
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.update.LoggingInfoStream -
[IW][coreLoadExecutor-5-thread-1]: apply all deletes during flush
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.update.LoggingInfoStream -
[BD][coreLoadExecutor-5-thread-1]: prune sis=segments_3:
minGen=9223372036854775807 packetCount=0
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.update.LoggingInfoStream -
[IW][coreLoadExecutor-5-thread-1]: return reader version=4
reader=StandardDirectoryReader(segments_3:4:nrt)
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.update.LoggingInfoStream -
[DW][coreLoadExecutor-5-thread-1]: coreLoadExecutor-5-thread-1
finishFullFlush success=true
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.update.LoggingInfoStream -
[IW][coreLoadExecutor-5-thread-1]: getReader took 2 msec
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.search.SolrIndexSearcher - Opening Searcher@162f4910[db]
main
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.rest.ManagedResourceStorage - File-based storage
initialized to use dir: /Users/carlroberts/dev/solr-4.10.3/db/conf
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.rest.RestManager -
Initializing RestManager with initArgs:
{storageDir=/Users/carlroberts/dev/solr-4.10.3/db/conf}
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.rest.ManagedResourceStorage - Reading _rest_managed.json
using file:dir=/Users/carlroberts/dev/solr-4.10.3/db/conf
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.rest.ManagedResourceStorage - Loaded LinkedHashMap at
path _rest_managed.json using
file:dir=/Users/carlroberts/dev/solr-4.10.3/db/conf
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.rest.ManagedResource
- Loaded initArgs {} for /rest/managed
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.rest.RestManager -
Initializing 2 registered ManagedResources
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.rest.ManagedResourceStorage - Reading
_schema_analysis_stopwords_english.json using
file:dir=/Users/carlroberts/dev/solr-4.10.3/db/conf
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.rest.ManagedResourceStorage - Loaded LinkedHashMap at
path _schema_analysis_stopwords_english.json using
file:dir=/Users/carlroberts/dev/solr-4.10.3/db/conf
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.rest.ManagedResource
- Loaded initArgs {ignoreCase=false} for /schema/analysis/stopwords/english
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.rest.ManagedResource
- Loaded 0 words for /schema/analysis/stopwords/english
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.rest.ManagedResource
- Notified 1 observers of /schema/analysis/stopwords/english
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.rest.ManagedResourceStorage - Reading
_schema_analysis_synonyms_english.json using
file:dir=/Users/carlroberts/dev/solr-4.10.3/db/conf
[coreLoadExecutor-5-thread-1] WARN org.apache.solr.rest.ManagedResource
- No stored data found for /schema/analysis/synonyms/english
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.rest.ManagedResource
- Loaded 0 synonym mappings for /schema/analysis/synonyms/english
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.rest.ManagedResource
- Notified 1 observers of /schema/analysis/synonyms/english
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.handler.component.SpellCheckComponent - Initializing
spell checkers
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.spelling.DirectSolrSpellChecker - init:
{name=default,field=text,classname=solr.DirectSolrSpellChecker,distanceMeasure=internal,accuracy=0.5,maxEdits=2,minPrefix=1,maxInspections=5,minQueryLength=4,maxQueryFrequency=0.01}
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.handler.component.SpellCheckComponent - No
queryConverter defined, using default converter
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.handler.component.QueryElevationComponent - Loading
QueryElevation from: /Users/carlroberts/dev/solr-4.10.3/db/conf/elevate.xml
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.handler.ReplicationHandler - Commits will be reserved
for 10000
[searcherExecutor-6-thread-1] INFO org.apache.solr.core.SolrCore -
QuerySenderListener sending requests to Searcher@162f4910[db]
main{StandardDirectoryReader(segments_3:4:nrt)}
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.CoreContainer -
registering core: db
default core name=db
solr home=/Users/carlroberts/dev/solr-4.10.3/
db is loaded=true
core init failures={}
cores=[org.apache.solr.core.SolrCore@5d89ced4]
[searcherExecutor-6-thread-1] ERROR org.apache.solr.core.SolrCore -
org.apache.solr.common.SolrException: undefined field text
at
org.apache.solr.schema.IndexSchema.getDynamicFieldType(IndexSchema.java:1269)
at
org.apache.solr.schema.IndexSchema$SolrQueryAnalyzer.getWrappedAnalyzer(IndexSchema.java:434)
at
org.apache.lucene.analysis.DelegatingAnalyzerWrapper$DelegatingReuseStrategy.getReusableComponents(DelegatingAnalyzerWrapper.java:74)
at org.apache.lucene.analysis.Analyzer.tokenStream(Analyzer.java:175)
at
org.apache.lucene.util.QueryBuilder.createFieldQuery(QueryBuilder.java:207)
at
org.apache.solr.parser.SolrQueryParserBase.newFieldQuery(SolrQueryParserBase.java:374)
at
org.apache.solr.parser.SolrQueryParserBase.getFieldQuery(SolrQueryParserBase.java:742)
at
org.apache.solr.parser.SolrQueryParserBase.handleBareTokenQuery(SolrQueryParserBase.java:541)
at org.apache.solr.parser.QueryParser.Term(QueryParser.java:299)
at org.apache.solr.parser.QueryParser.Clause(QueryParser.java:185)
at org.apache.solr.parser.QueryParser.Query(QueryParser.java:107)
at
org.apache.solr.parser.QueryParser.TopLevelQuery(QueryParser.java:96)
at
org.apache.solr.parser.SolrQueryParserBase.parse(SolrQueryParserBase.java:151)
at org.apache.solr.search.LuceneQParser.parse(LuceneQParser.java:50)
at org.apache.solr.search.QParser.getQuery(QParser.java:141)
at
org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:147)
at
org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:197)
at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)
at org.apache.solr.core.SolrCore.execute(SolrCore.java:1976)
at
org.apache.solr.core.QuerySenderListener.newSearcher(QuerySenderListener.java:64)
at org.apache.solr.core.SolrCore$5.call(SolrCore.java:1748)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
[searcherExecutor-6-thread-1] INFO org.apache.solr.core.SolrCore - [db]
webapp=null path=null
params={event=firstSearcher&q=static+firstSearcher+warming+in+solrconfig.xml&distrib=false}
status=400 QTime=21
[searcherExecutor-6-thread-1] INFO org.apache.solr.core.SolrCore -
QuerySenderListener done.
[searcherExecutor-6-thread-1] INFO
org.apache.solr.handler.component.SpellCheckComponent - Loading spell
index for spellchecker: default
[searcherExecutor-6-thread-1] INFO
org.apache.solr.handler.component.SpellCheckComponent - Loading spell
index for spellchecker: wordbreak
[searcherExecutor-6-thread-1] INFO org.apache.solr.core.SolrCore - [db]
Registered new searcher Searcher@162f4910[db]
main{StandardDirectoryReader(segments_3:4:nrt)}
[main] INFO org.apache.solr.update.processor.LogUpdateProcessor - [db]
webapp=null path=/update params={} {add=[id1, id2]} 0 63
[main] INFO org.apache.solr.update.UpdateHandler - start
commit{,optimize=false,openSearcher=true,waitSearcher=true,expungeDeletes=false,softCommit=false,prepareCommit=false}
[main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
commit: start
[main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
commit: enter lock
[main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
commit: now prepare
[main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
prepareCommit: flush
[main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]: index
before flush
[main] INFO org.apache.solr.update.LoggingInfoStream - [DW][main]:
startFullFlush
[main] INFO org.apache.solr.update.LoggingInfoStream - [DW][main]:
anyChanges? numDocsInRam=2 deletes=true hasTickets:false
pendingChangesInFullFlush: false
[main] INFO org.apache.solr.update.LoggingInfoStream - [DWFC][main]:
addFlushableState DocumentsWriterPerThread [pendingDeletes=gen=0 1
deleted terms (unique count=1) bytesUsed=167, segment=_1,
aborting=false, numDocsInRAM=2, deleteQueue=DWDQ: [ generation: 1 ]]
[main] INFO org.apache.solr.update.LoggingInfoStream - [DWPT][main]:
flush postings as segment _1 numDocs=2
[main] INFO org.apache.solr.update.LoggingInfoStream - [DWPT][main]: new
segment has 0 deleted docs
[main] INFO org.apache.solr.update.LoggingInfoStream - [DWPT][main]: new
segment has no vectors; norms; no docValues; prox; freqs
[main] INFO org.apache.solr.update.LoggingInfoStream - [DWPT][main]:
flushedFiles=[_1_Lucene41_0.pos, _1.nvm, _1.fdx, _1_Lucene41_0.doc,
_1.fdt, _1_Lucene41_0.tim, _1.nvd, _1_Lucene41_0.tip, _1.fnm]
[main] INFO org.apache.solr.update.LoggingInfoStream - [DWPT][main]:
flushed codec=Lucene410
[main] INFO org.apache.solr.update.LoggingInfoStream - [DWPT][main]:
flushed: segment=_1 ramUsed=0.071 MB newFlushedSize(includes
docstores)=0.001 MB docs/MB=1,987.822
[main] INFO org.apache.solr.update.LoggingInfoStream - [DW][main]:
publishFlushedSegment seg-private updates=null
[main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
publishFlushedSegment
[main] INFO org.apache.solr.update.LoggingInfoStream - [BD][main]: push
deletes 2 deleted terms (unique count=2) bytesUsed=1056 delGen=2
packetCount=1 totBytesUsed=1056
[main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
publish sets newSegment delGen=3 seg=_1(4.10.3):C2
[main] INFO org.apache.solr.update.LoggingInfoStream - [IFD][main]: now
checkpoint "_1(4.10.3):C2" [1 segments ; isCommit = false]
[main] INFO org.apache.solr.update.LoggingInfoStream - [IFD][main]: 0
msec to checkpoint
[main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]: apply
all deletes during flush
[main] INFO org.apache.solr.update.LoggingInfoStream - [BD][main]:
applyDeletes: infos=[_1(4.10.3):C2] packetCount=1
[main] INFO org.apache.solr.update.LoggingInfoStream - [BD][main]:
applyDeletes took 0 msec
[main] INFO org.apache.solr.update.LoggingInfoStream - [BD][main]: prune
sis=segments_3: _1(4.10.3):C2 minGen=4 packetCount=1
[main] INFO org.apache.solr.update.LoggingInfoStream - [BD][main]:
pruneDeletes: prune 1 packets; 0 packets remain
[main] INFO org.apache.solr.update.LoggingInfoStream - [DW][main]: main
finishFullFlush success=true
[main] INFO org.apache.solr.update.LoggingInfoStream - [TMP][main]:
findMerges: 1 segments
[main] INFO org.apache.solr.update.LoggingInfoStream - [TMP][main]:
seg=_1(4.10.3):C2 size=0.001 MB [floored]
[main] INFO org.apache.solr.update.LoggingInfoStream - [TMP][main]:
allowedSegmentCount=1 vs count=1 (eligible count=1) tooBigCount=0
[main] INFO org.apache.solr.update.LoggingInfoStream - [CMS][main]: now
merge
[main] INFO org.apache.solr.update.LoggingInfoStream - [CMS][main]:
index: _1(4.10.3):C2
[main] INFO org.apache.solr.update.LoggingInfoStream - [CMS][main]: no
more merges pending; now return
[main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
startCommit(): start
[main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
startCommit index=_1(4.10.3):C2 changeCount=3
[main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]: done
all syncs: [_1.fdx, _1.nvm, _1_Lucene41_0.pos, _1_Lucene41_0.doc,
_1.fdt, _1.si, _1_Lucene41_0.tim, _1.nvd, _1_Lucene41_0.tip, _1.fnm]
[main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
commit: pendingCommit != null
[main] INFO org.apache.solr.update.LoggingInfoStream - [IFD][main]: now
checkpoint "_1(4.10.3):C2" [1 segments ; isCommit = true]
[main] INFO org.apache.solr.core.SolrCore - SolrDeletionPolicy.onCommit:
commits: num=2
commit{dir=NRTCachingDirectory(MMapDirectory@/Users/carlroberts/dev/solr-4.10.3/db/data/index
lockFactory=NativeFSLockFactory@/Users/carlroberts/dev/solr-4.10.3/db/data/index;
maxCacheMB=48.0 maxMergeSizeMB=4.0),segFN=segments_3,generation=3}
commit{dir=NRTCachingDirectory(MMapDirectory@/Users/carlroberts/dev/solr-4.10.3/db/data/index
lockFactory=NativeFSLockFactory@/Users/carlroberts/dev/solr-4.10.3/db/data/index;
maxCacheMB=48.0 maxMergeSizeMB=4.0),segFN=segments_4,generation=4}
[main] INFO org.apache.solr.core.SolrCore - newest commit generation = 4
[main] INFO org.apache.solr.update.LoggingInfoStream - [IFD][main]:
deleteCommits: now decRef commit "segments_3"
[main] INFO org.apache.solr.update.LoggingInfoStream - [IFD][main]:
delete "segments_3"
[main] INFO org.apache.solr.update.LoggingInfoStream - [IFD][main]: 0
msec to checkpoint
[main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
commit: wrote segments file "segments_4"
[main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
commit: took 47.8 msec
[main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
commit: done
[main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
nrtIsCurrent: infoVersion matches: false; DW changes: false; BD changes:
false
[main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]: flush
at getReader
[main] INFO org.apache.solr.update.LoggingInfoStream - [DW][main]:
startFullFlush
[main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]: apply
all deletes during flush
[main] INFO org.apache.solr.update.LoggingInfoStream - [BD][main]:
applyDeletes: no deletes; skipping
[main] INFO org.apache.solr.update.LoggingInfoStream - [BD][main]: prune
sis=segments_3: _1(4.10.3):C2 minGen=4 packetCount=0
[main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
return reader version=6 reader=StandardDirectoryReader(segments_3:6:nrt
_1(4.10.3):C2)
[main] INFO org.apache.solr.update.LoggingInfoStream - [DW][main]: main
finishFullFlush success=true
[main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
getReader took 13 msec
[main] INFO org.apache.solr.search.SolrIndexSearcher - Opening
Searcher@7a0f9651[db] main
[main] INFO org.apache.solr.update.UpdateHandler - end_commit_flush
[searcherExecutor-6-thread-1] INFO org.apache.solr.core.SolrCore -
QuerySenderListener sending requests to Searcher@7a0f9651[db]
main{StandardDirectoryReader(segments_3:6:nrt _1(4.10.3):C2)}
[searcherExecutor-6-thread-1] INFO org.apache.solr.core.SolrCore -
QuerySenderListener done.
[searcherExecutor-6-thread-1] INFO org.apache.solr.core.SolrCore - [db]
Registered new searcher Searcher@7a0f9651[db]
main{StandardDirectoryReader(segments_3:6:nrt _1(4.10.3):C2)}
[main] INFO org.apache.solr.update.processor.LogUpdateProcessor - [db]
webapp=null path=/update
params={commit=true&softCommit=false&waitSearcher=true} {commit=} 0 63
[main] INFO org.apache.solr.core.SolrCore - [db] REMOVING ALL DOCUMENTS
FROM INDEX
[main] INFO org.apache.solr.update.LoggingInfoStream - [DW][main]:
lockAndAbortAll
[main] INFO org.apache.solr.update.LoggingInfoStream - [DW][main]:
finished lockAndAbortAll success=true
[main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]: all
running merges have aborted
[main] INFO org.apache.solr.update.LoggingInfoStream - [IFD][main]: now
checkpoint "" [0 segments ; isCommit = false]
[main] INFO org.apache.solr.update.LoggingInfoStream - [IFD][main]: 0
msec to checkpoint
[main] INFO org.apache.solr.update.LoggingInfoStream - [DW][main]: unlockAll
[main] INFO org.apache.solr.update.processor.LogUpdateProcessor - [db]
webapp=null path=/update params={} {deleteByQuery=*:*} 0 1
[main] INFO org.apache.solr.core.CoreContainer - Shutting down
CoreContainer instance=139145087
[main] INFO org.apache.solr.core.SolrCore - [db] CLOSING SolrCore
org.apache.solr.core.SolrCore@5d89ced4
[main] INFO org.apache.solr.update.UpdateHandler - closing
DirectUpdateHandler2{commits=1,autocommit
maxTime=15000ms,autocommits=0,soft
autocommits=0,optimizes=0,rollbacks=0,expungeDeletes=0,docsPending=0,adds=0,deletesById=0,deletesByQuery=1,errors=0,cumulative_adds=2,cumulative_deletesById=0,cumulative_deletesByQuery=1,cumulative_errors=0}
[main] INFO org.apache.solr.update.SolrCoreState - Closing SolrCoreState
[main] INFO org.apache.solr.update.DefaultSolrCoreState - SolrCoreState
ref count has reached 0 - closing IndexWriter
[main] INFO org.apache.solr.update.DefaultSolrCoreState - closing
IndexWriter with IndexWriterCloser
[main] INFO org.apache.solr.update.LoggingInfoStream - [CMS][main]: now
merge
[main] INFO org.apache.solr.update.LoggingInfoStream - [CMS][main]:
index:
[main] INFO org.apache.solr.update.LoggingInfoStream - [CMS][main]: no
more merges pending; now return
[main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
waitForMerges
[main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
waitForMerges done
[main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]: now
flush at close
[main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]: start
flush: applyAllDeletes=true
[main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]: index
before flush
[main] INFO org.apache.solr.update.LoggingInfoStream - [DW][main]:
startFullFlush
[main] INFO org.apache.solr.update.LoggingInfoStream - [DW][main]: main
finishFullFlush success=true
[main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]: apply
all deletes during flush
[main] INFO org.apache.solr.update.LoggingInfoStream - [BD][main]: prune
sis=segments_3: minGen=9223372036854775807 packetCount=0
[main] INFO org.apache.solr.update.LoggingInfoStream - [CMS][main]: now
merge
[main] INFO org.apache.solr.update.LoggingInfoStream - [CMS][main]:
index:
[main] INFO org.apache.solr.update.LoggingInfoStream - [CMS][main]: no
more merges pending; now return
[main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
waitForMerges
[main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
waitForMerges done
[main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
commit: start
[main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
commit: enter lock
[main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
commit: now prepare
[main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
prepareCommit: flush
[main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]: index
before flush
[main] INFO org.apache.solr.update.LoggingInfoStream - [DW][main]:
startFullFlush
[main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]: apply
all deletes during flush
[main] INFO org.apache.solr.update.LoggingInfoStream - [BD][main]: prune
sis=segments_3: minGen=9223372036854775807 packetCount=0
[main] INFO org.apache.solr.update.LoggingInfoStream - [DW][main]: main
finishFullFlush success=true
[main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
startCommit(): start
[main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
startCommit index= changeCount=4
[main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]: done
all syncs: []
[main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
commit: pendingCommit != null
[main] INFO org.apache.solr.update.LoggingInfoStream - [IFD][main]: now
checkpoint "" [0 segments ; isCommit = true]
[main] INFO org.apache.solr.core.SolrCore - SolrDeletionPolicy.onCommit:
commits: num=2
commit{dir=NRTCachingDirectory(MMapDirectory@/Users/carlroberts/dev/solr-4.10.3/db/data/index
lockFactory=NativeFSLockFactory@/Users/carlroberts/dev/solr-4.10.3/db/data/index;
maxCacheMB=48.0 maxMergeSizeMB=4.0),segFN=segments_4,generation=4}
commit{dir=NRTCachingDirectory(MMapDirectory@/Users/carlroberts/dev/solr-4.10.3/db/data/index
lockFactory=NativeFSLockFactory@/Users/carlroberts/dev/solr-4.10.3/db/data/index;
maxCacheMB=48.0 maxMergeSizeMB=4.0),segFN=segments_5,generation=5}
[main] INFO org.apache.solr.core.SolrCore - newest commit generation = 5
[main] INFO org.apache.solr.update.LoggingInfoStream - [IFD][main]:
deleteCommits: now decRef commit "segments_4"
[main] INFO org.apache.solr.update.LoggingInfoStream - [IFD][main]:
delete "segments_4"
[main] INFO org.apache.solr.update.LoggingInfoStream - [IFD][main]: 0
msec to checkpoint
[main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
commit: wrote segments file "segments_5"
[main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
commit: took 5.4 msec
[main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
commit: done
[main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]: rollback
[main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]: all
running merges have aborted
[main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
rollback: done finish merges
[main] INFO org.apache.solr.update.LoggingInfoStream - [DW][main]: abort
[main] INFO org.apache.solr.update.LoggingInfoStream - [DW][main]: done
abort; abortedFiles=[] success=true
[main] INFO org.apache.solr.update.LoggingInfoStream - [IW][main]:
rollback: infos=
[main] INFO org.apache.solr.update.LoggingInfoStream - [IFD][main]: now
checkpoint "" [0 segments ; isCommit = false]
[main] INFO org.apache.solr.update.LoggingInfoStream - [IFD][main]: 0
msec to checkpoint
[main] INFO org.apache.solr.core.SolrCore - [db] Closing main searcher
on request.
[main] INFO org.apache.solr.core.CachingDirectoryFactory - Closing
NRTCachingDirectoryFactory - 2 directories currently being tracked
[main] INFO org.apache.solr.core.CachingDirectoryFactory - looking to
close /Users/carlroberts/dev/solr-4.10.3/db/data/index
[CachedDir<<refCount=0;path=/Users/carlroberts/dev/solr-4.10.3/db/data/index;done=false>>]
[main] INFO org.apache.solr.core.CachingDirectoryFactory - Closing
directory: /Users/carlroberts/dev/solr-4.10.3/db/data/index
[main] INFO org.apache.solr.core.CachingDirectoryFactory - looking to
close /Users/carlroberts/dev/solr-4.10.3/db/data
[CachedDir<<refCount=0;path=/Users/carlroberts/dev/solr-4.10.3/db/data;done=false>>]
[main] INFO org.apache.solr.core.CachingDirectoryFactory - Closing
directory: /Users/carlroberts/dev/solr-4.10.3/db/data
On 1/21/15, 8:28 PM, Carl Roberts wrote:
> Ah - OK - let me try that. BTW - I applied the fix from the bug link
> you gave me to log the errors and I am now at least getting the actual
> errors:
>
> *default core name=db
> solr home=/Users/carlroberts/dev/solr-4.10.3/
> db is loaded=false
> core init
> failures={db=org.apache.solr.core.CoreContainer$CoreLoadFailure@4d351f9b}
> cores=[]
> Exception in thread "main" org.apache.solr.common.SolrException:
> SolrCore 'db' is not available due to init failure: JVM Error creating
> core [db]: org/apache/lucene/queries/function/ValueSource
> at org.apache.solr.core.CoreContainer.getCore(CoreContainer.java:749)
> at
> org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:110)
> at
> org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:124)
> at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:68)
> at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:54)
> at solr.Test.main(Test.java:38)
> Caused by: org.apache.solr.common.SolrException: JVM Error creating
> core [db]: org/apache/lucene/queries/function/ValueSource
> at org.apache.solr.core.CoreContainer.create(CoreContainer.java:508)
> at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:255)
> at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:249)
> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.NoClassDefFoundError:
> org/apache/lucene/queries/function/ValueSource
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:274)
> at
> org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:484)
> at
> org.apache.solr.core.SolrResourceLoader.newInstance(SolrResourceLoader.java:521)
> at
> org.apache.solr.core.SolrResourceLoader.newInstance(SolrResourceLoader.java:517)
> at
> org.apache.solr.schema.FieldTypePluginLoader.create(FieldTypePluginLoader.java:81)
> at
> org.apache.solr.schema.FieldTypePluginLoader.create(FieldTypePluginLoader.java:43)
> at
> org.apache.solr.util.plugin.AbstractPluginLoader.load(AbstractPluginLoader.java:151)
> at org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:486)
> at org.apache.solr.schema.IndexSchema.<init>(IndexSchema.java:166)
> at
> org.apache.solr.schema.IndexSchemaFactory.create(IndexSchemaFactory.java:55)
> at
> org.apache.solr.schema.IndexSchemaFactory.buildIndexSchema(IndexSchemaFactory.java:69)
> at
> org.apache.solr.core.ConfigSetService.createIndexSchema(ConfigSetService.java:90)
> at
> org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:62)
> at org.apache.solr.core.CoreContainer.create(CoreContainer.java:489)
> ... 6 more
> Caused by: java.lang.ClassNotFoundException:
> org.apache.lucene.queries.function.ValueSource
> at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
> ... 21 more
> *
> On 1/21/15, 7:32 PM, Shawn Heisey wrote:
>> On 1/21/2015 5:16 PM, Carl Roberts wrote:
>>> BTW - it seems that is very hard to get started with the Embedded
>>> server. The doc is out of date. The code seems to be untested and buggy.
>>>
>>> On 1/21/15, 7:15 PM, Carl Roberts wrote:
>>>> Hmmm....It looks like FutureTask is calling setException(Throwable t)
>>>> with this exception which is not making it to the console.
>>>>
>>>> What I don't understand is why it is throwing that exception. I made
>>>> sure that I added lucene-queries-4.10.3.jar file to the classpath by
>>>> adding it to the solr home directory. See the new tracing:
>> I'm pretty sure that all the lucene jars need to be available *before*
>> Solr reaches the point in the log that you have quoted, where it adds
>> jars from ${solr.solr.home}/lib. This would be the same location where
>> the solrj and solr-core jars live. The only kind of jars that should be
>> in the solr home lib directory are extra jars for extra features that
>> you might specify in schema.xml (or some places in solrconfig.xml), like
>> the ICU analysis jars, tika, mysql, etc.
>>
>> Thanks,
>> Shawn
>>
>
Re: Errors using the Embedded Solar Server
Posted by Carl Roberts <ca...@gmail.com>.
Ah - OK - let me try that. BTW - I applied the fix from the bug link
you gave me to log the errors and I am now at least getting the actual
errors:
*default core name=db
solr home=/Users/carlroberts/dev/solr-4.10.3/
db is loaded=false
core init
failures={db=org.apache.solr.core.CoreContainer$CoreLoadFailure@4d351f9b}
cores=[]
Exception in thread "main" org.apache.solr.common.SolrException:
SolrCore 'db' is not available due to init failure: JVM Error creating
core [db]: org/apache/lucene/queries/function/ValueSource
at org.apache.solr.core.CoreContainer.getCore(CoreContainer.java:749)
at
org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:110)
at
org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:124)
at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:68)
at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:54)
at solr.Test.main(Test.java:38)
Caused by: org.apache.solr.common.SolrException: JVM Error creating core
[db]: org/apache/lucene/queries/function/ValueSource
at org.apache.solr.core.CoreContainer.create(CoreContainer.java:508)
at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:255)
at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:249)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoClassDefFoundError:
org/apache/lucene/queries/function/ValueSource
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:274)
at
org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:484)
at
org.apache.solr.core.SolrResourceLoader.newInstance(SolrResourceLoader.java:521)
at
org.apache.solr.core.SolrResourceLoader.newInstance(SolrResourceLoader.java:517)
at
org.apache.solr.schema.FieldTypePluginLoader.create(FieldTypePluginLoader.java:81)
at
org.apache.solr.schema.FieldTypePluginLoader.create(FieldTypePluginLoader.java:43)
at
org.apache.solr.util.plugin.AbstractPluginLoader.load(AbstractPluginLoader.java:151)
at org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:486)
at org.apache.solr.schema.IndexSchema.<init>(IndexSchema.java:166)
at
org.apache.solr.schema.IndexSchemaFactory.create(IndexSchemaFactory.java:55)
at
org.apache.solr.schema.IndexSchemaFactory.buildIndexSchema(IndexSchemaFactory.java:69)
at
org.apache.solr.core.ConfigSetService.createIndexSchema(ConfigSetService.java:90)
at
org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:62)
at org.apache.solr.core.CoreContainer.create(CoreContainer.java:489)
... 6 more
Caused by: java.lang.ClassNotFoundException:
org.apache.lucene.queries.function.ValueSource
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 21 more
*
On 1/21/15, 7:32 PM, Shawn Heisey wrote:
> On 1/21/2015 5:16 PM, Carl Roberts wrote:
>> BTW - it seems that is very hard to get started with the Embedded
>> server. The doc is out of date. The code seems to be untested and buggy.
>>
>> On 1/21/15, 7:15 PM, Carl Roberts wrote:
>>> Hmmm....It looks like FutureTask is calling setException(Throwable t)
>>> with this exception which is not making it to the console.
>>>
>>> What I don't understand is why it is throwing that exception. I made
>>> sure that I added lucene-queries-4.10.3.jar file to the classpath by
>>> adding it to the solr home directory. See the new tracing:
> I'm pretty sure that all the lucene jars need to be available *before*
> Solr reaches the point in the log that you have quoted, where it adds
> jars from ${solr.solr.home}/lib. This would be the same location where
> the solrj and solr-core jars live. The only kind of jars that should be
> in the solr home lib directory are extra jars for extra features that
> you might specify in schema.xml (or some places in solrconfig.xml), like
> the ICU analysis jars, tika, mysql, etc.
>
> Thanks,
> Shawn
>
Re: Errors using the Embedded Solar Server
Posted by Shawn Heisey <ap...@elyograg.org>.
On 1/21/2015 5:16 PM, Carl Roberts wrote:
> BTW - it seems that is very hard to get started with the Embedded
> server. The doc is out of date. The code seems to be untested and buggy.
>
> On 1/21/15, 7:15 PM, Carl Roberts wrote:
>> Hmmm....It looks like FutureTask is calling setException(Throwable t)
>> with this exception which is not making it to the console.
>>
>> What I don't understand is why it is throwing that exception. I made
>> sure that I added lucene-queries-4.10.3.jar file to the classpath by
>> adding it to the solr home directory. See the new tracing:
I'm pretty sure that all the lucene jars need to be available *before*
Solr reaches the point in the log that you have quoted, where it adds
jars from ${solr.solr.home}/lib. This would be the same location where
the solrj and solr-core jars live. The only kind of jars that should be
in the solr home lib directory are extra jars for extra features that
you might specify in schema.xml (or some places in solrconfig.xml), like
the ICU analysis jars, tika, mysql, etc.
Thanks,
Shawn
Re: Errors using the Embedded Solar Server
Posted by Carl Roberts <ca...@gmail.com>.
BTW - it seems that is very hard to get started with the Embedded
server. The doc is out of date. The code seems to be untested and buggy.
On 1/21/15, 7:15 PM, Carl Roberts wrote:
> Hmmm....It looks like FutureTask is calling setException(Throwable t)
> with this exception which is not making it to the console.
>
>
>
> What I don't understand is why it is throwing that exception. I made
> sure that I added lucene-queries-4.10.3.jar file to the classpath by
> adding it to the solr home directory. See the new tracing:
>
> [main] INFO org.apache.solr.core.SolrResourceLoader - new
> SolrResourceLoader for directory: '/Users/carlroberts/dev/solr-4.10.3/'
> [main] INFO org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/lib/commons-logging-1.2.jar'
> to classloader
> [main] INFO org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/lib/lucene-analyzers-common-4.10.3.jar'
> to classloader
> [main] INFO org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/lib/lucene-analyzers-kuromoji-4.10.3.jar'
> to classloader
> [main] INFO org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/lib/lucene-analyzers-phonetic-4.10.3.jar'
> to classloader
> [main] INFO org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/lib/lucene-codecs-4.10.3.jar'
> to classloader
> [main] INFO org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/lib/lucene-core-4.10.3.jar'
> to classloader
> [main] INFO org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/lib/lucene-expressions-4.10.3.jar'
> to classloader
> [main] INFO org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/lib/lucene-grouping-4.10.3.jar'
> to classloader
> [main] INFO org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/lib/lucene-highlighter-4.10.3.jar'
> to classloader
> [main] INFO org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/lib/lucene-join-4.10.3.jar'
> to classloader
> [main] INFO org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/lib/lucene-memory-4.10.3.jar'
> to classloader
> [main] INFO org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/lib/lucene-misc-4.10.3.jar'
> to classloader
> [main] INFO org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/lib/lucene-queries-4.10.3.jar' to
> classloader
> [main] INFO org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/lib/lucene-queryparser-4.10.3.jar'
> to classloader
> [main] INFO org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/lib/lucene-spatial-4.10.3.jar' to
> classloader
> [main] INFO org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/lib/lucene-suggest-4.10.3.jar' to
> classloader
> [main] INFO org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/lib/servlet-api.jar' to
> classloader
> [main] INFO org.apache.solr.core.SolrResourceLoader - Adding
> 'file:/Users/carlroberts/dev/solr-4.10.3/lib/slf4j-simple-1.7.5.jar'
> to classloader
>
> Do you think the bug you reported fixes this issue? How can I just
> download the latest code with that fix and replace the existing code
> so that I can try the fix?
>
> Regards,
>
> Joe
> On 1/21/15, 3:05 PM, Alan Woodward wrote:
>> Aha, I think you're being stung byhttps://issues.apache.org/jira/browse/SOLR-6643. Which will be fixed in the upcoming 5.0 release, or you can patch your system with the patch attached to that issue.
>>
>> Alan Woodward
>> www.flax.co.uk
>>
>>
>> On 21 Jan 2015, at 19:44, Carl Roberts wrote:
>>
>>> Already did. And the logging gets me no closer to fixing the issue. Here is the logging.
>>>
>>> [main] INFO org.apache.solr.core.SolrResourceLoader - new SolrResourceLoader for directory: '/Users/carlroberts/dev/solr-4.10.3/'
>>> [main] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/lib/commons-logging-1.2.jar' to classloader
>>> [main] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/lib/servlet-api.jar' to classloader
>>> [main] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/lib/slf4j-simple-1.7.5.jar' to classloader
>>> [main] INFO org.apache.solr.core.ConfigSolr - Loading container configuration from /Users/carlroberts/dev/solr-4.10.3/solr.xml
>>> [main] INFO org.apache.solr.core.CoreContainer - New CoreContainer 1727098510
>>> [main] INFO org.apache.solr.core.CoreContainer - Loading cores into CoreContainer [instanceDir=/Users/carlroberts/dev/solr-4.10.3/]
>>> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory - Setting socketTimeout to: 0
>>> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory - Setting urlScheme to: null
>>> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory - Setting connTimeout to: 0
>>> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory - Setting maxConnectionsPerHost to: 20
>>> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory - Setting corePoolSize to: 0
>>> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory - Setting maximumPoolSize to: 2147483647
>>> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory - Setting maxThreadIdleTime to: 5
>>> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory - Setting sizeOfQueue to: -1
>>> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory - Setting fairnessPolicy to: false
>>> [main] INFO org.apache.solr.update.UpdateShardHandler - Creating UpdateShardHandler HTTP client with params: socketTimeout=0&connTimeout=0&retry=false
>>> [main] INFO org.apache.solr.logging.LogWatcher - SLF4J impl is org.slf4j.impl.SimpleLoggerFactory
>>> [main] INFO org.apache.solr.logging.LogWatcher - No LogWatcher configured
>>> [main] INFO org.apache.solr.core.CoreContainer - Host Name: null
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - new SolrResourceLoader for directory: '/Users/carlroberts/dev/solr-4.10.3/db/'
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrConfig - Adding specified lib dirs to ClassLoader
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/apache-mime4j-core-0.7.2.jar' to classloader
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/apache-mime4j-dom-0.7.2.jar' to classloader
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/aspectjrt-1.6.11.jar' to classloader
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/bcmail-jdk15-1.45.jar' to classloader
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/bcprov-jdk15-1.45.jar' to classloader
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/boilerpipe-1.1.0.jar' to classloader
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/commons-compress-1.7.jar' to classloader
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/dom4j-1.6.1.jar' to classloader
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/fontbox-1.8.4.jar' to classloader
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/icu4j-53.1.jar' to classloader
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/isoparser-1.0-RC-1.jar' to classloader
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/jdom-1.0.jar' to classloader
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/jempbox-1.8.4.jar' to classloader
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/jhighlight-1.0.jar' to classloader
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/juniversalchardet-1.0.3.jar' to classloader
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/metadata-extractor-2.6.2.jar' to classloader
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/pdfbox-1.8.4.jar' to classloader
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/poi-3.10.1.jar' to classloader
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/poi-ooxml-3.10.1.jar' to classloader
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/poi-ooxml-schemas-3.10.1.jar' to classloader
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/poi-scratchpad-3.10.1.jar' to classloader
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/rome-0.9.jar' to classloader
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/tagsoup-1.2.1.jar' to classloader
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/tika-core-1.5.jar' to classloader
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/tika-parsers-1.5.jar' to classloader
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/tika-xmp-1.5.jar' to classloader
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/vorbis-java-core-0.1.jar' to classloader
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/vorbis-java-tika-0.1.jar' to classloader
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/xercesImpl-2.9.1.jar' to classloader
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/xmlbeans-2.6.0.jar' to classloader
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/xmpcore-5.1.2.jar' to classloader
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/xz-1.4.jar' to classloader
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/dist/solr-cell-4.10.3.jar' to classloader
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/attributes-binder-1.2.1.jar' to classloader
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/carrot2-mini-3.9.0.jar' to classloader
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/hppc-0.5.2.jar' to classloader
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/jackson-core-asl-1.9.13.jar' to classloader
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/jackson-mapper-asl-1.9.13.jar' to classloader
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/mahout-collections-1.0.jar' to classloader
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/mahout-math-0.6.jar' to classloader
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/simple-xml-2.7.jar' to classloader
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/dist/solr-clustering-4.10.3.jar' to classloader
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/langid/lib/jsonic-1.2.7.jar' to classloader
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/langid/lib/langdetect-1.1-20120112.jar' to classloader
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/dist/solr-langid-4.10.3.jar' to classloader
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/velocity/lib/commons-beanutils-1.8.3.jar' to classloader
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/velocity/lib/commons-collections-3.2.1.jar' to classloader
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/velocity/lib/velocity-1.7.jar' to classloader
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/velocity/lib/velocity-tools-2.0.jar' to classloader
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/dist/solr-velocity-4.10.3.jar' to classloader
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.update.SolrIndexConfig - IndexWriter infoStream solr logging is enabled
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrConfig - Using Lucene MatchVersion: 4.10.3
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.Config - Loaded SolrConfig: solrconfig.xml
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.schema.IndexSchema - Reading Solr Schema from /Users/carlroberts/dev/solr-4.10.3/db/conf/schema.xml
>>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.schema.IndexSchema - [db] Schema name=example
>>> default core name=db
>>> solr home=/Users/carlroberts/dev/solr-4.10.3/
>>> db is loaded=false
>>> core init failures={}
>>> cores=[]
>>> Exception in thread "main" org.apache.solr.common.SolrException: No such core: db
>>> at org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:112)
>>> at org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:124)
>>> at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:68)
>>> at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:54)
>>> at solr.Test.main(Test.java:38)
>>>
>>> On 1/21/15, 12:31 PM, Alan Woodward wrote:
>>>> Ah, OK, you need to include a logging jar in your classpath - the log4j and slf4j-log4j jars in the solr distribution will help here. Once you've got some logging set up, then you should be able to work out what's going wrong!
>>>>
>>>> Alan Woodward
>>>> www.flax.co.uk
>>>>
>>>>
>>>> On 21 Jan 2015, at 16:53, Carl Roberts wrote:
>>>>
>>>>> So far I have not been able to get the logging to work - here is what I get in the console prior to the exception:
>>>>>
>>>>> SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
>>>>> SLF4J: Defaulting to no-operation (NOP) logger implementation
>>>>> SLF4J: Seehttp://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
>>>>> db
>>>>> /Users/carlroberts/dev/solr-4.10.3/
>>>>> false
>>>>> {}
>>>>> []
>>>>> /Users/carlroberts/dev/solr-4.10.3/
>>>>>
>>>>>
>>>>> On 1/21/15, 11:50 AM, Alan Woodward wrote:
>>>>>> That certainly looks like it ought to work. Is there log output that you could show us as well?
>>>>>>
>>>>>> Alan Woodward
>>>>>> www.flax.co.uk
>>>>>>
>>>>>>
>>>>>> On 21 Jan 2015, at 16:09, Carl Roberts wrote:
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> I have downloaded the code and documentation for Solr version 4.10.3.
>>>>>>>
>>>>>>> I am trying to follow SolrJ Wiki guide and I am running into errors. The latest error is this one:
>>>>>>>
>>>>>>> Exception in thread "main" org.apache.solr.common.SolrException: No such core: db
>>>>>>> at org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:112)
>>>>>>> at org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:124)
>>>>>>> at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:68)
>>>>>>> at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:54)
>>>>>>> at solr.Test.main(Test.java:39)
>>>>>>>
>>>>>>> My code is this:
>>>>>>>
>>>>>>> package solr;
>>>>>>>
>>>>>>> import java.io.File;
>>>>>>> import java.io.IOException;
>>>>>>> import java.util.ArrayList;
>>>>>>> import java.util.Collection;
>>>>>>>
>>>>>>> import org.apache.solr.client.solrj.SolrServerException;
>>>>>>> import org.apache.solr.client.solrj.embedded.EmbeddedSolrServer;
>>>>>>> import org.apache.solr.common.SolrInputDocument;
>>>>>>> import org.apache.solr.core.CoreContainer;
>>>>>>> import org.apache.solr.core.SolrCore;
>>>>>>>
>>>>>>>
>>>>>>> public class Test {
>>>>>>> public static void main(String [] args){
>>>>>>> CoreContainer container = new CoreContainer("/Users/carlroberts/dev/solr-4.10.3");
>>>>>>> System.out.println(container.getDefaultCoreName());
>>>>>>> System.out.println(container.getSolrHome());
>>>>>>> container.load();
>>>>>>> System.out.println(container.isLoaded("db"));
>>>>>>> System.out.println(container.getCoreInitFailures());
>>>>>>> Collection<SolrCore> cores = container.getCores();
>>>>>>> System.out.println(cores);
>>>>>>> EmbeddedSolrServer server = new EmbeddedSolrServer( container, "db" );
>>>>>>> SolrInputDocument doc1 = new SolrInputDocument();
>>>>>>> doc1.addField( "id", "id1", 1.0f );
>>>>>>> doc1.addField( "name", "doc1", 1.0f );
>>>>>>> doc1.addField( "price", 10 );
>>>>>>> SolrInputDocument doc2 = new SolrInputDocument();
>>>>>>> doc2.addField( "id", "id2", 1.0f );
>>>>>>> doc2.addField( "name", "doc2", 1.0f );
>>>>>>> doc2.addField( "price", 20 );
>>>>>>> Collection<SolrInputDocument> docs = new
>>>>>>> ArrayList<SolrInputDocument>();
>>>>>>> docs.add( doc1 );
>>>>>>> docs.add( doc2 );
>>>>>>> try{
>>>>>>> server.add( docs );
>>>>>>> server.commit();
>>>>>>> server.deleteByQuery( "*:*" );
>>>>>>> }catch(IOException e){
>>>>>>> e.printStackTrace();
>>>>>>> }catch(SolrServerException e){
>>>>>>> e.printStackTrace();
>>>>>>> }
>>>>>>> }
>>>>>>> }
>>>>>>>
>>>>>>>
>>>>>>> My solr.xml file is this:
>>>>>>>
>>>>>>> <?xml version="1.0" encoding="UTF-8" ?>
>>>>>>> <!--
>>>>>>> Licensed to the Apache Software Foundation (ASF) under one or more
>>>>>>> contributor license agreements. See the NOTICE file distributed with
>>>>>>> this work for additional information regarding copyright ownership.
>>>>>>> The ASF licenses this file to You under the Apache License, Version 2.0
>>>>>>> (the "License"); you may not use this file except in compliance with
>>>>>>> the License. You may obtain a copy of the License at
>>>>>>>
>>>>>>> http://www.apache.org/licenses/LICENSE-2.0
>>>>>>>
>>>>>>> Unless required by applicable law or agreed to in writing, software
>>>>>>> distributed under the License is distributed on an "AS IS" BASIS,
>>>>>>> WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
>>>>>>> See the License for the specific language governing permissions and
>>>>>>> limitations under the License.
>>>>>>> -->
>>>>>>>
>>>>>>> <!--
>>>>>>> This is an example of a simple "solr.xml" file for configuring one or
>>>>>>> more Solr Cores, as well as allowing Cores to be added, removed, and
>>>>>>> reloaded via HTTP requests.
>>>>>>>
>>>>>>> More information about options available in this configuration file,
>>>>>>> and Solr Core administration can be found online:
>>>>>>> http://wiki.apache.org/solr/CoreAdmin
>>>>>>> -->
>>>>>>>
>>>>>>> <solr>
>>>>>>> <cores adminPath="/admin/cores" defaultCoreName="db">
>>>>>>> <core default="true" instanceDir="db/" name="db"/>
>>>>>>> </cores>
>>>>>>> </solr>
>>>>>>>
>>>>>>> And my db/conf directory was copied from example/solr/collection/conf directory and it contains the solrconfig.xml file and schema.xml file.
>>>>>>>
>>>>>>> I have noticed that the documentation that shows how to use the EmbeddedSolarServer is outdated as it indicates I should use CoreContainer.Initializer class which doesn't exist, and container.load(path, file) which also doesn't exist.
>>>>>>>
>>>>>>> At this point I have no idea why I am getting the No such core error and I have googled it and there seems to be tons of threads showing this error but for different reasons, and I have tried all the suggested resolutions and get nowhere with this.
>>>>>>>
>>>>>>> Can you please help?
>>>>>>>
>>>>>>> Regards,
>>>>>>>
>>>>>>> Joe
>
Re: Errors using the Embedded Solar Server
Posted by Carl Roberts <ca...@gmail.com>.
Hmmm....It looks like FutureTask is calling setException(Throwable t)
with this exception which is not making it to the console.
What I don't understand is why it is throwing that exception. I made
sure that I added lucene-queries-4.10.3.jar file to the classpath by
adding it to the solr home directory. See the new tracing:
[main] INFO org.apache.solr.core.SolrResourceLoader - new
SolrResourceLoader for directory: '/Users/carlroberts/dev/solr-4.10.3/'
[main] INFO org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/lib/commons-logging-1.2.jar' to
classloader
[main] INFO org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/lib/lucene-analyzers-common-4.10.3.jar'
to classloader
[main] INFO org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/lib/lucene-analyzers-kuromoji-4.10.3.jar'
to classloader
[main] INFO org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/lib/lucene-analyzers-phonetic-4.10.3.jar'
to classloader
[main] INFO org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/lib/lucene-codecs-4.10.3.jar'
to classloader
[main] INFO org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/lib/lucene-core-4.10.3.jar' to
classloader
[main] INFO org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/lib/lucene-expressions-4.10.3.jar'
to classloader
[main] INFO org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/lib/lucene-grouping-4.10.3.jar'
to classloader
[main] INFO org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/lib/lucene-highlighter-4.10.3.jar'
to classloader
[main] INFO org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/lib/lucene-join-4.10.3.jar' to
classloader
[main] INFO org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/lib/lucene-memory-4.10.3.jar'
to classloader
[main] INFO org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/lib/lucene-misc-4.10.3.jar' to
classloader
[main] INFO org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/lib/lucene-queries-4.10.3.jar'
to classloader
[main] INFO org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/lib/lucene-queryparser-4.10.3.jar'
to classloader
[main] INFO org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/lib/lucene-spatial-4.10.3.jar'
to classloader
[main] INFO org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/lib/lucene-suggest-4.10.3.jar'
to classloader
[main] INFO org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/lib/servlet-api.jar' to classloader
[main] INFO org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/lib/slf4j-simple-1.7.5.jar' to
classloader
Do you think the bug you reported fixes this issue? How can I just
download the latest code with that fix and replace the existing code so
that I can try the fix?
Regards,
Joe
On 1/21/15, 3:05 PM, Alan Woodward wrote:
> Aha, I think you're being stung by https://issues.apache.org/jira/browse/SOLR-6643. Which will be fixed in the upcoming 5.0 release, or you can patch your system with the patch attached to that issue.
>
> Alan Woodward
> www.flax.co.uk
>
>
> On 21 Jan 2015, at 19:44, Carl Roberts wrote:
>
>> Already did. And the logging gets me no closer to fixing the issue. Here is the logging.
>>
>> [main] INFO org.apache.solr.core.SolrResourceLoader - new SolrResourceLoader for directory: '/Users/carlroberts/dev/solr-4.10.3/'
>> [main] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/lib/commons-logging-1.2.jar' to classloader
>> [main] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/lib/servlet-api.jar' to classloader
>> [main] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/lib/slf4j-simple-1.7.5.jar' to classloader
>> [main] INFO org.apache.solr.core.ConfigSolr - Loading container configuration from /Users/carlroberts/dev/solr-4.10.3/solr.xml
>> [main] INFO org.apache.solr.core.CoreContainer - New CoreContainer 1727098510
>> [main] INFO org.apache.solr.core.CoreContainer - Loading cores into CoreContainer [instanceDir=/Users/carlroberts/dev/solr-4.10.3/]
>> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory - Setting socketTimeout to: 0
>> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory - Setting urlScheme to: null
>> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory - Setting connTimeout to: 0
>> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory - Setting maxConnectionsPerHost to: 20
>> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory - Setting corePoolSize to: 0
>> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory - Setting maximumPoolSize to: 2147483647
>> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory - Setting maxThreadIdleTime to: 5
>> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory - Setting sizeOfQueue to: -1
>> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory - Setting fairnessPolicy to: false
>> [main] INFO org.apache.solr.update.UpdateShardHandler - Creating UpdateShardHandler HTTP client with params: socketTimeout=0&connTimeout=0&retry=false
>> [main] INFO org.apache.solr.logging.LogWatcher - SLF4J impl is org.slf4j.impl.SimpleLoggerFactory
>> [main] INFO org.apache.solr.logging.LogWatcher - No LogWatcher configured
>> [main] INFO org.apache.solr.core.CoreContainer - Host Name: null
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - new SolrResourceLoader for directory: '/Users/carlroberts/dev/solr-4.10.3/db/'
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrConfig - Adding specified lib dirs to ClassLoader
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/apache-mime4j-core-0.7.2.jar' to classloader
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/apache-mime4j-dom-0.7.2.jar' to classloader
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/aspectjrt-1.6.11.jar' to classloader
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/bcmail-jdk15-1.45.jar' to classloader
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/bcprov-jdk15-1.45.jar' to classloader
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/boilerpipe-1.1.0.jar' to classloader
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/commons-compress-1.7.jar' to classloader
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/dom4j-1.6.1.jar' to classloader
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/fontbox-1.8.4.jar' to classloader
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/icu4j-53.1.jar' to classloader
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/isoparser-1.0-RC-1.jar' to classloader
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/jdom-1.0.jar' to classloader
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/jempbox-1.8.4.jar' to classloader
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/jhighlight-1.0.jar' to classloader
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/juniversalchardet-1.0.3.jar' to classloader
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/metadata-extractor-2.6.2.jar' to classloader
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/pdfbox-1.8.4.jar' to classloader
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/poi-3.10.1.jar' to classloader
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/poi-ooxml-3.10.1.jar' to classloader
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/poi-ooxml-schemas-3.10.1.jar' to classloader
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/poi-scratchpad-3.10.1.jar' to classloader
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/rome-0.9.jar' to classloader
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/tagsoup-1.2.1.jar' to classloader
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/tika-core-1.5.jar' to classloader
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/tika-parsers-1.5.jar' to classloader
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/tika-xmp-1.5.jar' to classloader
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/vorbis-java-core-0.1.jar' to classloader
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/vorbis-java-tika-0.1.jar' to classloader
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/xercesImpl-2.9.1.jar' to classloader
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/xmlbeans-2.6.0.jar' to classloader
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/xmpcore-5.1.2.jar' to classloader
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/xz-1.4.jar' to classloader
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/dist/solr-cell-4.10.3.jar' to classloader
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/attributes-binder-1.2.1.jar' to classloader
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/carrot2-mini-3.9.0.jar' to classloader
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/hppc-0.5.2.jar' to classloader
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/jackson-core-asl-1.9.13.jar' to classloader
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/jackson-mapper-asl-1.9.13.jar' to classloader
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/mahout-collections-1.0.jar' to classloader
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/mahout-math-0.6.jar' to classloader
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/simple-xml-2.7.jar' to classloader
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/dist/solr-clustering-4.10.3.jar' to classloader
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/langid/lib/jsonic-1.2.7.jar' to classloader
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/langid/lib/langdetect-1.1-20120112.jar' to classloader
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/dist/solr-langid-4.10.3.jar' to classloader
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/velocity/lib/commons-beanutils-1.8.3.jar' to classloader
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/velocity/lib/commons-collections-3.2.1.jar' to classloader
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/velocity/lib/velocity-1.7.jar' to classloader
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/velocity/lib/velocity-tools-2.0.jar' to classloader
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/dist/solr-velocity-4.10.3.jar' to classloader
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.update.SolrIndexConfig - IndexWriter infoStream solr logging is enabled
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrConfig - Using Lucene MatchVersion: 4.10.3
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.Config - Loaded SolrConfig: solrconfig.xml
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.schema.IndexSchema - Reading Solr Schema from /Users/carlroberts/dev/solr-4.10.3/db/conf/schema.xml
>> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.schema.IndexSchema - [db] Schema name=example
>> default core name=db
>> solr home=/Users/carlroberts/dev/solr-4.10.3/
>> db is loaded=false
>> core init failures={}
>> cores=[]
>> Exception in thread "main" org.apache.solr.common.SolrException: No such core: db
>> at org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:112)
>> at org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:124)
>> at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:68)
>> at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:54)
>> at solr.Test.main(Test.java:38)
>>
>> On 1/21/15, 12:31 PM, Alan Woodward wrote:
>>> Ah, OK, you need to include a logging jar in your classpath - the log4j and slf4j-log4j jars in the solr distribution will help here. Once you've got some logging set up, then you should be able to work out what's going wrong!
>>>
>>> Alan Woodward
>>> www.flax.co.uk
>>>
>>>
>>> On 21 Jan 2015, at 16:53, Carl Roberts wrote:
>>>
>>>> So far I have not been able to get the logging to work - here is what I get in the console prior to the exception:
>>>>
>>>> SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
>>>> SLF4J: Defaulting to no-operation (NOP) logger implementation
>>>> SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
>>>> db
>>>> /Users/carlroberts/dev/solr-4.10.3/
>>>> false
>>>> {}
>>>> []
>>>> /Users/carlroberts/dev/solr-4.10.3/
>>>>
>>>>
>>>> On 1/21/15, 11:50 AM, Alan Woodward wrote:
>>>>> That certainly looks like it ought to work. Is there log output that you could show us as well?
>>>>>
>>>>> Alan Woodward
>>>>> www.flax.co.uk
>>>>>
>>>>>
>>>>> On 21 Jan 2015, at 16:09, Carl Roberts wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I have downloaded the code and documentation for Solr version 4.10.3.
>>>>>>
>>>>>> I am trying to follow SolrJ Wiki guide and I am running into errors. The latest error is this one:
>>>>>>
>>>>>> Exception in thread "main" org.apache.solr.common.SolrException: No such core: db
>>>>>> at org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:112)
>>>>>> at org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:124)
>>>>>> at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:68)
>>>>>> at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:54)
>>>>>> at solr.Test.main(Test.java:39)
>>>>>>
>>>>>> My code is this:
>>>>>>
>>>>>> package solr;
>>>>>>
>>>>>> import java.io.File;
>>>>>> import java.io.IOException;
>>>>>> import java.util.ArrayList;
>>>>>> import java.util.Collection;
>>>>>>
>>>>>> import org.apache.solr.client.solrj.SolrServerException;
>>>>>> import org.apache.solr.client.solrj.embedded.EmbeddedSolrServer;
>>>>>> import org.apache.solr.common.SolrInputDocument;
>>>>>> import org.apache.solr.core.CoreContainer;
>>>>>> import org.apache.solr.core.SolrCore;
>>>>>>
>>>>>>
>>>>>> public class Test {
>>>>>> public static void main(String [] args){
>>>>>> CoreContainer container = new CoreContainer("/Users/carlroberts/dev/solr-4.10.3");
>>>>>> System.out.println(container.getDefaultCoreName());
>>>>>> System.out.println(container.getSolrHome());
>>>>>> container.load();
>>>>>> System.out.println(container.isLoaded("db"));
>>>>>> System.out.println(container.getCoreInitFailures());
>>>>>> Collection<SolrCore> cores = container.getCores();
>>>>>> System.out.println(cores);
>>>>>> EmbeddedSolrServer server = new EmbeddedSolrServer( container, "db" );
>>>>>> SolrInputDocument doc1 = new SolrInputDocument();
>>>>>> doc1.addField( "id", "id1", 1.0f );
>>>>>> doc1.addField( "name", "doc1", 1.0f );
>>>>>> doc1.addField( "price", 10 );
>>>>>> SolrInputDocument doc2 = new SolrInputDocument();
>>>>>> doc2.addField( "id", "id2", 1.0f );
>>>>>> doc2.addField( "name", "doc2", 1.0f );
>>>>>> doc2.addField( "price", 20 );
>>>>>> Collection<SolrInputDocument> docs = new
>>>>>> ArrayList<SolrInputDocument>();
>>>>>> docs.add( doc1 );
>>>>>> docs.add( doc2 );
>>>>>> try{
>>>>>> server.add( docs );
>>>>>> server.commit();
>>>>>> server.deleteByQuery( "*:*" );
>>>>>> }catch(IOException e){
>>>>>> e.printStackTrace();
>>>>>> }catch(SolrServerException e){
>>>>>> e.printStackTrace();
>>>>>> }
>>>>>> }
>>>>>> }
>>>>>>
>>>>>>
>>>>>> My solr.xml file is this:
>>>>>>
>>>>>> <?xml version="1.0" encoding="UTF-8" ?>
>>>>>> <!--
>>>>>> Licensed to the Apache Software Foundation (ASF) under one or more
>>>>>> contributor license agreements. See the NOTICE file distributed with
>>>>>> this work for additional information regarding copyright ownership.
>>>>>> The ASF licenses this file to You under the Apache License, Version 2.0
>>>>>> (the "License"); you may not use this file except in compliance with
>>>>>> the License. You may obtain a copy of the License at
>>>>>>
>>>>>> http://www.apache.org/licenses/LICENSE-2.0
>>>>>>
>>>>>> Unless required by applicable law or agreed to in writing, software
>>>>>> distributed under the License is distributed on an "AS IS" BASIS,
>>>>>> WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
>>>>>> See the License for the specific language governing permissions and
>>>>>> limitations under the License.
>>>>>> -->
>>>>>>
>>>>>> <!--
>>>>>> This is an example of a simple "solr.xml" file for configuring one or
>>>>>> more Solr Cores, as well as allowing Cores to be added, removed, and
>>>>>> reloaded via HTTP requests.
>>>>>>
>>>>>> More information about options available in this configuration file,
>>>>>> and Solr Core administration can be found online:
>>>>>> http://wiki.apache.org/solr/CoreAdmin
>>>>>> -->
>>>>>>
>>>>>> <solr>
>>>>>> <cores adminPath="/admin/cores" defaultCoreName="db">
>>>>>> <core default="true" instanceDir="db/" name="db"/>
>>>>>> </cores>
>>>>>> </solr>
>>>>>>
>>>>>> And my db/conf directory was copied from example/solr/collection/conf directory and it contains the solrconfig.xml file and schema.xml file.
>>>>>>
>>>>>> I have noticed that the documentation that shows how to use the EmbeddedSolarServer is outdated as it indicates I should use CoreContainer.Initializer class which doesn't exist, and container.load(path, file) which also doesn't exist.
>>>>>>
>>>>>> At this point I have no idea why I am getting the No such core error and I have googled it and there seems to be tons of threads showing this error but for different reasons, and I have tried all the suggested resolutions and get nowhere with this.
>>>>>>
>>>>>> Can you please help?
>>>>>>
>>>>>> Regards,
>>>>>>
>>>>>> Joe
>
Re: Errors using the Embedded Solar Server
Posted by Alan Woodward <al...@flax.co.uk>.
Aha, I think you're being stung by https://issues.apache.org/jira/browse/SOLR-6643. Which will be fixed in the upcoming 5.0 release, or you can patch your system with the patch attached to that issue.
Alan Woodward
www.flax.co.uk
On 21 Jan 2015, at 19:44, Carl Roberts wrote:
> Already did. And the logging gets me no closer to fixing the issue. Here is the logging.
>
> [main] INFO org.apache.solr.core.SolrResourceLoader - new SolrResourceLoader for directory: '/Users/carlroberts/dev/solr-4.10.3/'
> [main] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/lib/commons-logging-1.2.jar' to classloader
> [main] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/lib/servlet-api.jar' to classloader
> [main] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/lib/slf4j-simple-1.7.5.jar' to classloader
> [main] INFO org.apache.solr.core.ConfigSolr - Loading container configuration from /Users/carlroberts/dev/solr-4.10.3/solr.xml
> [main] INFO org.apache.solr.core.CoreContainer - New CoreContainer 1727098510
> [main] INFO org.apache.solr.core.CoreContainer - Loading cores into CoreContainer [instanceDir=/Users/carlroberts/dev/solr-4.10.3/]
> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory - Setting socketTimeout to: 0
> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory - Setting urlScheme to: null
> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory - Setting connTimeout to: 0
> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory - Setting maxConnectionsPerHost to: 20
> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory - Setting corePoolSize to: 0
> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory - Setting maximumPoolSize to: 2147483647
> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory - Setting maxThreadIdleTime to: 5
> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory - Setting sizeOfQueue to: -1
> [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory - Setting fairnessPolicy to: false
> [main] INFO org.apache.solr.update.UpdateShardHandler - Creating UpdateShardHandler HTTP client with params: socketTimeout=0&connTimeout=0&retry=false
> [main] INFO org.apache.solr.logging.LogWatcher - SLF4J impl is org.slf4j.impl.SimpleLoggerFactory
> [main] INFO org.apache.solr.logging.LogWatcher - No LogWatcher configured
> [main] INFO org.apache.solr.core.CoreContainer - Host Name: null
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - new SolrResourceLoader for directory: '/Users/carlroberts/dev/solr-4.10.3/db/'
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrConfig - Adding specified lib dirs to ClassLoader
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/apache-mime4j-core-0.7.2.jar' to classloader
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/apache-mime4j-dom-0.7.2.jar' to classloader
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/aspectjrt-1.6.11.jar' to classloader
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/bcmail-jdk15-1.45.jar' to classloader
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/bcprov-jdk15-1.45.jar' to classloader
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/boilerpipe-1.1.0.jar' to classloader
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/commons-compress-1.7.jar' to classloader
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/dom4j-1.6.1.jar' to classloader
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/fontbox-1.8.4.jar' to classloader
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/icu4j-53.1.jar' to classloader
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/isoparser-1.0-RC-1.jar' to classloader
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/jdom-1.0.jar' to classloader
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/jempbox-1.8.4.jar' to classloader
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/jhighlight-1.0.jar' to classloader
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/juniversalchardet-1.0.3.jar' to classloader
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/metadata-extractor-2.6.2.jar' to classloader
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/pdfbox-1.8.4.jar' to classloader
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/poi-3.10.1.jar' to classloader
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/poi-ooxml-3.10.1.jar' to classloader
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/poi-ooxml-schemas-3.10.1.jar' to classloader
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/poi-scratchpad-3.10.1.jar' to classloader
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/rome-0.9.jar' to classloader
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/tagsoup-1.2.1.jar' to classloader
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/tika-core-1.5.jar' to classloader
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/tika-parsers-1.5.jar' to classloader
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/tika-xmp-1.5.jar' to classloader
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/vorbis-java-core-0.1.jar' to classloader
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/vorbis-java-tika-0.1.jar' to classloader
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/xercesImpl-2.9.1.jar' to classloader
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/xmlbeans-2.6.0.jar' to classloader
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/xmpcore-5.1.2.jar' to classloader
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/xz-1.4.jar' to classloader
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/dist/solr-cell-4.10.3.jar' to classloader
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/attributes-binder-1.2.1.jar' to classloader
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/carrot2-mini-3.9.0.jar' to classloader
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/hppc-0.5.2.jar' to classloader
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/jackson-core-asl-1.9.13.jar' to classloader
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/jackson-mapper-asl-1.9.13.jar' to classloader
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/mahout-collections-1.0.jar' to classloader
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/mahout-math-0.6.jar' to classloader
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/simple-xml-2.7.jar' to classloader
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/dist/solr-clustering-4.10.3.jar' to classloader
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/langid/lib/jsonic-1.2.7.jar' to classloader
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/langid/lib/langdetect-1.1-20120112.jar' to classloader
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/dist/solr-langid-4.10.3.jar' to classloader
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/velocity/lib/commons-beanutils-1.8.3.jar' to classloader
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/velocity/lib/commons-collections-3.2.1.jar' to classloader
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/velocity/lib/velocity-1.7.jar' to classloader
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/contrib/velocity/lib/velocity-tools-2.0.jar' to classloader
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader - Adding 'file:/Users/carlroberts/dev/solr-4.10.3/dist/solr-velocity-4.10.3.jar' to classloader
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.update.SolrIndexConfig - IndexWriter infoStream solr logging is enabled
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrConfig - Using Lucene MatchVersion: 4.10.3
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.Config - Loaded SolrConfig: solrconfig.xml
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.schema.IndexSchema - Reading Solr Schema from /Users/carlroberts/dev/solr-4.10.3/db/conf/schema.xml
> [coreLoadExecutor-5-thread-1] INFO org.apache.solr.schema.IndexSchema - [db] Schema name=example
> default core name=db
> solr home=/Users/carlroberts/dev/solr-4.10.3/
> db is loaded=false
> core init failures={}
> cores=[]
> Exception in thread "main" org.apache.solr.common.SolrException: No such core: db
> at org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:112)
> at org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:124)
> at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:68)
> at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:54)
> at solr.Test.main(Test.java:38)
>
> On 1/21/15, 12:31 PM, Alan Woodward wrote:
>> Ah, OK, you need to include a logging jar in your classpath - the log4j and slf4j-log4j jars in the solr distribution will help here. Once you've got some logging set up, then you should be able to work out what's going wrong!
>>
>> Alan Woodward
>> www.flax.co.uk
>>
>>
>> On 21 Jan 2015, at 16:53, Carl Roberts wrote:
>>
>>> So far I have not been able to get the logging to work - here is what I get in the console prior to the exception:
>>>
>>> SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
>>> SLF4J: Defaulting to no-operation (NOP) logger implementation
>>> SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
>>> db
>>> /Users/carlroberts/dev/solr-4.10.3/
>>> false
>>> {}
>>> []
>>> /Users/carlroberts/dev/solr-4.10.3/
>>>
>>>
>>> On 1/21/15, 11:50 AM, Alan Woodward wrote:
>>>> That certainly looks like it ought to work. Is there log output that you could show us as well?
>>>>
>>>> Alan Woodward
>>>> www.flax.co.uk
>>>>
>>>>
>>>> On 21 Jan 2015, at 16:09, Carl Roberts wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I have downloaded the code and documentation for Solr version 4.10.3.
>>>>>
>>>>> I am trying to follow SolrJ Wiki guide and I am running into errors. The latest error is this one:
>>>>>
>>>>> Exception in thread "main" org.apache.solr.common.SolrException: No such core: db
>>>>> at org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:112)
>>>>> at org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:124)
>>>>> at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:68)
>>>>> at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:54)
>>>>> at solr.Test.main(Test.java:39)
>>>>>
>>>>> My code is this:
>>>>>
>>>>> package solr;
>>>>>
>>>>> import java.io.File;
>>>>> import java.io.IOException;
>>>>> import java.util.ArrayList;
>>>>> import java.util.Collection;
>>>>>
>>>>> import org.apache.solr.client.solrj.SolrServerException;
>>>>> import org.apache.solr.client.solrj.embedded.EmbeddedSolrServer;
>>>>> import org.apache.solr.common.SolrInputDocument;
>>>>> import org.apache.solr.core.CoreContainer;
>>>>> import org.apache.solr.core.SolrCore;
>>>>>
>>>>>
>>>>> public class Test {
>>>>> public static void main(String [] args){
>>>>> CoreContainer container = new CoreContainer("/Users/carlroberts/dev/solr-4.10.3");
>>>>> System.out.println(container.getDefaultCoreName());
>>>>> System.out.println(container.getSolrHome());
>>>>> container.load();
>>>>> System.out.println(container.isLoaded("db"));
>>>>> System.out.println(container.getCoreInitFailures());
>>>>> Collection<SolrCore> cores = container.getCores();
>>>>> System.out.println(cores);
>>>>> EmbeddedSolrServer server = new EmbeddedSolrServer( container, "db" );
>>>>> SolrInputDocument doc1 = new SolrInputDocument();
>>>>> doc1.addField( "id", "id1", 1.0f );
>>>>> doc1.addField( "name", "doc1", 1.0f );
>>>>> doc1.addField( "price", 10 );
>>>>> SolrInputDocument doc2 = new SolrInputDocument();
>>>>> doc2.addField( "id", "id2", 1.0f );
>>>>> doc2.addField( "name", "doc2", 1.0f );
>>>>> doc2.addField( "price", 20 );
>>>>> Collection<SolrInputDocument> docs = new
>>>>> ArrayList<SolrInputDocument>();
>>>>> docs.add( doc1 );
>>>>> docs.add( doc2 );
>>>>> try{
>>>>> server.add( docs );
>>>>> server.commit();
>>>>> server.deleteByQuery( "*:*" );
>>>>> }catch(IOException e){
>>>>> e.printStackTrace();
>>>>> }catch(SolrServerException e){
>>>>> e.printStackTrace();
>>>>> }
>>>>> }
>>>>> }
>>>>>
>>>>>
>>>>> My solr.xml file is this:
>>>>>
>>>>> <?xml version="1.0" encoding="UTF-8" ?>
>>>>> <!--
>>>>> Licensed to the Apache Software Foundation (ASF) under one or more
>>>>> contributor license agreements. See the NOTICE file distributed with
>>>>> this work for additional information regarding copyright ownership.
>>>>> The ASF licenses this file to You under the Apache License, Version 2.0
>>>>> (the "License"); you may not use this file except in compliance with
>>>>> the License. You may obtain a copy of the License at
>>>>>
>>>>> http://www.apache.org/licenses/LICENSE-2.0
>>>>>
>>>>> Unless required by applicable law or agreed to in writing, software
>>>>> distributed under the License is distributed on an "AS IS" BASIS,
>>>>> WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
>>>>> See the License for the specific language governing permissions and
>>>>> limitations under the License.
>>>>> -->
>>>>>
>>>>> <!--
>>>>> This is an example of a simple "solr.xml" file for configuring one or
>>>>> more Solr Cores, as well as allowing Cores to be added, removed, and
>>>>> reloaded via HTTP requests.
>>>>>
>>>>> More information about options available in this configuration file,
>>>>> and Solr Core administration can be found online:
>>>>> http://wiki.apache.org/solr/CoreAdmin
>>>>> -->
>>>>>
>>>>> <solr>
>>>>> <cores adminPath="/admin/cores" defaultCoreName="db">
>>>>> <core default="true" instanceDir="db/" name="db"/>
>>>>> </cores>
>>>>> </solr>
>>>>>
>>>>> And my db/conf directory was copied from example/solr/collection/conf directory and it contains the solrconfig.xml file and schema.xml file.
>>>>>
>>>>> I have noticed that the documentation that shows how to use the EmbeddedSolarServer is outdated as it indicates I should use CoreContainer.Initializer class which doesn't exist, and container.load(path, file) which also doesn't exist.
>>>>>
>>>>> At this point I have no idea why I am getting the No such core error and I have googled it and there seems to be tons of threads showing this error but for different reasons, and I have tried all the suggested resolutions and get nowhere with this.
>>>>>
>>>>> Can you please help?
>>>>>
>>>>> Regards,
>>>>>
>>>>> Joe
>>
>
Re: Errors using the Embedded Solar Server
Posted by Carl Roberts <ca...@gmail.com>.
Already did. And the logging gets me no closer to fixing the issue.
Here is the logging.
[main] INFO org.apache.solr.core.SolrResourceLoader - new
SolrResourceLoader for directory: '/Users/carlroberts/dev/solr-4.10.3/'
[main] INFO org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/lib/commons-logging-1.2.jar' to
classloader
[main] INFO org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/lib/servlet-api.jar' to classloader
[main] INFO org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/lib/slf4j-simple-1.7.5.jar' to
classloader
[main] INFO org.apache.solr.core.ConfigSolr - Loading container
configuration from /Users/carlroberts/dev/solr-4.10.3/solr.xml
[main] INFO org.apache.solr.core.CoreContainer - New CoreContainer
1727098510
[main] INFO org.apache.solr.core.CoreContainer - Loading cores into
CoreContainer [instanceDir=/Users/carlroberts/dev/solr-4.10.3/]
[main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory -
Setting socketTimeout to: 0
[main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory -
Setting urlScheme to: null
[main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory -
Setting connTimeout to: 0
[main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory -
Setting maxConnectionsPerHost to: 20
[main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory -
Setting corePoolSize to: 0
[main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory -
Setting maximumPoolSize to: 2147483647
[main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory -
Setting maxThreadIdleTime to: 5
[main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory -
Setting sizeOfQueue to: -1
[main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory -
Setting fairnessPolicy to: false
[main] INFO org.apache.solr.update.UpdateShardHandler - Creating
UpdateShardHandler HTTP client with params:
socketTimeout=0&connTimeout=0&retry=false
[main] INFO org.apache.solr.logging.LogWatcher - SLF4J impl is
org.slf4j.impl.SimpleLoggerFactory
[main] INFO org.apache.solr.logging.LogWatcher - No LogWatcher configured
[main] INFO org.apache.solr.core.CoreContainer - Host Name: null
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - new SolrResourceLoader for
directory: '/Users/carlroberts/dev/solr-4.10.3/db/'
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrConfig -
Adding specified lib dirs to ClassLoader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/apache-mime4j-core-0.7.2.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/apache-mime4j-dom-0.7.2.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/aspectjrt-1.6.11.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/bcmail-jdk15-1.45.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/bcprov-jdk15-1.45.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/boilerpipe-1.1.0.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/commons-compress-1.7.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/dom4j-1.6.1.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/fontbox-1.8.4.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/icu4j-53.1.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/isoparser-1.0-RC-1.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/jdom-1.0.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/jempbox-1.8.4.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/jhighlight-1.0.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/juniversalchardet-1.0.3.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/metadata-extractor-2.6.2.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/pdfbox-1.8.4.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/poi-3.10.1.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/poi-ooxml-3.10.1.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/poi-ooxml-schemas-3.10.1.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/poi-scratchpad-3.10.1.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/rome-0.9.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/tagsoup-1.2.1.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/tika-core-1.5.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/tika-parsers-1.5.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/tika-xmp-1.5.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/vorbis-java-core-0.1.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/vorbis-java-tika-0.1.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/xercesImpl-2.9.1.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/xmlbeans-2.6.0.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/xmpcore-5.1.2.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/extraction/lib/xz-1.4.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/dist/solr-cell-4.10.3.jar' to
classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/attributes-binder-1.2.1.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/carrot2-mini-3.9.0.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/hppc-0.5.2.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/jackson-core-asl-1.9.13.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/jackson-mapper-asl-1.9.13.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/mahout-collections-1.0.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/mahout-math-0.6.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/clustering/lib/simple-xml-2.7.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/dist/solr-clustering-4.10.3.jar' to
classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/langid/lib/jsonic-1.2.7.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/langid/lib/langdetect-1.1-20120112.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/dist/solr-langid-4.10.3.jar' to
classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/velocity/lib/commons-beanutils-1.8.3.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/velocity/lib/commons-collections-3.2.1.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/velocity/lib/velocity-1.7.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/contrib/velocity/lib/velocity-tools-2.0.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.core.SolrResourceLoader - Adding
'file:/Users/carlroberts/dev/solr-4.10.3/dist/solr-velocity-4.10.3.jar'
to classloader
[coreLoadExecutor-5-thread-1] INFO
org.apache.solr.update.SolrIndexConfig - IndexWriter infoStream solr
logging is enabled
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrConfig -
Using Lucene MatchVersion: 4.10.3
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.Config - Loaded
SolrConfig: solrconfig.xml
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.schema.IndexSchema -
Reading Solr Schema from
/Users/carlroberts/dev/solr-4.10.3/db/conf/schema.xml
[coreLoadExecutor-5-thread-1] INFO org.apache.solr.schema.IndexSchema -
[db] Schema name=example
default core name=db
solr home=/Users/carlroberts/dev/solr-4.10.3/
db is loaded=false
core init failures={}
cores=[]
Exception in thread "main" org.apache.solr.common.SolrException: No such
core: db
at
org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:112)
at
org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:124)
at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:68)
at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:54)
at solr.Test.main(Test.java:38)
On 1/21/15, 12:31 PM, Alan Woodward wrote:
> Ah, OK, you need to include a logging jar in your classpath - the log4j and slf4j-log4j jars in the solr distribution will help here. Once you've got some logging set up, then you should be able to work out what's going wrong!
>
> Alan Woodward
> www.flax.co.uk
>
>
> On 21 Jan 2015, at 16:53, Carl Roberts wrote:
>
>> So far I have not been able to get the logging to work - here is what I get in the console prior to the exception:
>>
>> SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
>> SLF4J: Defaulting to no-operation (NOP) logger implementation
>> SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
>> db
>> /Users/carlroberts/dev/solr-4.10.3/
>> false
>> {}
>> []
>> /Users/carlroberts/dev/solr-4.10.3/
>>
>>
>> On 1/21/15, 11:50 AM, Alan Woodward wrote:
>>> That certainly looks like it ought to work. Is there log output that you could show us as well?
>>>
>>> Alan Woodward
>>> www.flax.co.uk
>>>
>>>
>>> On 21 Jan 2015, at 16:09, Carl Roberts wrote:
>>>
>>>> Hi,
>>>>
>>>> I have downloaded the code and documentation for Solr version 4.10.3.
>>>>
>>>> I am trying to follow SolrJ Wiki guide and I am running into errors. The latest error is this one:
>>>>
>>>> Exception in thread "main" org.apache.solr.common.SolrException: No such core: db
>>>> at org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:112)
>>>> at org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:124)
>>>> at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:68)
>>>> at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:54)
>>>> at solr.Test.main(Test.java:39)
>>>>
>>>> My code is this:
>>>>
>>>> package solr;
>>>>
>>>> import java.io.File;
>>>> import java.io.IOException;
>>>> import java.util.ArrayList;
>>>> import java.util.Collection;
>>>>
>>>> import org.apache.solr.client.solrj.SolrServerException;
>>>> import org.apache.solr.client.solrj.embedded.EmbeddedSolrServer;
>>>> import org.apache.solr.common.SolrInputDocument;
>>>> import org.apache.solr.core.CoreContainer;
>>>> import org.apache.solr.core.SolrCore;
>>>>
>>>>
>>>> public class Test {
>>>> public static void main(String [] args){
>>>> CoreContainer container = new CoreContainer("/Users/carlroberts/dev/solr-4.10.3");
>>>> System.out.println(container.getDefaultCoreName());
>>>> System.out.println(container.getSolrHome());
>>>> container.load();
>>>> System.out.println(container.isLoaded("db"));
>>>> System.out.println(container.getCoreInitFailures());
>>>> Collection<SolrCore> cores = container.getCores();
>>>> System.out.println(cores);
>>>> EmbeddedSolrServer server = new EmbeddedSolrServer( container, "db" );
>>>> SolrInputDocument doc1 = new SolrInputDocument();
>>>> doc1.addField( "id", "id1", 1.0f );
>>>> doc1.addField( "name", "doc1", 1.0f );
>>>> doc1.addField( "price", 10 );
>>>> SolrInputDocument doc2 = new SolrInputDocument();
>>>> doc2.addField( "id", "id2", 1.0f );
>>>> doc2.addField( "name", "doc2", 1.0f );
>>>> doc2.addField( "price", 20 );
>>>> Collection<SolrInputDocument> docs = new
>>>> ArrayList<SolrInputDocument>();
>>>> docs.add( doc1 );
>>>> docs.add( doc2 );
>>>> try{
>>>> server.add( docs );
>>>> server.commit();
>>>> server.deleteByQuery( "*:*" );
>>>> }catch(IOException e){
>>>> e.printStackTrace();
>>>> }catch(SolrServerException e){
>>>> e.printStackTrace();
>>>> }
>>>> }
>>>> }
>>>>
>>>>
>>>> My solr.xml file is this:
>>>>
>>>> <?xml version="1.0" encoding="UTF-8" ?>
>>>> <!--
>>>> Licensed to the Apache Software Foundation (ASF) under one or more
>>>> contributor license agreements. See the NOTICE file distributed with
>>>> this work for additional information regarding copyright ownership.
>>>> The ASF licenses this file to You under the Apache License, Version 2.0
>>>> (the "License"); you may not use this file except in compliance with
>>>> the License. You may obtain a copy of the License at
>>>>
>>>> http://www.apache.org/licenses/LICENSE-2.0
>>>>
>>>> Unless required by applicable law or agreed to in writing, software
>>>> distributed under the License is distributed on an "AS IS" BASIS,
>>>> WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
>>>> See the License for the specific language governing permissions and
>>>> limitations under the License.
>>>> -->
>>>>
>>>> <!--
>>>> This is an example of a simple "solr.xml" file for configuring one or
>>>> more Solr Cores, as well as allowing Cores to be added, removed, and
>>>> reloaded via HTTP requests.
>>>>
>>>> More information about options available in this configuration file,
>>>> and Solr Core administration can be found online:
>>>> http://wiki.apache.org/solr/CoreAdmin
>>>> -->
>>>>
>>>> <solr>
>>>> <cores adminPath="/admin/cores" defaultCoreName="db">
>>>> <core default="true" instanceDir="db/" name="db"/>
>>>> </cores>
>>>> </solr>
>>>>
>>>> And my db/conf directory was copied from example/solr/collection/conf directory and it contains the solrconfig.xml file and schema.xml file.
>>>>
>>>> I have noticed that the documentation that shows how to use the EmbeddedSolarServer is outdated as it indicates I should use CoreContainer.Initializer class which doesn't exist, and container.load(path, file) which also doesn't exist.
>>>>
>>>> At this point I have no idea why I am getting the No such core error and I have googled it and there seems to be tons of threads showing this error but for different reasons, and I have tried all the suggested resolutions and get nowhere with this.
>>>>
>>>> Can you please help?
>>>>
>>>> Regards,
>>>>
>>>> Joe
>
Re: Errors using the Embedded Solar Server
Posted by Alan Woodward <al...@flax.co.uk>.
Ah, OK, you need to include a logging jar in your classpath - the log4j and slf4j-log4j jars in the solr distribution will help here. Once you've got some logging set up, then you should be able to work out what's going wrong!
Alan Woodward
www.flax.co.uk
On 21 Jan 2015, at 16:53, Carl Roberts wrote:
> So far I have not been able to get the logging to work - here is what I get in the console prior to the exception:
>
> SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
> SLF4J: Defaulting to no-operation (NOP) logger implementation
> SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
> db
> /Users/carlroberts/dev/solr-4.10.3/
> false
> {}
> []
> /Users/carlroberts/dev/solr-4.10.3/
>
>
> On 1/21/15, 11:50 AM, Alan Woodward wrote:
>> That certainly looks like it ought to work. Is there log output that you could show us as well?
>>
>> Alan Woodward
>> www.flax.co.uk
>>
>>
>> On 21 Jan 2015, at 16:09, Carl Roberts wrote:
>>
>>> Hi,
>>>
>>> I have downloaded the code and documentation for Solr version 4.10.3.
>>>
>>> I am trying to follow SolrJ Wiki guide and I am running into errors. The latest error is this one:
>>>
>>> Exception in thread "main" org.apache.solr.common.SolrException: No such core: db
>>> at org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:112)
>>> at org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:124)
>>> at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:68)
>>> at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:54)
>>> at solr.Test.main(Test.java:39)
>>>
>>> My code is this:
>>>
>>> package solr;
>>>
>>> import java.io.File;
>>> import java.io.IOException;
>>> import java.util.ArrayList;
>>> import java.util.Collection;
>>>
>>> import org.apache.solr.client.solrj.SolrServerException;
>>> import org.apache.solr.client.solrj.embedded.EmbeddedSolrServer;
>>> import org.apache.solr.common.SolrInputDocument;
>>> import org.apache.solr.core.CoreContainer;
>>> import org.apache.solr.core.SolrCore;
>>>
>>>
>>> public class Test {
>>> public static void main(String [] args){
>>> CoreContainer container = new CoreContainer("/Users/carlroberts/dev/solr-4.10.3");
>>> System.out.println(container.getDefaultCoreName());
>>> System.out.println(container.getSolrHome());
>>> container.load();
>>> System.out.println(container.isLoaded("db"));
>>> System.out.println(container.getCoreInitFailures());
>>> Collection<SolrCore> cores = container.getCores();
>>> System.out.println(cores);
>>> EmbeddedSolrServer server = new EmbeddedSolrServer( container, "db" );
>>> SolrInputDocument doc1 = new SolrInputDocument();
>>> doc1.addField( "id", "id1", 1.0f );
>>> doc1.addField( "name", "doc1", 1.0f );
>>> doc1.addField( "price", 10 );
>>> SolrInputDocument doc2 = new SolrInputDocument();
>>> doc2.addField( "id", "id2", 1.0f );
>>> doc2.addField( "name", "doc2", 1.0f );
>>> doc2.addField( "price", 20 );
>>> Collection<SolrInputDocument> docs = new
>>> ArrayList<SolrInputDocument>();
>>> docs.add( doc1 );
>>> docs.add( doc2 );
>>> try{
>>> server.add( docs );
>>> server.commit();
>>> server.deleteByQuery( "*:*" );
>>> }catch(IOException e){
>>> e.printStackTrace();
>>> }catch(SolrServerException e){
>>> e.printStackTrace();
>>> }
>>> }
>>> }
>>>
>>>
>>> My solr.xml file is this:
>>>
>>> <?xml version="1.0" encoding="UTF-8" ?>
>>> <!--
>>> Licensed to the Apache Software Foundation (ASF) under one or more
>>> contributor license agreements. See the NOTICE file distributed with
>>> this work for additional information regarding copyright ownership.
>>> The ASF licenses this file to You under the Apache License, Version 2.0
>>> (the "License"); you may not use this file except in compliance with
>>> the License. You may obtain a copy of the License at
>>>
>>> http://www.apache.org/licenses/LICENSE-2.0
>>>
>>> Unless required by applicable law or agreed to in writing, software
>>> distributed under the License is distributed on an "AS IS" BASIS,
>>> WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
>>> See the License for the specific language governing permissions and
>>> limitations under the License.
>>> -->
>>>
>>> <!--
>>> This is an example of a simple "solr.xml" file for configuring one or
>>> more Solr Cores, as well as allowing Cores to be added, removed, and
>>> reloaded via HTTP requests.
>>>
>>> More information about options available in this configuration file,
>>> and Solr Core administration can be found online:
>>> http://wiki.apache.org/solr/CoreAdmin
>>> -->
>>>
>>> <solr>
>>> <cores adminPath="/admin/cores" defaultCoreName="db">
>>> <core default="true" instanceDir="db/" name="db"/>
>>> </cores>
>>> </solr>
>>>
>>> And my db/conf directory was copied from example/solr/collection/conf directory and it contains the solrconfig.xml file and schema.xml file.
>>>
>>> I have noticed that the documentation that shows how to use the EmbeddedSolarServer is outdated as it indicates I should use CoreContainer.Initializer class which doesn't exist, and container.load(path, file) which also doesn't exist.
>>>
>>> At this point I have no idea why I am getting the No such core error and I have googled it and there seems to be tons of threads showing this error but for different reasons, and I have tried all the suggested resolutions and get nowhere with this.
>>>
>>> Can you please help?
>>>
>>> Regards,
>>>
>>> Joe
>>
>
Re: Errors using the Embedded Solar Server
Posted by Shawn Heisey <ap...@elyograg.org>.
On 1/21/2015 9:56 AM, Carl Roberts wrote:
> BTW - I don't know if this will help also, but here is a screen shot
> of my classpath in eclipse.
The URL in the slf4j error message does describe the problem with
logging, but if you know nothing about slf4j, it probably won't help you
much.
Make sure you're including all the jars from example/lib/ext in the
download in your project's lib directory, as well as the
log4j.properties file from the resources directory. You will probably
need to edit the log4j.properties file to change the location of the
logfile.
Thanks,
Shawn
Re: Errors using the Embedded Solar Server
Posted by Carl Roberts <ca...@gmail.com>.
BTW - I don't know if this will help also, but here is a screen shot of
my classpath in eclipse.
On 1/21/15, 11:53 AM, Carl Roberts wrote:
> So far I have not been able to get the logging to work - here is what
> I get in the console prior to the exception:
>
> SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
> SLF4J: Defaulting to no-operation (NOP) logger implementation
> SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for
> further details.
> db
> /Users/carlroberts/dev/solr-4.10.3/
> false
> {}
> []
> /Users/carlroberts/dev/solr-4.10.3/
>
>
> On 1/21/15, 11:50 AM, Alan Woodward wrote:
>> That certainly looks like it ought to work. Is there log output that
>> you could show us as well?
>>
>> Alan Woodward
>> www.flax.co.uk
>>
>>
>> On 21 Jan 2015, at 16:09, Carl Roberts wrote:
>>
>>> Hi,
>>>
>>> I have downloaded the code and documentation for Solr version 4.10.3.
>>>
>>> I am trying to follow SolrJ Wiki guide and I am running into
>>> errors. The latest error is this one:
>>>
>>> Exception in thread "main" org.apache.solr.common.SolrException: No
>>> such core: db
>>> at
>>> org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:112)
>>> at
>>> org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:124)
>>> at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:68)
>>> at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:54)
>>> at solr.Test.main(Test.java:39)
>>>
>>> My code is this:
>>>
>>> package solr;
>>>
>>> import java.io.File;
>>> import java.io.IOException;
>>> import java.util.ArrayList;
>>> import java.util.Collection;
>>>
>>> import org.apache.solr.client.solrj.SolrServerException;
>>> import org.apache.solr.client.solrj.embedded.EmbeddedSolrServer;
>>> import org.apache.solr.common.SolrInputDocument;
>>> import org.apache.solr.core.CoreContainer;
>>> import org.apache.solr.core.SolrCore;
>>>
>>>
>>> public class Test {
>>> public static void main(String [] args){
>>> CoreContainer container = new
>>> CoreContainer("/Users/carlroberts/dev/solr-4.10.3");
>>> System.out.println(container.getDefaultCoreName());
>>> System.out.println(container.getSolrHome());
>>> container.load();
>>> System.out.println(container.isLoaded("db"));
>>> System.out.println(container.getCoreInitFailures());
>>> Collection<SolrCore> cores = container.getCores();
>>> System.out.println(cores);
>>> EmbeddedSolrServer server = new EmbeddedSolrServer(
>>> container, "db" );
>>> SolrInputDocument doc1 = new SolrInputDocument();
>>> doc1.addField( "id", "id1", 1.0f );
>>> doc1.addField( "name", "doc1", 1.0f );
>>> doc1.addField( "price", 10 );
>>> SolrInputDocument doc2 = new SolrInputDocument();
>>> doc2.addField( "id", "id2", 1.0f );
>>> doc2.addField( "name", "doc2", 1.0f );
>>> doc2.addField( "price", 20 );
>>> Collection<SolrInputDocument> docs = new
>>> ArrayList<SolrInputDocument>();
>>> docs.add( doc1 );
>>> docs.add( doc2 );
>>> try{
>>> server.add( docs );
>>> server.commit();
>>> server.deleteByQuery( "*:*" );
>>> }catch(IOException e){
>>> e.printStackTrace();
>>> }catch(SolrServerException e){
>>> e.printStackTrace();
>>> }
>>> }
>>> }
>>>
>>>
>>> My solr.xml file is this:
>>>
>>> <?xml version="1.0" encoding="UTF-8" ?>
>>> <!--
>>> Licensed to the Apache Software Foundation (ASF) under one or more
>>> contributor license agreements. See the NOTICE file distributed with
>>> this work for additional information regarding copyright ownership.
>>> The ASF licenses this file to You under the Apache License, Version 2.0
>>> (the "License"); you may not use this file except in compliance with
>>> the License. You may obtain a copy of the License at
>>>
>>> http://www.apache.org/licenses/LICENSE-2.0
>>>
>>> Unless required by applicable law or agreed to in writing, software
>>> distributed under the License is distributed on an "AS IS" BASIS,
>>> WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
>>> implied.
>>> See the License for the specific language governing permissions and
>>> limitations under the License.
>>> -->
>>>
>>> <!--
>>> This is an example of a simple "solr.xml" file for configuring
>>> one or
>>> more Solr Cores, as well as allowing Cores to be added, removed, and
>>> reloaded via HTTP requests.
>>>
>>> More information about options available in this configuration file,
>>> and Solr Core administration can be found online:
>>> http://wiki.apache.org/solr/CoreAdmin
>>> -->
>>>
>>> <solr>
>>> <cores adminPath="/admin/cores" defaultCoreName="db">
>>> <core default="true" instanceDir="db/" name="db"/>
>>> </cores>
>>> </solr>
>>>
>>> And my db/conf directory was copied from
>>> example/solr/collection/conf directory and it contains the
>>> solrconfig.xml file and schema.xml file.
>>>
>>> I have noticed that the documentation that shows how to use the
>>> EmbeddedSolarServer is outdated as it indicates I should use
>>> CoreContainer.Initializer class which doesn't exist, and
>>> container.load(path, file) which also doesn't exist.
>>>
>>> At this point I have no idea why I am getting the No such core error
>>> and I have googled it and there seems to be tons of threads showing
>>> this error but for different reasons, and I have tried all the
>>> suggested resolutions and get nowhere with this.
>>>
>>> Can you please help?
>>>
>>> Regards,
>>>
>>> Joe
>>
>
Re: Errors using the Embedded Solar Server
Posted by Carl Roberts <ca...@gmail.com>.
So far I have not been able to get the logging to work - here is what I
get in the console prior to the exception:
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for
further details.
db
/Users/carlroberts/dev/solr-4.10.3/
false
{}
[]
/Users/carlroberts/dev/solr-4.10.3/
On 1/21/15, 11:50 AM, Alan Woodward wrote:
> That certainly looks like it ought to work. Is there log output that you could show us as well?
>
> Alan Woodward
> www.flax.co.uk
>
>
> On 21 Jan 2015, at 16:09, Carl Roberts wrote:
>
>> Hi,
>>
>> I have downloaded the code and documentation for Solr version 4.10.3.
>>
>> I am trying to follow SolrJ Wiki guide and I am running into errors. The latest error is this one:
>>
>> Exception in thread "main" org.apache.solr.common.SolrException: No such core: db
>> at org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:112)
>> at org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:124)
>> at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:68)
>> at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:54)
>> at solr.Test.main(Test.java:39)
>>
>> My code is this:
>>
>> package solr;
>>
>> import java.io.File;
>> import java.io.IOException;
>> import java.util.ArrayList;
>> import java.util.Collection;
>>
>> import org.apache.solr.client.solrj.SolrServerException;
>> import org.apache.solr.client.solrj.embedded.EmbeddedSolrServer;
>> import org.apache.solr.common.SolrInputDocument;
>> import org.apache.solr.core.CoreContainer;
>> import org.apache.solr.core.SolrCore;
>>
>>
>> public class Test {
>> public static void main(String [] args){
>> CoreContainer container = new CoreContainer("/Users/carlroberts/dev/solr-4.10.3");
>> System.out.println(container.getDefaultCoreName());
>> System.out.println(container.getSolrHome());
>> container.load();
>> System.out.println(container.isLoaded("db"));
>> System.out.println(container.getCoreInitFailures());
>> Collection<SolrCore> cores = container.getCores();
>> System.out.println(cores);
>> EmbeddedSolrServer server = new EmbeddedSolrServer( container, "db" );
>> SolrInputDocument doc1 = new SolrInputDocument();
>> doc1.addField( "id", "id1", 1.0f );
>> doc1.addField( "name", "doc1", 1.0f );
>> doc1.addField( "price", 10 );
>> SolrInputDocument doc2 = new SolrInputDocument();
>> doc2.addField( "id", "id2", 1.0f );
>> doc2.addField( "name", "doc2", 1.0f );
>> doc2.addField( "price", 20 );
>> Collection<SolrInputDocument> docs = new
>> ArrayList<SolrInputDocument>();
>> docs.add( doc1 );
>> docs.add( doc2 );
>> try{
>> server.add( docs );
>> server.commit();
>> server.deleteByQuery( "*:*" );
>> }catch(IOException e){
>> e.printStackTrace();
>> }catch(SolrServerException e){
>> e.printStackTrace();
>> }
>> }
>> }
>>
>>
>> My solr.xml file is this:
>>
>> <?xml version="1.0" encoding="UTF-8" ?>
>> <!--
>> Licensed to the Apache Software Foundation (ASF) under one or more
>> contributor license agreements. See the NOTICE file distributed with
>> this work for additional information regarding copyright ownership.
>> The ASF licenses this file to You under the Apache License, Version 2.0
>> (the "License"); you may not use this file except in compliance with
>> the License. You may obtain a copy of the License at
>>
>> http://www.apache.org/licenses/LICENSE-2.0
>>
>> Unless required by applicable law or agreed to in writing, software
>> distributed under the License is distributed on an "AS IS" BASIS,
>> WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
>> See the License for the specific language governing permissions and
>> limitations under the License.
>> -->
>>
>> <!--
>> This is an example of a simple "solr.xml" file for configuring one or
>> more Solr Cores, as well as allowing Cores to be added, removed, and
>> reloaded via HTTP requests.
>>
>> More information about options available in this configuration file,
>> and Solr Core administration can be found online:
>> http://wiki.apache.org/solr/CoreAdmin
>> -->
>>
>> <solr>
>> <cores adminPath="/admin/cores" defaultCoreName="db">
>> <core default="true" instanceDir="db/" name="db"/>
>> </cores>
>> </solr>
>>
>> And my db/conf directory was copied from example/solr/collection/conf directory and it contains the solrconfig.xml file and schema.xml file.
>>
>> I have noticed that the documentation that shows how to use the EmbeddedSolarServer is outdated as it indicates I should use CoreContainer.Initializer class which doesn't exist, and container.load(path, file) which also doesn't exist.
>>
>> At this point I have no idea why I am getting the No such core error and I have googled it and there seems to be tons of threads showing this error but for different reasons, and I have tried all the suggested resolutions and get nowhere with this.
>>
>> Can you please help?
>>
>> Regards,
>>
>> Joe
>
Re: Errors using the Embedded Solar Server
Posted by Alan Woodward <al...@flax.co.uk>.
That certainly looks like it ought to work. Is there log output that you could show us as well?
Alan Woodward
www.flax.co.uk
On 21 Jan 2015, at 16:09, Carl Roberts wrote:
> Hi,
>
> I have downloaded the code and documentation for Solr version 4.10.3.
>
> I am trying to follow SolrJ Wiki guide and I am running into errors. The latest error is this one:
>
> Exception in thread "main" org.apache.solr.common.SolrException: No such core: db
> at org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:112)
> at org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:124)
> at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:68)
> at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:54)
> at solr.Test.main(Test.java:39)
>
> My code is this:
>
> package solr;
>
> import java.io.File;
> import java.io.IOException;
> import java.util.ArrayList;
> import java.util.Collection;
>
> import org.apache.solr.client.solrj.SolrServerException;
> import org.apache.solr.client.solrj.embedded.EmbeddedSolrServer;
> import org.apache.solr.common.SolrInputDocument;
> import org.apache.solr.core.CoreContainer;
> import org.apache.solr.core.SolrCore;
>
>
> public class Test {
> public static void main(String [] args){
> CoreContainer container = new CoreContainer("/Users/carlroberts/dev/solr-4.10.3");
> System.out.println(container.getDefaultCoreName());
> System.out.println(container.getSolrHome());
> container.load();
> System.out.println(container.isLoaded("db"));
> System.out.println(container.getCoreInitFailures());
> Collection<SolrCore> cores = container.getCores();
> System.out.println(cores);
> EmbeddedSolrServer server = new EmbeddedSolrServer( container, "db" );
> SolrInputDocument doc1 = new SolrInputDocument();
> doc1.addField( "id", "id1", 1.0f );
> doc1.addField( "name", "doc1", 1.0f );
> doc1.addField( "price", 10 );
> SolrInputDocument doc2 = new SolrInputDocument();
> doc2.addField( "id", "id2", 1.0f );
> doc2.addField( "name", "doc2", 1.0f );
> doc2.addField( "price", 20 );
> Collection<SolrInputDocument> docs = new
> ArrayList<SolrInputDocument>();
> docs.add( doc1 );
> docs.add( doc2 );
> try{
> server.add( docs );
> server.commit();
> server.deleteByQuery( "*:*" );
> }catch(IOException e){
> e.printStackTrace();
> }catch(SolrServerException e){
> e.printStackTrace();
> }
> }
> }
>
>
> My solr.xml file is this:
>
> <?xml version="1.0" encoding="UTF-8" ?>
> <!--
> Licensed to the Apache Software Foundation (ASF) under one or more
> contributor license agreements. See the NOTICE file distributed with
> this work for additional information regarding copyright ownership.
> The ASF licenses this file to You under the Apache License, Version 2.0
> (the "License"); you may not use this file except in compliance with
> the License. You may obtain a copy of the License at
>
> http://www.apache.org/licenses/LICENSE-2.0
>
> Unless required by applicable law or agreed to in writing, software
> distributed under the License is distributed on an "AS IS" BASIS,
> WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> See the License for the specific language governing permissions and
> limitations under the License.
> -->
>
> <!--
> This is an example of a simple "solr.xml" file for configuring one or
> more Solr Cores, as well as allowing Cores to be added, removed, and
> reloaded via HTTP requests.
>
> More information about options available in this configuration file,
> and Solr Core administration can be found online:
> http://wiki.apache.org/solr/CoreAdmin
> -->
>
> <solr>
> <cores adminPath="/admin/cores" defaultCoreName="db">
> <core default="true" instanceDir="db/" name="db"/>
> </cores>
> </solr>
>
> And my db/conf directory was copied from example/solr/collection/conf directory and it contains the solrconfig.xml file and schema.xml file.
>
> I have noticed that the documentation that shows how to use the EmbeddedSolarServer is outdated as it indicates I should use CoreContainer.Initializer class which doesn't exist, and container.load(path, file) which also doesn't exist.
>
> At this point I have no idea why I am getting the No such core error and I have googled it and there seems to be tons of threads showing this error but for different reasons, and I have tried all the suggested resolutions and get nowhere with this.
>
> Can you please help?
>
> Regards,
>
> Joe