- 浏览: 2188376 次
- 性别:
- 来自: 北京
文章分类
- 全部博客 (682)
- 软件思想 (7)
- Lucene(修真篇) (17)
- Lucene(仙界篇) (20)
- Lucene(神界篇) (11)
- Solr (48)
- Hadoop (77)
- Spark (38)
- Hbase (26)
- Hive (19)
- Pig (25)
- ELK (64)
- Zookeeper (12)
- JAVA (119)
- Linux (59)
- 多线程 (8)
- Nutch (5)
- JAVA EE (21)
- Oracle (7)
- Python (32)
- Xml (5)
- Gson (1)
- Cygwin (1)
- JavaScript (4)
- MySQL (9)
- Lucene/Solr(转) (5)
- 缓存 (2)
- Github/Git (1)
- 开源爬虫 (1)
- Hadoop运维 (7)
- shell命令 (9)
- 生活感悟 (42)
- shell编程 (23)
- Scala (11)
- MongoDB (3)
- docker (2)
- Nodejs (3)
- Neo4j (5)
- storm (3)
- opencv (1)
最新评论
-
qindongliang1922:
粟谷_sugu 写道不太理解“分词字段存储docvalue是没 ...
浅谈Lucene中的DocValues -
粟谷_sugu:
不太理解“分词字段存储docvalue是没有意义的”,这句话, ...
浅谈Lucene中的DocValues -
yin_bp:
高性能elasticsearch ORM开发库使用文档http ...
为什么说Elasticsearch搜索是近实时的? -
hackWang:
请问博主,有用solr做电商的搜索项目?
Solr中Group和Facet的用法 -
章司nana:
遇到的问题同楼上 为什么会返回null
Lucene4.3开发之第八步之渡劫初期(八)
在eclipse中调试solr,便于我们更加的清晰的了解solr的运行原理,今天散仙,就详细的写一下如何eclipse部署solr(4.10.0版本)的web工程。
首先在eclipse(散仙这里是4.2)里,新建一个动态的Web工程,
然后起一个项目名叫solrweb,如果第一次使用需要配置一下web容器,tomcat或jetty
点击new runtime配置tomcat容器,前提是你下载好的tomcat解压保存在某个盘符下,
然后配置tomcat的路径
然后finish,建完后的项目结果如下所示:
接下来,删除WebContent下的所有内容,到解压后的solr的solr-4.10.0\example\webapps目录下,解压solr.war包,然后拷贝解压后所有的东西(除了solr.war本身),到刚才被清空的WebContent目录下:
拷贝完后的项目工程如下所以,注意这里可能由于js校验出错,不影响运行,可忽略,如果有洁癖的同学们,可以找下,如何去掉js的校验即可。
然后在E盘目录下,新建一个文件夹命名为solr_home,然后拷贝solr-4.10.0\example\solr下的所有文件到这个solr_home的文件夹下,拷贝后的目录如下:
接下来配置在eclipse的solrweb项目里的WebContent\WEB-INF下的web.xml文件去掉注释solr_home的标签,把刚才在E盘配置的路径放进去:
然后拷贝solr\solr-4.10.0\example\lib\ext下所有的日志包到我们项目的lib目录下:
并拷贝solr-4.10.0\example\resources\下的log4j.properties文件到我们工程的src目录下
,然后右击项目启动,run server,我们的控制台就会打印如下信息:
成功后的截图如下,散仙在admin界面又定义了自己的一个h1标签:
至此,大功告成!如果我们想要调试solr的源码,我们就可以在src目录,将solr的源码包放进去,这样就可以调试了。
首先在eclipse(散仙这里是4.2)里,新建一个动态的Web工程,
然后起一个项目名叫solrweb,如果第一次使用需要配置一下web容器,tomcat或jetty
点击new runtime配置tomcat容器,前提是你下载好的tomcat解压保存在某个盘符下,
然后配置tomcat的路径
然后finish,建完后的项目结果如下所示:
接下来,删除WebContent下的所有内容,到解压后的solr的solr-4.10.0\example\webapps目录下,解压solr.war包,然后拷贝解压后所有的东西(除了solr.war本身),到刚才被清空的WebContent目录下:
拷贝完后的项目工程如下所以,注意这里可能由于js校验出错,不影响运行,可忽略,如果有洁癖的同学们,可以找下,如何去掉js的校验即可。
然后在E盘目录下,新建一个文件夹命名为solr_home,然后拷贝solr-4.10.0\example\solr下的所有文件到这个solr_home的文件夹下,拷贝后的目录如下:
接下来配置在eclipse的solrweb项目里的WebContent\WEB-INF下的web.xml文件去掉注释solr_home的标签,把刚才在E盘配置的路径放进去:
然后拷贝solr\solr-4.10.0\example\lib\ext下所有的日志包到我们项目的lib目录下:
并拷贝solr-4.10.0\example\resources\下的log4j.properties文件到我们工程的src目录下
,然后右击项目启动,run server,我们的控制台就会打印如下信息:
十二月 11, 2014 9:04:08 下午 org.apache.catalina.core.AprLifecycleListener init 信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Java\jdk1.7.0_04\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;D:/Java/jdk1.7.0_04/bin/../jre/bin/server;D:/Java/jdk1.7.0_04/bin/../jre/bin;D:/Java/jdk1.7.0_04/bin/../jre/lib/amd64;D:\git\Git\bin;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;D:\Java\jdk1.7.0_04\bin;D:\Java\jdk1.7.0_04\jre\bin;D:\apache-ant-1.9.3\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Lenovo\Lenovo Home\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files\TortoiseSVN\bin;D:\hadoop-2.2.0/bin;C:\MyProgramFiles\apache-maven-3.0.5\bin;D:\python;D:\eclipsehadoop2.2.0\eclipse;;. 十二月 11, 2014 9:04:08 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin 警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:solrweb' did not find a matching property. 十二月 11, 2014 9:04:08 下午 org.apache.coyote.AbstractProtocol init 信息: Initializing ProtocolHandler ["http-bio-8080"] 十二月 11, 2014 9:04:08 下午 org.apache.coyote.AbstractProtocol init 信息: Initializing ProtocolHandler ["ajp-bio-8009"] 十二月 11, 2014 9:04:08 下午 org.apache.catalina.startup.Catalina load 信息: Initialization processed in 434 ms 十二月 11, 2014 9:04:08 下午 org.apache.catalina.core.StandardService startInternal 信息: Starting service Catalina 十二月 11, 2014 9:04:08 下午 org.apache.catalina.core.StandardEngine startInternal 信息: Starting Servlet Engine: Apache Tomcat/7.0.47 0 [localhost-startStop-1] INFO org.apache.solr.servlet.SolrDispatchFilter – SolrDispatchFilter.init() 13 [localhost-startStop-1] INFO org.apache.solr.core.SolrResourceLoader – Using JNDI solr.home: E://solr_home// 15 [localhost-startStop-1] INFO org.apache.solr.core.SolrResourceLoader – new SolrResourceLoader for directory: 'E://solr_home//' 159 [localhost-startStop-1] INFO org.apache.solr.core.ConfigSolr – Loading container configuration from E:\solr_home\solr.xml 223 [localhost-startStop-1] INFO org.apache.solr.core.CoresLocator – Config-defined core root directory: E:\solr_home 229 [localhost-startStop-1] INFO org.apache.solr.core.CoreContainer – New CoreContainer 357471660 229 [localhost-startStop-1] INFO org.apache.solr.core.CoreContainer – Loading cores into CoreContainer [instanceDir=E://solr_home//] 243 [localhost-startStop-1] INFO org.apache.solr.handler.component.HttpShardHandlerFactory – Setting socketTimeout to: 0 243 [localhost-startStop-1] INFO org.apache.solr.handler.component.HttpShardHandlerFactory – Setting urlScheme to: null 246 [localhost-startStop-1] INFO org.apache.solr.handler.component.HttpShardHandlerFactory – Setting connTimeout to: 0 246 [localhost-startStop-1] INFO org.apache.solr.handler.component.HttpShardHandlerFactory – Setting maxConnectionsPerHost to: 20 246 [localhost-startStop-1] INFO org.apache.solr.handler.component.HttpShardHandlerFactory – Setting corePoolSize to: 0 246 [localhost-startStop-1] INFO org.apache.solr.handler.component.HttpShardHandlerFactory – Setting maximumPoolSize to: 2147483647 246 [localhost-startStop-1] INFO org.apache.solr.handler.component.HttpShardHandlerFactory – Setting maxThreadIdleTime to: 5 246 [localhost-startStop-1] INFO org.apache.solr.handler.component.HttpShardHandlerFactory – Setting sizeOfQueue to: -1 247 [localhost-startStop-1] INFO org.apache.solr.handler.component.HttpShardHandlerFactory – Setting fairnessPolicy to: false 334 [localhost-startStop-1] INFO org.apache.solr.update.UpdateShardHandler – Creating UpdateShardHandler HTTP client with params: socketTimeout=0&connTimeout=0&retry=false 336 [localhost-startStop-1] INFO org.apache.solr.logging.LogWatcher – SLF4J impl is org.slf4j.impl.Log4jLoggerFactory 337 [localhost-startStop-1] INFO org.apache.solr.logging.LogWatcher – Registering Log Listener [Log4j (org.slf4j.impl.Log4jLoggerFactory)] 338 [localhost-startStop-1] INFO org.apache.solr.core.CoreContainer – Host Name: 370 [localhost-startStop-1] INFO org.apache.solr.core.CoresLocator – Looking for core definitions underneath E:\solr_home 379 [localhost-startStop-1] INFO org.apache.solr.core.CoresLocator – Found core collection1 in E:\solr_home\collection1\ 380 [localhost-startStop-1] INFO org.apache.solr.core.CoresLocator – Found 1 core definitions 380 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrResourceLoader – new SolrResourceLoader for directory: 'E:\solr_home\collection1\' 438 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrConfig – Adding specified lib dirs to ClassLoader 439 [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: E:\solr_home\collection1\..\..\..\contrib\extraction\lib). 439 [coreLoadExecutor-5-thread-1] WARN org.apache.solr.core.SolrResourceLoader – Can't find (or read) directory to add to classloader: ../../../dist/ (resolved as: E:\solr_home\collection1\..\..\..\dist). 439 [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: E:\solr_home\collection1\..\..\..\contrib\clustering\lib). 439 [coreLoadExecutor-5-thread-1] WARN org.apache.solr.core.SolrResourceLoader – Can't find (or read) directory to add to classloader: ../../../dist/ (resolved as: E:\solr_home\collection1\..\..\..\dist). 439 [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: E:\solr_home\collection1\..\..\..\contrib\langid\lib). 440 [coreLoadExecutor-5-thread-1] WARN org.apache.solr.core.SolrResourceLoader – Can't find (or read) directory to add to classloader: ../../../dist/ (resolved as: E:\solr_home\collection1\..\..\..\dist). 440 [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: E:\solr_home\collection1\..\..\..\contrib\velocity\lib). 440 [coreLoadExecutor-5-thread-1] WARN org.apache.solr.core.SolrResourceLoader – Can't find (or read) directory to add to classloader: ../../../dist/ (resolved as: E:\solr_home\collection1\..\..\..\dist). 530 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.update.SolrIndexConfig – IndexWriter infoStream solr logging is enabled 537 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrConfig – Using Lucene MatchVersion: 4.10.0 637 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.Config – Loaded SolrConfig: solrconfig.xml 643 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.schema.IndexSchema – Reading Solr Schema from schema.xml 695 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.schema.IndexSchema – [collection1] Schema name=example 1153 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.schema.IndexSchema – unique key field: id 1167 [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 1168 [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 1233 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.schema.FileExchangeRateProvider – Reloading exchange rates from file currency.xml 1239 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.schema.FileExchangeRateProvider – Reloading exchange rates from file currency.xml 1324 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.CoreContainer – Creating SolrCore 'collection1' using configuration from instancedir E:\solr_home\collection1\ 1346 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrCore – solr.NRTCachingDirectoryFactory 1354 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrCore – [collection1] Opening new SolrCore at E:\solr_home\collection1\, dataDir=E:\solr_home\collection1\data\ 1355 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.JmxMonitoredMap – JMX monitoring is enabled. Adding Solr mbeans to JMX Server: com.sun.jmx.mbeanserver.JmxMBeanServer@1d724f31 1378 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrCore – [collection1] Added SolrEventListener for newSearcher: org.apache.solr.core.QuerySenderListener{queries=[]} 1378 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrCore – [collection1] Added SolrEventListener for firstSearcher: org.apache.solr.core.QuerySenderListener{queries=[{q=static firstSearcher warming in solrconfig.xml}]} 1391 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.CachingDirectoryFactory – return new directory for E:\solr_home\collection1\data 1392 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrCore – New index directory detected: old=null new=E:\solr_home\collection1\data\index/ 1393 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.CachingDirectoryFactory – return new directory for E:\solr_home\collection1\data\index 1403 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrCore – created json: solr.JSONResponseWriter 1403 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrCore – adding lazy queryResponseWriter: solr.VelocityResponseWriter 1404 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrCore – created velocity: solr.VelocityResponseWriter 1407 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrCore – created xslt: solr.XSLTResponseWriter 1407 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.response.XSLTResponseWriter – xsltCacheLifetimeSeconds=5 1520 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrCore – no updateRequestProcessorChain defined as default, creating implicit default 1528 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers – created /update: org.apache.solr.handler.UpdateRequestHandler 1528 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers – created /update/json: org.apache.solr.handler.UpdateRequestHandler 1529 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers – created /update/csv: org.apache.solr.handler.UpdateRequestHandler 1529 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers – created /update/json/docs: org.apache.solr.handler.UpdateRequestHandler 1534 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers – created /select: solr.SearchHandler 1535 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers – created /query: solr.SearchHandler 1537 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers – created /get: solr.RealTimeGetHandler 1538 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers – created /export: solr.SearchHandler 1538 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers – created /browse: solr.SearchHandler 1540 [coreLoadExecutor-5-thread-1] WARN org.apache.solr.core.RequestHandlers – Multiple requestHandler registered to the same name: /update ignoring: org.apache.solr.handler.UpdateRequestHandler 1540 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers – created /update: solr.UpdateRequestHandler 1540 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers – adding lazy requestHandler: solr.extraction.ExtractingRequestHandler 1541 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers – created /update/extract: solr.extraction.ExtractingRequestHandler 1541 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers – adding lazy requestHandler: solr.FieldAnalysisRequestHandler 1541 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers – created /analysis/field: solr.FieldAnalysisRequestHandler 1541 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers – adding lazy requestHandler: solr.DocumentAnalysisRequestHandler 1541 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers – created /analysis/document: solr.DocumentAnalysisRequestHandler 1543 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers – created /admin/: solr.admin.AdminHandlers 1545 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers – created /admin/ping: solr.PingRequestHandler 1547 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers – created /debug/dump: solr.DumpRequestHandler 1555 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers – created /replication: solr.ReplicationHandler 1555 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers – adding lazy requestHandler: solr.SearchHandler 1555 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers – created /spell: solr.SearchHandler 1555 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers – adding lazy requestHandler: solr.SearchHandler 1556 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers – created /suggest: solr.SearchHandler 1556 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers – adding lazy requestHandler: solr.SearchHandler 1556 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers – created /tvrh: solr.SearchHandler 1556 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers – adding lazy requestHandler: solr.SearchHandler 1556 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers – created /terms: solr.SearchHandler 1556 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers – adding lazy requestHandler: solr.SearchHandler 1556 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.RequestHandlers – created /elevate: solr.SearchHandler 1570 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.handler.loader.XMLLoader – xsltCacheLifetimeSeconds=60 1572 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.handler.loader.XMLLoader – xsltCacheLifetimeSeconds=60 1573 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.handler.loader.XMLLoader – xsltCacheLifetimeSeconds=60 1573 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.handler.loader.XMLLoader – xsltCacheLifetimeSeconds=60 1574 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.handler.loader.XMLLoader – xsltCacheLifetimeSeconds=60 1585 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrCore – Hard AutoCommit: if uncommited for 15000ms; 1586 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrCore – Soft AutoCommit: disabled 1617 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrCore – SolrDeletionPolicy.onInit: commits: num=1 commit{dir=NRTCachingDirectory(MMapDirectory@E:\solr_home\collection1\data\index lockFactory=NativeFSLockFactory@E:\solr_home\collection1\data\index; maxCacheMB=48.0 maxMergeSizeMB=4.0),segFN=segments_1,generation=1} 1617 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.SolrCore – newest commit generation = 1 1623 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.search.SolrIndexSearcher – Opening Searcher@2d934946[collection1] main 1630 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.rest.ManagedResourceStorage – File-based storage initialized to use dir: E:\solr_home\collection1\conf 1630 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.rest.RestManager – Initializing RestManager with initArgs: {storageDir=E:\solr_home\collection1\conf} 1631 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.rest.ManagedResourceStorage – Reading _rest_managed.json using file:dir=E:\solr_home\collection1\conf 1634 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.rest.ManagedResourceStorage – Loaded LinkedHashMap at path _rest_managed.json using file:dir=E:\solr_home\collection1\conf 1634 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.rest.ManagedResource – Loaded initArgs {} for /rest/managed 1635 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.rest.RestManager – Initializing 2 registered ManagedResources 1635 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.rest.ManagedResourceStorage – Reading _schema_analysis_stopwords_english.json using file:dir=E:\solr_home\collection1\conf 1636 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.rest.ManagedResourceStorage – Loaded LinkedHashMap at path _schema_analysis_stopwords_english.json using file:dir=E:\solr_home\collection1\conf 1636 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.rest.ManagedResource – Loaded initArgs {ignoreCase=true} for /schema/analysis/stopwords/english 1637 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.rest.ManagedResource – Loaded 35 words for /schema/analysis/stopwords/english 1637 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.rest.ManagedResource – Notified 1 observers of /schema/analysis/stopwords/english 1637 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.rest.ManagedResourceStorage – Reading _schema_analysis_synonyms_english.json using file:dir=E:\solr_home\collection1\conf 1637 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.rest.ManagedResourceStorage – Loaded LinkedHashMap at path _schema_analysis_synonyms_english.json using file:dir=E:\solr_home\collection1\conf 1638 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.rest.ManagedResource – Loaded initArgs {ignoreCase=true,format=solr} for /schema/analysis/synonyms/english 1638 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.rest.ManagedResource – Loaded 3 synonym mappings for /schema/analysis/synonyms/english 1640 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.rest.ManagedResource – Notified 1 observers of /schema/analysis/synonyms/english 1640 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.handler.component.SpellCheckComponent – Initializing spell checkers 1647 [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} 1652 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.handler.component.SpellCheckComponent – No queryConverter defined, using default converter 1653 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.handler.component.SuggestComponent – Initializing SuggestComponent 1655 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.spelling.suggest.SolrSuggester – init: {name=mySuggester,lookupImpl=FuzzyLookupFactory,dictionaryImpl=DocumentDictionaryFactory,field=cat,weightField=price,suggestAnalyzerFieldType=string} 1669 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.spelling.suggest.SolrSuggester – Dictionary loaded with params: {name=mySuggester,lookupImpl=FuzzyLookupFactory,dictionaryImpl=DocumentDictionaryFactory,field=cat,weightField=price,suggestAnalyzerFieldType=string} 1671 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.handler.component.QueryElevationComponent – Loading QueryElevation from: E:\solr_home\collection1\conf\elevate.xml 1699 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.handler.ReplicationHandler – Commits will be reserved for 10000 1700 [searcherExecutor-6-thread-1] INFO org.apache.solr.core.SolrCore – QuerySenderListener sending requests to Searcher@2d934946[collection1] main{StandardDirectoryReader(segments_1:1:nrt)} 1743 [searcherExecutor-6-thread-1] INFO org.apache.solr.core.SolrCore – [collection1] webapp=null path=null params={event=firstSearcher&q=static+firstSearcher+warming+in+solrconfig.xml&distrib=false} hits=0 status=0 QTime=41 1743 [searcherExecutor-6-thread-1] INFO org.apache.solr.core.SolrCore – QuerySenderListener done. 1744 [searcherExecutor-6-thread-1] INFO org.apache.solr.handler.component.SpellCheckComponent – Loading spell index for spellchecker: default 1744 [searcherExecutor-6-thread-1] INFO org.apache.solr.handler.component.SpellCheckComponent – Loading spell index for spellchecker: wordbreak 1744 [searcherExecutor-6-thread-1] INFO org.apache.solr.handler.component.SuggestComponent – Loading suggester index for: mySuggester 1744 [searcherExecutor-6-thread-1] INFO org.apache.solr.spelling.suggest.SolrSuggester – reload() 1744 [searcherExecutor-6-thread-1] INFO org.apache.solr.spelling.suggest.SolrSuggester – build() 1757 [searcherExecutor-6-thread-1] INFO org.apache.solr.core.SolrCore – [collection1] Registered new searcher Searcher@2d934946[collection1] main{StandardDirectoryReader(segments_1:1:nrt)} 1760 [coreLoadExecutor-5-thread-1] INFO org.apache.solr.core.CoreContainer – registering core: collection1 1761 [localhost-startStop-1] INFO org.apache.solr.servlet.SolrDispatchFilter – user.dir=D:\eclipsehadoop2.2.0\eclipse 1761 [localhost-startStop-1] INFO org.apache.solr.servlet.SolrDispatchFilter – SolrDispatchFilter.init() done 十二月 11, 2014 9:04:13 下午 org.apache.coyote.AbstractProtocol start 信息: Starting ProtocolHandler ["http-bio-8080"] 十二月 11, 2014 9:04:13 下午 org.apache.coyote.AbstractProtocol start 信息: Starting ProtocolHandler ["ajp-bio-8009"] 十二月 11, 2014 9:04:13 下午 org.apache.catalina.startup.Catalina start 信息: Server startup in 4852 ms 2347 [http-bio-8080-exec-10] INFO org.apache.solr.servlet.SolrDispatchFilter – [admin] webapp=null path=/admin/cores params={indexInfo=false&_=1418303054313&wt=json} status=0 QTime=3 2421 [http-bio-8080-exec-10] INFO org.apache.solr.servlet.SolrDispatchFilter – [admin] webapp=null path=/admin/info/system params={_=1418303054415&wt=json} status=0 QTime=2
成功后的截图如下,散仙在admin界面又定义了自己的一个h1标签:
至此,大功告成!如果我们想要调试solr的源码,我们就可以在src目录,将solr的源码包放进去,这样就可以调试了。
发表评论
-
最新版Solr6.2.1安装记录
2016-09-23 18:48 2024下载最新版Solr6.2.1 wget http:/ ... -
ElasticSearch+Solr几个案例笔记
2016-09-22 18:46 1949(一) 最大能索引字符 ... -
SolrCloud之Sharding路由介绍
2016-07-19 16:07 3464在Solr4.4之后,Solr提供了SolrCloud ... -
SolrCloud6.1.0之SQL查询测试
2016-07-12 11:21 2388Solr发展飞快,现在最 ... -
Lucene/Solr/ElasticSearch搜索问题案例分析
2016-06-23 18:08 1853最近收集的两个搜索 ... -
Lucene+Solr+ElasticSearch查询匹配优化
2016-06-01 19:37 2961当我们在处理搜索业务时候,需求往往是灵活多变的,有时候我们需 ... -
如何通过JMX远程监控Solr?
2016-05-23 16:07 2027有时候,我们在服务 ... -
如何实现Solr自定义评分查询
2016-05-12 17:49 4866(一)背景介绍 大多数时候我们使用lucene/solr ... -
浅谈Lucene中的DocValues
2016-05-10 19:12 7602前言: 在Lucene4.x之后, ... -
开源大数据索引项目hive-solr
2016-05-06 16:15 1981github地址:https://github.com/qi ... -
浅谈Solr和ElasticSearch建索引性能优化策略
2016-04-27 18:48 2231由于Solr和ElasticSearch ... -
如何使用Hive集成Solr?
2016-03-17 15:05 2854(一)Hive+Solr简介 Hive ... -
Solr中如何使用游标进行深度分页查询
2016-03-10 16:34 3827通常,我们的应用系统 ... -
Hbase+Solr实现二级索引提供高效查询
2016-02-18 18:28 7092接着上一篇介绍协处理 ... -
SolrCloud5.4.1集群实战(一)
2016-02-06 10:06 3888古时候,人们用一头牛 ... -
如何使用Spark大规模并行构建索引
2016-02-01 12:54 2723使用Spark构建索引非常简单,因为spark提供了更高级的 ... -
如何在Solr中实现多core查询?
2015-12-07 20:55 4101基于solr或者elasticsearch提供的多核,多索引 ... -
Solr配置maxBooleanClauses属性不生效原因分析
2015-12-02 14:12 2486上次已经写过一篇关于 ... -
Solr如何避免查询条件过多异常
2015-11-17 16:07 2879今天,需要查询一个东西,在q里面大概有900左右参数,使用so ... -
Solr中Group和Facet的用法
2015-10-14 19:40 4637先来看一下Group与Facet的 ...
相关推荐
在本文中,我们将探讨如何在Eclipse环境中运行Apache Solr,一个基于Lucene的企业级搜索服务器。Solr提供了一种开箱即用的解决方案,简化了索引管理和搜索功能。 首先,我们需要理解Solr的基本概念。Solr是一个开源...
- **部署Solr Web应用**:将`D:\tools\javaTools\apache\apache-solr-3.5.0\example\webapp\solr.war`复制到`D:\lucene\solr\server`。 - **配置Tomcat的Server.xml**:打开Tomcat的`server.xml`文件,配置Solr Web...
我已经将lucene&solr源代码和solr Web UI组合到一个普通的Java Web项目中,因此我们可以将其直接导入Eclipse,然后部署并启动solr,更重要的是,您可以在源代码中创建一个断点,并进行跟踪源代码执行,真正了解...
在cmd中输入ant eclipse, 按回车后你将会看到如下画面, 如果你的c:\Users\用户名\.ant\lib下没有ivy jar包的话 此时你按它说的那样需输入ant ivy-bootstrap命令下载ivy, 当然你也可以直接吧ivy jar包直接放入c:\...
在cmd中输入ant eclipse, 按回车后你将会看到如下画面, 如果你的c:\Users\用户名\.ant\lib下没有ivy jar包的话 此时你按它说的那样需输入ant ivy-bootstrap命令下载ivy, 当然你也可以直接吧ivy jar包直接放入c:\...
在 Solr 8 中,为了确保系统的安全性和数据的隐私性,配置用户登录验证是非常重要的步骤。本文将详细介绍如何对手动配置 Solr 8 的用户登录验证。 首先,我们需要了解 Solr 的安全组件——Jetty 容器。Solr 默认...
- **应用案例**:Lucene 被广泛应用于各种软件系统中,如 Eclipse 帮助系统的搜索功能。 - **与 Solr 的关系**:虽然 Solr 和 Lucene 在功能上有重叠之处,但它们并非竞争对手。实际上,Solr 是基于 Lucene 构建的,...
在cmd中输入ant eclipse, 按回车后你将会看到如下画面, 如果你的c:\Users\用户名\.ant\lib下没有ivy jar包的话 此时你按它说的那样需输入ant ivy-bootstrap命令下载ivy, 当然你也可以直接吧ivy jar包直接放入c:\...
在cmd中输入ant eclipse, 按回车后你将会看到如下画面, 如果你的c:\Users\用户名\.ant\lib下没有ivy jar包的话 此时你按它说的那样需输入ant ivy-bootstrap命令下载ivy, 当然你也可以直接吧ivy jar包直接放入c:\...
此外,Solr 提供了丰富的 API,包括 Java 的 SolrJ,使得开发者可以方便地在应用程序中集成 Solr 功能。 总的来说,Solr 是一个功能强大的搜索解决方案,适合需要高效全文搜索的企业级应用。其与 Lucene 的关系类似...
- **Java环境准备**:Solr需要运行在Java环境中,推荐使用Java 1.6或更高版本。如果仅用于运行标准服务,安装JRE即可;若需扩展功能或编译源码,则需要安装JDK。 - **Solr版本选择**:本文档以Solr 5.3版本为例进行...
Xxx在求职意向中表示,他希望找到一份全职的Java软件工程师工作,目标工作地点为上海,首选行业是软件开发。 【技能专长】 1. 精通Java编程语言,具备扎实的基础。 2. 熟练运用Servlet、JSP和JSTL标签进行Web开发。...
工程师在此项目中负责模块测试,使用Struts进行数据验证和文件下载,通过Shiro实现用户权限管理,并主要负责基础档案、订单系统和用户管理模块的代码实现。 ### 教育背景 该工程师于2008/6至2012/6在浙江科技学院...
│ 06.jedis客户端在spring中的配置.avi │ 07.测试spring中的JedisClient.avi │ 08.缓存同步-服务发布.avi │ 09.后台调用缓存同步服务.avi │ 10.solr单机版安装.avi │ 11.中文分析器配置.avi │ 12.导入数据-...
这个项目通常用于教学或个人技能提升,它涵盖了Java Web开发中的多个核心技术和概念。 【Java Web项目】是指基于Java技术构建的Web应用程序,它结合了Java Servlet、JavaServer Pages (JSP)、JavaBeans (Javabeans)...
- 在线商城项目中,他利用SOA和分布式架构解决了高并发问题,通过Redis和Solr提升系统性能,使用FastDFS存储大量图片,Dubbo和Zookeeper实现服务注册与发现,ActiveMQ处理消息通信,单点登录系统增强了安全性。...
郭帅在该项目中主要负责注册登录、商品发布、订单管理和代码优化等模块的开发,并利用FastDFS解决图片存储问题,使用Redis提高系统响应速度,而Solr集群则提升了查询效率。 郭帅的简历充分展示了他的专业技能和项目...
在系统设计中,eGoBuy采用了多种技术组件和工具,例如Eclipse Mars 2作为开发工具,Maven作为项目管理和构建工具,SVN进行版本控制,MySQL和Navicat Premium作为数据库和数据库管理工具,Linux作为服务器的操作系统...
在实际项目中,候选人展示了将理论知识应用于实践的能力,如使用Nginx和FastDFS进行静态资源管理,利用Redis进行数据分片和Session共享,结合Solr进行全文搜索,以及ActiveMQ的消息队列处理,充分体现了其对现代Web...