lucene/solr选择哪个版本

如题。
查看官网lucene官网,对Apache发布的版本顺序有点摸不着头脑。
24 October 2017, Apache Lucene 5.5.5 and Apache Solr 5.5.5
18 October 2017, Apache Lucene 6.6.2 and Apache Solr 6.6.2
17 October 2017 - Apache Lucene 7.1.0 and Apache Solr 7.1.0
。。。
怎么时间上越新的版本却是5.5.5,早些的却是6.6.2?7.1.0?
难道是Apache在管理多个系列(ex:5.x,6.x,7.x)的lucene/solr吗?
发布的都是每个系列最新的版本?

如果是的,那么作为初入学习Lucene,选择哪个版本比较好呢?

3个回答

用了Lucene 7.1.0,编译环境要求是jdk1.8,Lucene6+都是1.8,后来因为工程需要换成了用了Lucene-5.5.5,这俩版本用起来没啥区别

最后一个系统比较好?。。。

外国人把那新的都喜欢放在第一个 所以呢 一般我们都用第二三个 因为稳定

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
在PHP中解析Lucene / SOLR debug.explain.structured xml输出

<div class="post-text" itemprop="text"> <p>The default "human readable" formatting of solr's debug-mode explain feature is completely useless. You can get some structured xml output by passing debug.explain.structured=true.</p> <p>However the xml it generates isn't really usable either and I need to be able to use this debugging information elsewhere in my code.</p> <p>Before I re-invent the wheel, I have two questions:</p> <p>1) Does anyone know of an existing PHP class (or function) that will parse this xml and turn it into a useful object? (googling didn't turn up anything obvious)</p> <p>2) For those familiar with SOLR's debug mode, is there a better way to approach this than parsing the debug.explain.structured xml? </p> <p>(I'm Using SOLR 3.6)</p> </div>

lucene和solr该用什么

现在项目用的是lucene,发现有些功能支持的不太全面或是性能比较低,现在来看solr能支持很多东西,但是如果用solr的话,又得做一些改动,在这方面,有接触过的吗,给一下建议。也可以说一下,什么场景下适合用lucene,什么时候时候用solr呢

用solr,lucene架构实现全文搜索并添加到已有项目

我想用solr+lucene实现全站搜索,不知怎么架构,和实现,并且整合到已有项目中,前提了解lucene和一点solr,不知道实现起来难不,求各位大神指点,谢谢

如何在Magento CE中了解Solr Search Works

<div class="post-text" itemprop="text"> <p>I'm working with Solr Search integration on Magento CE 1.7.0.2 from fast couple of days..</p> <p>At finally i solved all errors in that.</p> <p>Right now i have one small doubt whether the solr search is working or not in my local Magento.Because it looks same as default magento - MySQL search, I don't get Spelling correction, &amp; I'm getting Suggestions but looks like default search.</p> <p>Here I'm posting my solr logs.. Please take look at that give me conformation. </p> <p><strong>This is my solr logs when i starts the server...</strong></p> <pre><code>1 [main] INFO org.eclipse.jetty.server.Server – jetty-8.1.10.v20130312 28 [main] INFO org.eclipse.jetty.deploy.providers.ScanningAppProvider – Deployment monitor /root/Desktop/inchoo/solr-4.6.0/example/contexts at interval 0 36 [main] INFO org.eclipse.jetty.deploy.DeploymentManager – Deployable added: /root/Desktop/inchoo/solr-4.6.0/example/contexts/solr-jetty-context.xml 1154 [main] INFO org.eclipse.jetty.webapp.StandardDescriptorProcessor – NO JSP Support for /solr, did not find org.apache.jasper.servlet.JspServlet 1192 [main] INFO org.apache.solr.servlet.SolrDispatchFilter – SolrDispatchFilter.init() 1209 [main] INFO org.apache.solr.core.SolrResourceLoader – JNDI not configured for solr (NoInitialContextEx) 1210 [main] INFO org.apache.solr.core.SolrResourceLoader – solr home defaulted to 'solr/' (could not find system property or JNDI) 1210 [main] INFO org.apache.solr.core.SolrResourceLoader – new SolrResourceLoader for directory: 'solr/' 1347 [main] INFO org.apache.solr.core.ConfigSolr – Loading container configuration from /root/Desktop/inchoo/solr-4.6.0/example/solr/solr.xml 1458 [main] INFO org.apache.solr.core.ConfigSolrXml – Config-defined core root directory: 1467 [main] INFO org.apache.solr.core.CoreContainer – New CoreContainer 22711257 1467 [main] INFO org.apache.solr.core.CoreContainer – Loading cores into CoreContainer [instanceDir=solr/] 1481 [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory – Setting socketTimeout to: 0 1481 [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory – Setting urlScheme to: http:// 1482 [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory – Setting connTimeout to: 0 1482 [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory – Setting maxConnectionsPerHost to: 20 1483 [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory – Setting corePoolSize to: 0 1483 [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory – Setting maximumPoolSize to: 2147483647 1484 [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory – Setting maxThreadIdleTime to: 5 1484 [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory – Setting sizeOfQueue to: -1 1484 [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory – Setting fairnessPolicy to: false 1588 [main] INFO org.apache.solr.logging.LogWatcher – SLF4J impl is org.slf4j.impl.Log4jLoggerFactory 1589 [main] INFO org.apache.solr.logging.LogWatcher – Registering Log Listener [Log4j (org.slf4j.impl.Log4jLoggerFactory)] 1616 [main] INFO org.apache.solr.core.CoresLocator – Looking for core definitions underneath /root/Desktop/inchoo/solr-4.6.0/example/solr 1630 [main] INFO org.apache.solr.core.CoresLocator – Found core collection1 in /root/Desktop/inchoo/solr-4.6.0/example/solr/collection1/ 1631 [main] INFO org.apache.solr.core.CoresLocator – Found 1 core definitions 1632 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.CoreContainer – Creating SolrCore 'collection1' using instanceDir: /root/Desktop/inchoo/solr-4.6.0/example/solr/collection1 1632 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrResourceLoader – new SolrResourceLoader for directory: '/root/Desktop/inchoo/solr-4.6.0/example/solr/collection1/' 1703 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrConfig – Adding specified lib dirs to ClassLoader 1705 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrResourceLoader – Adding 'file:/root/Desktop/inchoo/solr-4.6.0/contrib/extraction/lib/juniversalchardet-1.0.3.jar' to classloader 1706 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrResourceLoader – Adding 'file:/root/Desktop/inchoo/solr-4.6.0/contrib/extraction/lib/commons-compress-1.4.1.jar' to classloader 1706 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrResourceLoader – Adding 'file:/root/Desktop/inchoo/solr-4.6.0/contrib/extraction/lib/metadata-extractor-2.6.2.jar' to classloader 1706 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrResourceLoader – Adding 'file:/root/Desktop/inchoo/solr-4.6.0/contrib/extraction/lib/xercesImpl-2.9.1.jar' to classloader 1706 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrResourceLoader – Adding 'file:/root/Desktop/inchoo/solr-4.6.0/contrib/extraction/lib/bcprov-jdk15-1.45.jar' to classloader 1706 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrResourceLoader – Adding 'file:/root/Desktop/inchoo/solr-4.6.0/contrib/extraction/lib/isoparser-1.0-RC-1.jar' to classloader 1707 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrResourceLoader – Adding 'file:/root/Desktop/inchoo/solr-4.6.0/contrib/extraction/lib/poi-scratchpad-3.9.jar' to classloader 1707 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrResourceLoader – Adding 'file:/root/Desktop/inchoo/solr-4.6.0/contrib/extraction/lib/poi-ooxml-schemas-3.9.jar' to classloader 1707 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrResourceLoader – Adding 'file:/root/Desktop/inchoo/solr-4.6.0/contrib/extraction/lib/tagsoup-1.2.1.jar' to classloader 1707 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrResourceLoader – Adding 'file:/root/Desktop/inchoo/solr-4.6.0/contrib/extraction/lib/poi-ooxml-3.9.jar' to classloader 1707 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrResourceLoader – Adding 'file:/root/Desktop/inchoo/solr-4.6.0/contrib/extraction/lib/tika-core-1.4.jar' to classloader 1707 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrResourceLoader – Adding 'file:/root/Desktop/inchoo/solr-4.6.0/contrib/extraction/lib/pdfbox-1.8.1.jar' to classloader 1708 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrResourceLoader – Adding 'file:/root/Desktop/inchoo/solr-4.6.0/contrib/extraction/lib/bcmail-jdk15-1.45.jar' to classloader 1708 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrResourceLoader – Adding 'file:/root/Desktop/inchoo/solr-4.6.0/contrib/extraction/lib/poi-3.9.jar' to classloader 1708 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrResourceLoader – Adding 'file:/root/Desktop/inchoo/solr-4.6.0/contrib/extraction/lib/vorbis-java-tika-0.1.jar' to classloader 1708 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrResourceLoader – Adding 'file:/root/Desktop/inchoo/solr-4.6.0/contrib/extraction/lib/xmlbeans-2.3.0.jar' to classloader 1708 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrResourceLoader – Adding 'file:/root/Desktop/inchoo/solr-4.6.0/contrib/extraction/lib/netcdf-4.2-min.jar' to classloader 1708 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrResourceLoader – Adding 'file:/root/Desktop/inchoo/solr-4.6.0/contrib/extraction/lib/fontbox-1.8.1.jar' to classloader 1709 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrResourceLoader – Adding 'file:/root/Desktop/inchoo/solr-4.6.0/contrib/extraction/lib/icu4j-49.1.jar' to classloader 1709 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrResourceLoader – Adding 'file:/root/Desktop/inchoo/solr-4.6.0/contrib/extraction/lib/dom4j-1.6.1.jar' to classloader 1709 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrResourceLoader – Adding 'file:/root/Desktop/inchoo/solr-4.6.0/contrib/extraction/lib/vorbis-java-core-0.1.jar' to classloader 1709 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrResourceLoader – Adding 'file:/root/Desktop/inchoo/solr-4.6.0/contrib/extraction/lib/tika-parsers-1.4.jar' to classloader 1709 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrResourceLoader – Adding 'file:/root/Desktop/inchoo/solr-4.6.0/contrib/extraction/lib/boilerpipe-1.1.0.jar' to classloader 1709 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrResourceLoader – Adding 'file:/root/Desktop/inchoo/solr-4.6.0/contrib/extraction/lib/apache-mime4j-dom-0.7.2.jar' to classloader 1709 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrResourceLoader – Adding 'file:/root/Desktop/inchoo/solr-4.6.0/contrib/extraction/lib/apache-mime4j-core-0.7.2.jar' to classloader 1710 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrResourceLoader – Adding 'file:/root/Desktop/inchoo/solr-4.6.0/contrib/extraction/lib/jdom-1.0.jar' to classloader 1710 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrResourceLoader – Adding 'file:/root/Desktop/inchoo/solr-4.6.0/contrib/extraction/lib/jempbox-1.8.1.jar' to classloader 1710 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrResourceLoader – Adding 'file:/root/Desktop/inchoo/solr-4.6.0/contrib/extraction/lib/xz-1.0.jar' to classloader 1710 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrResourceLoader – Adding 'file:/root/Desktop/inchoo/solr-4.6.0/contrib/extraction/lib/rome-0.9.jar' to classloader 1711 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrResourceLoader – Adding 'file:/root/Desktop/inchoo/solr-4.6.0/dist/solr-cell-4.6.0.jar' to classloader 1712 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrResourceLoader – Adding 'file:/root/Desktop/inchoo/solr-4.6.0/contrib/clustering/lib/mahout-math-0.6.jar' to classloader 1712 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrResourceLoader – Adding 'file:/root/Desktop/inchoo/solr-4.6.0/contrib/clustering/lib/hppc-0.5.2.jar' to classloader 1712 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrResourceLoader – Adding 'file:/root/Desktop/inchoo/solr-4.6.0/contrib/clustering/lib/attributes-binder-1.2.0.jar' to classloader 1712 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrResourceLoader – Adding 'file:/root/Desktop/inchoo/solr-4.6.0/contrib/clustering/lib/simple-xml-2.7.jar' to classloader 1713 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrResourceLoader – Adding 'file:/root/Desktop/inchoo/solr-4.6.0/contrib/clustering/lib/carrot2-mini-3.8.0.jar' to classloader 1713 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrResourceLoader – Adding 'file:/root/Desktop/inchoo/solr-4.6.0/contrib/clustering/lib/jackson-mapper-asl-1.7.4.jar' to classloader 1713 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrResourceLoader – Adding 'file:/root/Desktop/inchoo/solr-4.6.0/contrib/clustering/lib/mahout-collections-1.0.jar' to classloader 1713 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrResourceLoader – Adding 'file:/root/Desktop/inchoo/solr-4.6.0/contrib/clustering/lib/jackson-core-asl-1.7.4.jar' to classloader 1714 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrResourceLoader – Adding 'file:/root/Desktop/inchoo/solr-4.6.0/dist/solr-clustering-4.6.0.jar' to classloader 1714 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrResourceLoader – Adding 'file:/root/Desktop/inchoo/solr-4.6.0/contrib/langid/lib/jsonic-1.2.7.jar' to classloader 1714 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrResourceLoader – Adding 'file:/root/Desktop/inchoo/solr-4.6.0/contrib/langid/lib/langdetect-1.1-20120112.jar' to classloader 1715 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrResourceLoader – Adding 'file:/root/Desktop/inchoo/solr-4.6.0/dist/solr-langid-4.6.0.jar' to classloader 1716 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrResourceLoader – Adding 'file:/root/Desktop/inchoo/solr-4.6.0/contrib/velocity/lib/velocity-tools-2.0.jar' to classloader 1716 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrResourceLoader – Adding 'file:/root/Desktop/inchoo/solr-4.6.0/contrib/velocity/lib/commons-beanutils-1.7.0.jar' to classloader 1716 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrResourceLoader – Adding 'file:/root/Desktop/inchoo/solr-4.6.0/contrib/velocity/lib/velocity-1.7.jar' to classloader 1716 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrResourceLoader – Adding 'file:/root/Desktop/inchoo/solr-4.6.0/contrib/velocity/lib/commons-collections-3.2.1.jar' to classloader 1717 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrResourceLoader – Adding 'file:/root/Desktop/inchoo/solr-4.6.0/dist/solr-velocity-4.6.0.jar' to classloader 1886 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.update.SolrIndexConfig – IndexWriter infoStream solr logging is enabled 1891 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrConfig – Using Lucene MatchVersion: LUCENE_46 2018 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.Config – Loaded SolrConfig: solrconfig.xml 2026 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.schema.IndexSchema – Reading Solr Schema from schema.xml 2101 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.schema.IndexSchema – [collection1] Schema name=example 2616 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.schema.IndexSchema – unique key field: id 2688 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.schema.FileExchangeRateProvider – Reloading exchange rates from file currency.xml 2695 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.schema.FileExchangeRateProvider – Reloading exchange rates from file currency.xml 2810 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrCore – solr.NRTCachingDirectoryFactory 2818 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrCore – [collection1] Opening new SolrCore at /root/Desktop/inchoo/solr-4.6.0/example/solr/collection1/, dataDir=/root/Desktop/inchoo/solr-4.6.0/example/solr/collection1/data/ 2820 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.JmxMonitoredMap – No JMX servers found, not exposing Solr information with JMX. 2826 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrCore – [collection1] Added SolrEventListener for newSearcher: org.apache.solr.core.QuerySenderListener{queries=[]} 2827 [coreLoadExecutor-3-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}]} 2839 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.CachingDirectoryFactory – return new directory for /root/Desktop/inchoo/solr-4.6.0/example/solr/collection1/data 2839 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrCore – New index directory detected: old=null new=/root/Desktop/inchoo/solr-4.6.0/example/solr/collection1/data/index/ 2839 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.CachingDirectoryFactory – return new directory for /root/Desktop/inchoo/solr-4.6.0/example/solr/collection1/data/index 2849 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrCore – created json: solr.JSONResponseWriter 2849 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrCore – adding lazy queryResponseWriter: solr.VelocityResponseWriter 2850 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrCore – created velocity: solr.VelocityResponseWriter 2853 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrCore – created xslt: solr.XSLTResponseWriter 2853 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.response.XSLTResponseWriter – xsltCacheLifetimeSeconds=5 2930 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrCore – no updateRequestProcessorChain defined as default, creating implicit default 2938 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.RequestHandlers – created /select: solr.SearchHandler 2938 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.RequestHandlers – created /query: solr.SearchHandler 2940 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.RequestHandlers – created /get: solr.RealTimeGetHandler 2940 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.RequestHandlers – created /browse: solr.SearchHandler 2943 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.RequestHandlers – created /update: solr.UpdateRequestHandler 2943 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.RequestHandlers – created /update/json: solr.UpdateRequestHandler 2943 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.RequestHandlers – created /update/csv: solr.UpdateRequestHandler 2943 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.RequestHandlers – adding lazy requestHandler: solr.extraction.ExtractingRequestHandler 2944 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.RequestHandlers – created /update/extract: solr.extraction.ExtractingRequestHandler 2944 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.RequestHandlers – adding lazy requestHandler: solr.FieldAnalysisRequestHandler 2944 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.RequestHandlers – created /analysis/field: solr.FieldAnalysisRequestHandler 2944 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.RequestHandlers – adding lazy requestHandler: solr.DocumentAnalysisRequestHandler 2944 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.RequestHandlers – created /analysis/document: solr.DocumentAnalysisRequestHandler 2946 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.RequestHandlers – created /admin/: solr.admin.AdminHandlers 2948 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.RequestHandlers – created /admin/ping: solr.PingRequestHandler 2950 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.RequestHandlers – created /debug/dump: solr.DumpRequestHandler 2957 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.RequestHandlers – created /replication: solr.ReplicationHandler 2957 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.RequestHandlers – adding lazy requestHandler: solr.SearchHandler 2958 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.RequestHandlers – created /spell: solr.SearchHandler 2958 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.RequestHandlers – adding lazy requestHandler: solr.SearchHandler 2958 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.RequestHandlers – created /tvrh: solr.SearchHandler 2958 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.RequestHandlers – adding lazy requestHandler: org.apache.solr.handler.js.JavaScriptRequestHandler 2958 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.RequestHandlers – created /js: org.apache.solr.handler.js.JavaScriptRequestHandler 2958 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.RequestHandlers – adding lazy requestHandler: solr.SearchHandler 2958 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.RequestHandlers – created /terms: solr.SearchHandler 2958 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.RequestHandlers – adding lazy requestHandler: solr.SearchHandler 2959 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.RequestHandlers – created /elevate: solr.SearchHandler 2972 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.handler.loader.XMLLoader – xsltCacheLifetimeSeconds=60 2974 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.handler.loader.XMLLoader – xsltCacheLifetimeSeconds=60 2974 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.handler.loader.XMLLoader – xsltCacheLifetimeSeconds=60 2998 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrCore – Hard AutoCommit: if uncommited for 15000ms; 2998 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrCore – Soft AutoCommit: disabled 3031 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrCore – SolrDeletionPolicy.onInit: commits: num=1 commit{dir=NRTCachingDirectory(org.apache.lucene.store.NIOFSDirectory@/root/Desktop/inchoo/solr-4.6.0/example/solr/collection1/data/index lockFactory=org.apache.lucene.store.NativeFSLockFactory@18311fc; maxCacheMB=48.0 maxMergeSizeMB=4.0),segFN=segments_2q,generation=98} 3032 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrCore – newest commit generation = 98 3054 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.search.SolrIndexSearcher – Opening Searcher@1d10729 main 3058 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.handler.component.SpellCheckComponent – Initializing spell checkers 3064 [coreLoadExecutor-3-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} 3074 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.handler.component.SpellCheckComponent – No queryConverter defined, using default converter 3076 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.handler.component.QueryElevationComponent – Loading QueryElevation from: /root/Desktop/inchoo/solr-4.6.0/example/solr/collection1/conf/elevate.xml 3112 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.handler.ReplicationHandler – Commits will be reserved for 10000 3112 [searcherExecutor-4-thread-1] INFO org.apache.solr.core.SolrCore – QuerySenderListener sending requests to Searcher@1d10729 main{StandardDirectoryReader(segments_2q:204:nrt _1y(4.6):C28)} 3122 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.CoreContainer – registering core: collection1 3124 [main] INFO org.apache.solr.servlet.SolrDispatchFilter – user.dir=/root/Desktop/inchoo/solr-4.6.0/example 3124 [main] INFO org.apache.solr.servlet.SolrDispatchFilter – SolrDispatchFilter.init() done 3161 [main] INFO org.eclipse.jetty.server.AbstractConnector – Started SocketConnector@0.0.0.0:8080 3165 [searcherExecutor-4-thread-1] INFO org.apache.solr.core.SolrCore – [collection1] webapp=null path=null params={event=firstSearcher&amp;q=static+firstSearcher+warming+in+solrconfig.xml&amp;distrib=false} hits=0 status=0 QTime=52 3166 [searcherExecutor-4-thread-1] INFO org.apache.solr.core.SolrCore – QuerySenderListener done. 3166 [searcherExecutor-4-thread-1] INFO org.apache.solr.handler.component.SpellCheckComponent – Loading spell index for spellchecker: default 3166 [searcherExecutor-4-thread-1] INFO org.apache.solr.handler.component.SpellCheckComponent – Loading spell index for spellchecker: wordbreak 3167 [searcherExecutor-4-thread-1] INFO org.apache.solr.core.SolrCore – [collection1] Registered new searcher Searcher@1d10729 main{StandardDirectoryReader(segments_2q:204:nrt _1y(4.6):C28)} </code></pre> <p><strong>This is the solr log when i'm searching with a word 'IPhone'...</strong></p> <pre><code>61966 [qtp23254862-17] INFO org.apache.solr.core.SolrCore – [collection1] webapp=/solr path=/select params={fl=product_id,score&amp;start=0&amp;q=iphone&amp;json.nl=map&amp;wt=json&amp;fq=store_id:1&amp;rows=100} hits=28 status=0 QTime=13 </code></pre> <p>Any thing wrong i did here...</p> <p>I hope its working fine...</p> <p>How do i know that whether Solr Search is working or not...</p> <p>Thanks.</p> <p>Any Ideas ? </p> </div>

eclipse导入lucene出错

我的步骤是这样的: 1. 从网站checkout源码 svn co地址 [https://svn.apache.org/repos/asf/lucene/dev/tags/lucene_solr_5_2_1/]( "") 2. cmd 到目录下 执行 ant eclipse 报错 错误信息如下 [ivy:configure] :: loading settings :: file = D:\project\lucene\luncene+solr\luc ene\ivy-settings.xml resolve: [ivy:retrieve] [ivy:retrieve] :: problems summary :: [ivy:retrieve] :::: WARNINGS [ivy:retrieve] module not found: org.apache.uima#Tagger;2.3.1 [ivy:retrieve] ==== local: tried [ivy:retrieve] C:\Users\Administrator\.ivy2\local\org.apache.uima\Tagger\2.3. 1\ivys\ivy.xml [ivy:retrieve] -- artifact org.apache.uima#Tagger;2.3.1!Tagger.jar: [ivy:retrieve] C:\Users\Administrator\.ivy2\local\org.apache.uima\Tagger\2.3. 1\jars\Tagger.jar [ivy:retrieve] ==== shared: tried [ivy:retrieve] C:\Users\Administrator\.ivy2\shared\org.apache.uima\Tagger\2.3 .1\ivys\ivy.xml [ivy:retrieve] -- artifact org.apache.uima#Tagger;2.3.1!Tagger.jar: [ivy:retrieve] C:\Users\Administrator\.ivy2\shared\org.apache.uima\Tagger\2.3 .1\jars\Tagger.jar [ivy:retrieve] ==== public: tried [ivy:retrieve] http://repo1.maven.org/maven2/org/apache/uima/Tagger/2.3.1/Tag ger-2.3.1.pom [ivy:retrieve] ==== maven.restlet.org: tried [ivy:retrieve] http://maven.restlet.org/org/apache/uima/Tagger/2.3.1/Tagger-2 .3.1.pom [ivy:retrieve] -- artifact org.apache.uima#Tagger;2.3.1!Tagger.jar: [ivy:retrieve] http://maven.restlet.org/org/apache/uima/Tagger/2.3.1/Tagger-2 .3.1.jar [ivy:retrieve] ==== sonatype-releases: tried [ivy:retrieve] https://oss.sonatype.org/content/repositories/releases/org/apa che/uima/Tagger/2.3.1/Tagger-2.3.1.pom [ivy:retrieve] -- artifact org.apache.uima#Tagger;2.3.1!Tagger.jar: [ivy:retrieve] https://oss.sonatype.org/content/repositories/releases/org/apa che/uima/Tagger/2.3.1/Tagger-2.3.1.jar [ivy:retrieve] ==== releases.cloudera.com: tried [ivy:retrieve] http://repository.cloudera.com/content/repositories/releases/o rg/apache/uima/Tagger/2.3.1/Tagger-2.3.1.pom [ivy:retrieve] -- artifact org.apache.uima#Tagger;2.3.1!Tagger.jar: [ivy:retrieve] http://repository.cloudera.com/content/repositories/releases/o rg/apache/uima/Tagger/2.3.1/Tagger-2.3.1.jar [ivy:retrieve] ==== rr-snapshot: tried [ivy:retrieve] https://oss.sonatype.org/content/repositories/comcarrotsearch- 1039/org/apache/uima/Tagger/2.3.1/Tagger-2.3.1.pom [ivy:retrieve] -- artifact org.apache.uima#Tagger;2.3.1!Tagger.jar: [ivy:retrieve] https://oss.sonatype.org/content/repositories/comcarrotsearch- 1039/org/apache/uima/Tagger/2.3.1/Tagger-2.3.1.jar [ivy:retrieve] ==== working-chinese-mirror: tried [ivy:retrieve] http://uk.maven.org/maven2/org/apache/uima/Tagger/2.3.1/Tagger -2.3.1.pom [ivy:retrieve] :::::::::::::::::::::::::::::::::::::::::::::: [ivy:retrieve] :: UNRESOLVED DEPENDENCIES :: [ivy:retrieve] :::::::::::::::::::::::::::::::::::::::::::::: [ivy:retrieve] :: org.apache.uima#Tagger;2.3.1: not found [ivy:retrieve] :::::::::::::::::::::::::::::::::::::::::::::: [ivy:retrieve] [ivy:retrieve] :::: ERRORS [ivy:retrieve] impossible to acquire lock for org.apache.uima#Tagger;2.3.1 [ivy:retrieve] impossible to acquire lock for org.apache.uima#Tagger;2.3.1 [ivy:retrieve] impossible to acquire lock for org.apache.uima#Tagger;2.3.1 [ivy:retrieve] impossible to acquire lock for org.apache.uima#Tagger;2.3.1 [ivy:retrieve] impossible to acquire lock for org.apache.uima#Tagger;2.3.1 [ivy:retrieve] impossible to acquire lock for org.apache.uima#Tagger;2.3.1 [ivy:retrieve] impossible to acquire lock for org.apache.uima#Tagger;2.3.1 [ivy:retrieve] impossible to acquire lock for org.apache.uima#Tagger;2.3.1 [ivy:retrieve] impossible to acquire lock for org.apache.uima#Tagger;2.3.1 [ivy:retrieve] impossible to acquire lock for org.apache.uima#Tagger;2.3.1 [ivy:retrieve] impossible to acquire lock for org.apache.uima#Tagger;2.3.1 [ivy:retrieve] [ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS BUILD FAILED D:\project\lucene\luncene+solr\build.xml:147: The following error occurred while executing this line: D:\project\lucene\luncene+solr\lucene\build.xml:123: The following error occurre d while executing this line: D:\project\lucene\luncene+solr\lucene\common-build.xml:2232: The following error occurred while executing this line: D:\project\lucene\luncene+solr\lucene\analysis\build.xml:91: The following error occurred while executing this line: D:\project\lucene\luncene+solr\lucene\analysis\build.xml:38: The following error occurred while executing this line: D:\project\lucene\luncene+solr\lucene\common-build.xml:431: impossible to resolv e dependencies: resolve failed - see output for details Total time: 22 minutes 18 seconds 谢了啊

Zend_Search_Lucene vs SOLR

<div class="post-text" itemprop="text"> <p>I have recenlty stumbled into Zend Lucene port of Lucene project. I have a little bit experience with SOLR so I would like to know what is the difference between two of them especially from performance and installation side. </p> <p>As much as I know SOLR requires Tomcat serverlet running in web hosting in order to work, what about Zend Lucene library? </p> <p>I am also a bit confused what means "being implemented on the top of Lucene"?</p> </div>

lucene和solr的分词器词库如何从数据库加载?求代码

1,由于我们加入了同义词,所以需要定义一个IK的同义词工厂类IKSynonymFilterFactory继承TokenFilterFactory类并实现ResourceLoaderAware接口和Runnable接口,并重写create方法,在solr的里使用 2,我们定义一个ISSAnalyer类继承Analyzer,并重写必要方法,方便在控制台下测试。 3,定义一个IKTokenizerFactory类继承TokenizerFactory并实现ResourceLoaderAware接口,并重写inform方法和create方法,在solr里配置使用。 这是实现步奏,但是不知道具体怎么写,有没有hadoop大神!根据id,subject,content进行索引[点击查看数据库字段。根据id,subject,content进行索引](https://img-ask.csdn.net/upload/201605/11/1462954182_473397.png)

solr和tomcat整合失败!

按照教程一步一步来,最后访问http://localhost:8080/solr/index.html,没有报错也没有画面,也没有转圈,但是空白。![图片说明](https://img-ask.csdn.net/upload/201909/27/1569529778_692373.png) 日志文件如下: ``` 2019-09-27 03:59:27.772 ERROR (localhost-startStop-1) [ ] o.a.s.u.StartupLoggingUtils Missing Java Option solr.log.dir. Logging may be missing or incomplete. 2019-09-27 03:59:27.780 INFO (localhost-startStop-1) [ ] o.a.s.s.SolrDispatchFilter Using logger factory org.apache.logging.slf4j.Log4jLoggerFactory 2019-09-27 03:59:27.785 INFO (localhost-startStop-1) [ ] o.a.s.s.SolrDispatchFilter ___ _ Welcome to Apache Solr? version 7.7.2 2019-09-27 03:59:27.785 INFO (localhost-startStop-1) [ ] o.a.s.s.SolrDispatchFilter / __| ___| |_ _ Starting in standalone mode on port null 2019-09-27 03:59:27.789 INFO (localhost-startStop-1) [ ] o.a.s.s.SolrDispatchFilter \__ \/ _ \ | '_| Install dir: null 2019-09-27 03:59:27.847 INFO (localhost-startStop-1) [ ] o.a.s.s.SolrDispatchFilter |___/\___/_|_| Start time: 2019-09-26T19:59:27.798Z 2019-09-27 03:59:27.862 INFO (localhost-startStop-1) [ ] o.a.s.c.SolrResourceLoader Using JNDI solr.home: D:/SoftWare/solr/solrHome 2019-09-27 03:59:27.868 INFO (localhost-startStop-1) [ ] o.a.s.c.SolrXmlConfig Loading container configuration from D:\SoftWare\solr\solrHome\solr.xml 2019-09-27 03:59:27.915 INFO (localhost-startStop-1) [ ] o.a.s.c.SolrXmlConfig MBean server found: com.sun.jmx.mbeanserver.JmxMBeanServer@41a4555e, but no JMX reporters were configured - adding default JMX reporter. 2019-09-27 03:59:28.359 INFO (localhost-startStop-1) [ ] o.a.s.h.c.HttpShardHandlerFactory Host whitelist initialized: WhitelistHostChecker [whitelistHosts=null, whitelistHostCheckingEnabled=true] 2019-09-27 03:59:28.796 INFO (localhost-startStop-1) [ ] o.a.s.c.TransientSolrCoreCacheDefault Allocating transient cache for 2147483647 transient cores 2019-09-27 03:59:28.799 INFO (localhost-startStop-1) [ ] o.a.s.h.a.MetricsHistoryHandler No .system collection, keeping metrics history in memory. 2019-09-27 03:59:28.858 INFO (localhost-startStop-1) [ ] o.a.s.m.r.SolrJmxReporter JMX monitoring for 'solr.node' (registry 'solr.node') enabled at server: com.sun.jmx.mbeanserver.JmxMBeanServer@41a4555e 2019-09-27 03:59:28.860 INFO (localhost-startStop-1) [ ] o.a.s.m.r.SolrJmxReporter JMX monitoring for 'solr.jvm' (registry 'solr.jvm') enabled at server: com.sun.jmx.mbeanserver.JmxMBeanServer@41a4555e 2019-09-27 03:59:28.861 INFO (localhost-startStop-1) [ ] o.a.s.m.r.SolrJmxReporter JMX monitoring for 'solr.jetty' (registry 'solr.jetty') enabled at server: com.sun.jmx.mbeanserver.JmxMBeanServer@41a4555e 2019-09-27 03:59:28.900 INFO (localhost-startStop-1) [ ] o.a.s.c.CorePropertiesLocator Found 0 core definitions underneath D:\SoftWare\solr\solrHome ``` 找了很多方法,就是没找到问题出在哪里,求大神知道。 PS:我的solrHome路径指定了,该注释的注释了。。

求教,使用ant构建solr-src失败.

想向eclipse中导入solr源码,用ivy和ant按步骤操作,在根目录下运行ant eclipse,但根目录下没有.class文件,还需要别的配置么,哪位大哥指点一下.![图片说明](https://img-ask.csdn.net/upload/201704/14/1492179994_933759.jpg)![图片说明](https://img-ask.csdn.net/upload/201704/14/1492180110_3338.jpg) 提示E:\kaifachajian\solr-4.10.3\build.xml:111: The following error occurred while executing this li ne: E:\kaifachajian\solr-4.10.3\lucene\build.xml:194: The following error occurred while executing this line: E:\kaifachajian\solr-4.10.3\lucene\common-build.xml:438: impossible to resolve dependencies: resolve failed - see output for details

solr7.1.0+ik中文分词器配置完后查询没分词

solr7.1.0配置分词器后查询时不分词,但在solr客户端analysis中可以分词成功![图片说明](https://img-ask.csdn.net/upload/201711/30/1512032821_706586.png) 1、managed-schema中ik配置 <fieldType name="text_ik" class="solr.TextField"> <analyzer type="index"> <tokenizer class="org.apache.lucene.analysis.ik.IKTokenizerFactory" isMaxWordLength="false"/> </analyzer> <analyzer type="query"> <tokenizer class="org.apache.lucene.analysis.ik.IKTokenizerFactory" isMaxWordLength="true"/> </analyzer> </fieldType> 2、使用了solr7.1.0自带的分词器也是查询时没分词。 <fieldType name="solr_participle" class="solr.TextField" positionIncrementGap="100"> <analyzer type="index"> <tokenizer class="org.apache.lucene.analysis.cn.smart.HMMChineseTokenizerFactory"/> </analyzer> <analyzer type="query"> <tokenizer class="org.apache.lucene.analysis.cn.smart.HMMChineseTokenizerFactory"/> </analyzer> </fieldType>

请问一下solr界面数据导入出现的问题

1、solr配置是对的,可以正常进入localhost:8080/solr 2、然后配置了solrconfig.xml文件,添加了如下的配置: <requestHandler name="/dataimport" class="org.apache.solr.handler.dataimport.DataImportHandler"> <lst name="defaults"> <str name="config">data-config.xml</str> </lst> </requestHandler> 3、创建data-config.xml文件,添加内容: <?xml version="1.0" encoding="UTF-8" ?> <dataConfig> <dataSource type = "JdbcDataSource" driver="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/lucene" user="root" password="root"/> <document> <entity name="product" query="SELECT pid,name,catalog_name,price,description,picture FROM products"> <field column="pid" name="id"/> <field colume="name" name="product_name"/> <field column="catalog_name" name="product_catalog_name"/> <field column="price" name="product_price"/> <field column="description" name="product_description"/> <field column="picture" name="product_picture"/> </entity> </document> </dataConfig> 4、在schema.xml文件中加入内容: <!-- product --> <field name="product_name" type="text_ik" indexed="true" stored="true" /> <field name="product_price" type="float" indexed="true" stored="true" /> <field name="product_description" type="text_ik" indexed="true" stored="false"/> <field name="product_picture" type="string" indexed="false" stored="true" /> <field name="product_catalog_name" type="string" indexed="true" stored="true" /> <!-- 根据关键词搜索 --> <field name="product_keywords" type="text_ik" indexed="true" stored="false" multiValued="true"/> <copyField source="product_name" dest="product_keywords"/> <copyField source="product_description" dest="product_keywords"/> 5、打开localhost:8080/solr,进入solr界面(已经创建了lucene数据库,并且导入了一张表格products。)打开collection1和Dataimport,选择好Entity后,执行execute,然后出现错误: Data Config problem: Field must have a column attribute 请问大神这是啥原因?谢谢了。

solr配置IKAnalyzer出现错误

schema.xml中的配置 ![图片说明](https://img-ask.csdn.net/upload/201609/04/1473004423_809442.png) <fieldType name="text_ik" class="solr.TextField"> <analyzer class="org.wltea.analyzer.lucene.IKAnalyzer"/> </fieldType> <field name="name" type="text_ik" indexed="true" stored="true"/> <field name="age" type="long" indexed="true" stored="true"/> <field name="desc" type="text_ik" indexed="true" stored="true"/>

Solr在多个集合中搜索

<div class="post-text" itemprop="text"> <p>Iam working with Solr. My solr.xml file looks something like this.</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt; &lt;solr persistent="true"&gt; &lt;cores defaultCoreName="test1" host="${host:}" adminPath="/admin/cores" zkClientTimeout="${zkClientTimeout:15000}" hostPort="${jetty.port:8983}" hostContext="${hostContext:solr}"&gt; &lt;core loadOnStartup="true" instanceDir="test1/" transient="false" name="test1" collection="test1"/&gt; &lt;core loadOnStartup="true" instanceDir="test2/" transient="false" name="test2" collection="test2"/&gt; &lt;/cores&gt; &lt;/solr&gt; </code></pre> <p>Now, i want to search in both collections. So i want the results that hit in collection1 or in collection2.</p> <p>Must i send two requests or is solr able to handle one request against 2 (or more) collections.</p> <p>I could do something like this:</p> <pre><code>http://***.***.***.***:8080/solr/test1/select?q=field%3Dtest&amp;wt=xml&amp;indent=true http://***.***.***.***:8080/solr/test2/select?q=field%3Dtest&amp;wt=xml&amp;indent=true </code></pre> </div>

在solr / lucene中过滤存储在远程数据库中的字段的最佳方法?

<div class="post-text" itemprop="text"> <p>I have an index of about 100k documents that represent a movie entity.</p> <p>Users can put films on various lists (like favorites etc.)</p> <p>These lists are stored in a mysql database and are not indexed in solr.</p> <p>I could store the user ids in multivalued fields that represent a list, but that is quite bad because the fields would get very, very long and the indexing would be problematic too.</p> <p>So currently i do the following (pseudocode):</p> <pre><code>$favorites = SELECT document_id FROM favorites WHERE user_id = $user_id $documents = 'http://solr.com:8393/select/?q=XYZ&amp;fq=document_id:('.join(' OR ',$favorites); </code></pre> <p>this works great and fast but the number of items in filter queries is limited to 1024 (i tried that). also filter queries add up. so if i have one filter query with 500 values to filter i can have another values to 524 filters on another field.</p> <p>It's okay for now because I limited the entries per list to 1024, and that's quite a lot but I think this approach is very clumsy and produces a lot of overhead.</p> <p>Isn't there a better solution? Like writing a solr module that directly connects to the database or something? I'd like to do it in php.</p> <p>If there is no other way, can i somehow raise the 1024 limit? because it works very fast now! I think with good hardware more wouldn't be a problem.</p> <p>Edit: as asked in the comments i here post my original schema and a working example query.</p> <pre><code>&lt;field name="film_id" type="int" indexed="true" stored="true" required="true"/&gt; &lt;field name="imdb_id" type="int" indexed="true" stored="true" /&gt; &lt;field name="parent_id" type="int" indexed="true" stored="true"/&gt; &lt;field name="malus" type="int" indexed="true" stored="true"/&gt; &lt;field name="type" type="int" indexed="true" stored="true"/&gt; &lt;field name="year" type="int" indexed="true" stored="true" termVectors="true"/&gt; &lt;field name="locale_title" type="string" indexed="false" stored="true"/&gt; &lt;field name="aka_title" type="filmtitle" indexed="true" stored="true" multiValued="true" omitNorms="true" termVectors="true" /&gt; &lt;field name="sort_title" type="string" indexed="true" stored="true"/&gt; &lt;field name="director" type="person" indexed="true" stored="true" multiValued="true" omitNorms="true"/&gt; &lt;field name="director_phonetic" type="person_phonetic" multiValued="true" omitNorms="true"/&gt; &lt;field name="actor" type="person" indexed="true" stored="true" multiValued="true" omitNorms="true"/&gt; &lt;field name="actor_phonetic" type="person_phonetic" multiValued="true" omitNorms="true"/&gt; &lt;field name="country" type="string" indexed="true" stored="true" multiValued="true"/&gt; &lt;field name="description" type="text" indexed="true" stored="true" /&gt; &lt;field name="genre" type="genre" indexed="true" stored="true" multiValued="true" termVectors="true"/&gt; &lt;field name="url" type="string" indexed="true" stored="true" multiValued="false"/&gt; &lt;field name="image_url" type="string" indexed="false" stored="true" multiValued="false"/&gt; &lt;field name="rating" type="int" indexed="true" stored="true" required="false" default="50"/&gt; &lt;field name="affiliate" type="string" indexed="true" stored="true" multiValued="true"/&gt; &lt;field name="product_type" type="string" indexed="true" stored="true" multiValued="true"/&gt; &lt;dynamicField name="product_*" type="string" indexed="true" stored="true" multiValued="true"/&gt; &lt;field name="blockbuster" type="boolean" indexed="true" stored="true" /&gt; &lt;copyField source="film_id" dest="id"/&gt; &lt;field name="director_id" type="string" indexed="true" stored="true" multiValued="true" termVectors="true"/&gt; &lt;field name="actor_id" type="string" indexed="true" stored="true" multiValued="true" termVectors="true"/&gt; </code></pre> <p>theese are my additions to the default schema.xml</p> <p>a sample search result can be viewed <a href="http://tinypaste.com/4504a" rel="nofollow">here</a>.</p> <p>a sample query would be:</p> <pre><code>http://my-server.com:8983/solr/select/? q=description:nazis &amp;fq=product_bluray:amazon &amp;fq=film_id:(1185616 1054606 88763 361748 78748) </code></pre> <p>here the user would search for movies that are:</p> <ul> <li>available on amazon as a bluray</li> <li>that have the term "nazis" in the description</li> <li>AND that are on his favorite list</li> </ul> <p>the list includes the movies (documents) with the ids <em>1185616 1054606 88763 361748 78748</em> and are stored in the mysql database.</p> <p>ps: I don't know whether I formulated the question well, I hope its understandable. If not, please feel free to edit!</p> </div>

关于solr在cmd启动项中报错“错误: 找不到或无法加载主类 org.apache.solr.util.SolrCLI”

本人是个Java开发有着两年的开发经验,最近的项目中运用到了solr搜索引擎,之前对这个东西了解的就不是太深但是也有一定的研究,下载的是官网上如下图的版本: ![图片说明](https://img-ask.csdn.net/upload/201911/04/1572880574_970102.png) 看了一些别人使用的博客,准备现在自己的电脑上做实验, 但是在下载解压后我在cmd的窗口下敲命令想启动自己的solr,当我输入 solr start的时候报错如下图所示的内容: ![图片说明](https://img-ask.csdn.net/upload/201911/04/1572880688_981514.png) 错误: 找不到或无法加载主类 org.apache.solr.util.SolrCLI 在网上没有搜到遇见此问题的人,特此想在这里问问各位有过solr开发经验的大佬们这是什么情况?我该如何去解决?

solr问题,,,望大牛解决一下。谢谢谢谢谢

标签: schema.xml 配置文件信息:    <fieldType name="text_ik" class="solr.TextField"> <analyzer class="org.wltea.analyzer.lucene.IKAnalyzer"/> </fieldType> <field name="bjsxt" type="text_ik" indexed="true" stored="true"/> <fieldType name="text_ik" class="solr.TextField"> <analyzer class="org.wltea.analyzer.lucene.IKAnalyzer"/> </fieldType> <field name="bjsxt" type="text_ik" indexed="true" stored="true"/> <field name="item_title" type="text_ik" indexed="true" stored="true"/> <field name="item_sell_point" type="text_ik" indexed="true" stored="true"/> <field name="item_price" type="long" indexed="true" stored="true"/> <field name="item_image" type="string" indexed="false" stored="true" /> <field name="item_category_name" type="string" indexed="true" stored="true" /> <field name="item_desc" type="text_ik" indexed="true" stored="false" /> <field name="item_keywords" type="text_ik" indexed="true" stored="false" multiValued="true"/> <copyField source="item_title" dest="item_keywords"/> <copyField source="item_sell_point" dest="item_keywords"/> <copyField source="item_category_name" dest="item_keywords"/> <copyField source="item_desc" dest="item_keywords"/> 错误提示: HTTP ERROR 500 HTTP Status 500 - {msg=SolrCore 'collection1' is not available due to init failure: Could not load conf for core collection1: Plugin init failure for [schema.xml] fieldType "text_ik": Cannot load analyzer: org.wltea.analyzer.lucene.IKAnalyzer. Schema file is /configs/collection1/schema.xml,trace=org.apache.solr.common.SolrException: SolrCore 'collection1' is not available due to init failure: Could not load conf for core collection1: Plugin init failure for [schema.xml] fieldType "text_ik": Cannot load analyzer: org.wltea.analyzer.lucene.IKAnalyzer. Schema file is /configs/collection1/schema.xml at org.apache.solr.core.CoreContainer.getCore(CoreContainer.java:745) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:347) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:207) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956) at 。。 。 。 type Status report message {msg=SolrCore 'collection1' is not available due to init failure: Could not load conf for core collection1: Plugin init failure for [schema.xml] fieldType "text_ik": Cannot load analyzer: org.wltea.analyzer.lucene.IKAnalyzer. Schema file is /configs/collection1/schema.xml,trace=org.apache.solr.common.SolrException: SolrCore 'collection1' is not available due to init failure: Could not load conf for core collection1: Plugin init failure for [schema.xml] fieldType "text_ik": Cannot load analyzer: org.wltea.analyzer.lucene.IKAnalyzer. Schema file is /configs/collection1/schema.xml at org.apache.solr.core.CoreContainer.getCore(CoreContainer.java:745) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:347) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:207) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at

“解析JSON字段值时出错。 意外的OBJECT_START在[16],字段=添加“通过cURL向Solr添加记录

<div class="post-text" itemprop="text"> <p>Based on the example <a href="https://stackoverflow.com/questions/24174999/add-document-to-apache-solr-via-php-curl">here</a> (and other places), I am attempting to add a record to a simple Solr index (the only fields are <code>src</code> and <code>dest</code>, both single value string fields, and solrconfig is set to auto generate the <code>id</code> value) via PHP and cURL using the following code:</p> <pre><code>$data = array( "add" =&gt; array( "doc" =&gt; array( "src" =&gt; $src, "dest" =&gt; $dest ), "commitWithin" =&gt; 1000, ), ); $data_string = json_encode(array($data)); $add_url = 'https://my-solr-url.com/solr/my_index/update?commit=true&amp;wt=json'; $add_ch = curl_init($add_url); curl_setopt($add_ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($add_ch, CURLOPT_POST, 1); curl_setopt($add_ch, CURLOPT_HTTPHEADER, array('Content-type: application/json')); curl_setopt($add_ch, CURLOPT_POSTFIELDS, $data_string); $add_response = json_decode(curl_exec($add_ch)); curl_close($add_ch); </code></pre> <p>However, when I run it, I get the following error:</p> <pre><code>Error parsing JSON field value. Unexpected OBJECT_START at [16], field=add </code></pre> <p>Based on the <a href="https://lucene.apache.org/solr/guide/7_3/uploading-data-with-index-handlers.html#adding-a-single-json-document" rel="nofollow noreferrer">Solr docs</a>, I tried the following variation:</p> <pre><code>$data = array( 'src' =&gt; $src, 'dest' =&gt; $dest ); $data_string = json_encode(array($data)); $add_url = 'https://my-solr-url.com/solr/my_index/update/json/docs?commit=true&amp;wt=json'; $add_ch = curl_init($add_url); curl_setopt($add_ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($add_ch, CURLOPT_POST, 1); curl_setopt($add_ch, CURLOPT_HTTPHEADER, array('Content-type: application/json')); curl_setopt($add_ch, CURLOPT_POSTFIELDS, $data_string); $add_response = json_decode(curl_exec($add_ch)); curl_close($add_ch); </code></pre> <p>But now I get an error about <code>Unknown field src</code>. From what I can see, Im following the docs, but nothing works. What do I need to change?</p> </div>

solr7.1.0+ik中文分词器同义词库不生效

# solr7.1.0+ik中文分词器同义词库不生效 ## 环境 Tomcat9.1.12 Solr7.1.0 ikAnalyzer6.5 ## 词库配置内容如下: ```xml <fieldType name="text_syn1" class="solr.TextField"> <analyzer type="query"> <tokenizer class="org.wltea.analyzer.lucene.IKTokenizerFactory" useSmart="false" isMaxWordLength="true"/> <filter class="solr.SynonymFilterFactory" expand="true" ignoreCase="true" synonyms="synonyms.txt"/> <filter class="solr.LowerCaseFilterFactory"/> </analyzer> <analyzer type="index"> <tokenizer class="org.wltea.analyzer.lucene.IKTokenizerFactory" useSmart="fasle" isMaxWordLength="false"/> <filter class="solr.SynonymFilterFactory" expand="true" ignoreCase="true" synonyms="synonyms.txt"/> <filter class="solr.LowerCaseFilterFactory"/> </analyzer> </fieldType> <field name="name" type="text_syn1" indexed="true" stored="true"/> ``` ##同义词库配置 半月传 => 芈月传 奔跑吧,跑男,奔跑吧兄弟 哀求,乞求 爱护国家主权,爱国 爱好,喜好 安分守己,奉公守法,乐天知命,安守故常,循规蹈矩 ##查询出错图片 ![图片说明](https://img-ask.csdn.net/upload/201905/05/1557043606_201413.png) 我看到有个博客讲的是要修改SolrFactory,不知可有高人指点

java项目中,solr如何整合mongoDB

正在做一个java项目,这个项目使用mongoDB数据库,采用solr搜索引擎。请问如何整合这两者?

大学四年自学走来,这些私藏的实用工具/学习网站我贡献出来了

大学四年,看课本是不可能一直看课本的了,对于学习,特别是自学,善于搜索网上的一些资源来辅助,还是非常有必要的,下面我就把这几年私藏的各种资源,网站贡献出来给你们。主要有:电子书搜索、实用工具、在线视频学习网站、非视频学习网站、软件下载、面试/求职必备网站。 注意:文中提到的所有资源,文末我都给你整理好了,你们只管拿去,如果觉得不错,转发、分享就是最大的支持了。 一、电子书搜索 对于大部分程序员...

在中国程序员是青春饭吗?

今年,我也32了 ,为了不给大家误导,咨询了猎头、圈内好友,以及年过35岁的几位老程序员……舍了老脸去揭人家伤疤……希望能给大家以帮助,记得帮我点赞哦。 目录: 你以为的人生 一次又一次的伤害 猎头界的真相 如何应对互联网行业的「中年危机」 一、你以为的人生 刚入行时,拿着傲人的工资,想着好好干,以为我们的人生是这样的: 等真到了那一天,你会发现,你的人生很可能是这样的: ...

Java基础知识面试题(2020最新版)

文章目录Java概述何为编程什么是Javajdk1.5之后的三大版本JVM、JRE和JDK的关系什么是跨平台性?原理是什么Java语言有哪些特点什么是字节码?采用字节码的最大好处是什么什么是Java程序的主类?应用程序和小程序的主类有何不同?Java应用程序与小程序之间有那些差别?Java和C++的区别Oracle JDK 和 OpenJDK 的对比基础语法数据类型Java有哪些数据类型switc...

我以为我学懂了数据结构,直到看了这个导图才发现,我错了

数据结构与算法思维导图

String s = new String(" a ") 到底产生几个对象?

老生常谈的一个梗,到2020了还在争论,你们一天天的,哎哎哎,我不是针对你一个,我是说在座的各位都是人才! 上图红色的这3个箭头,对于通过new产生一个字符串(”宜春”)时,会先去常量池中查找是否已经有了”宜春”对象,如果没有则在常量池中创建一个此字符串对象,然后堆中再创建一个常量池中此”宜春”对象的拷贝对象。 也就是说准确答案是产生了一个或两个对象,如果常量池中原来没有 ”宜春” ,就是两个。...

技术大佬:我去,你写的 switch 语句也太老土了吧

昨天早上通过远程的方式 review 了两名新来同事的代码,大部分代码都写得很漂亮,严谨的同时注释也很到位,这令我非常满意。但当我看到他们当中有一个人写的 switch 语句时,还是忍不住破口大骂:“我擦,小王,你丫写的 switch 语句也太老土了吧!” 来看看小王写的代码吧,看完不要骂我装逼啊。 private static String createPlayer(PlayerTypes p...

Linux面试题(2020最新版)

文章目录Linux 概述什么是LinuxUnix和Linux有什么区别?什么是 Linux 内核?Linux的基本组件是什么?Linux 的体系结构BASH和DOS之间的基本区别是什么?Linux 开机启动过程?Linux系统缺省的运行级别?Linux 使用的进程间通信方式?Linux 有哪些系统日志文件?Linux系统安装多个桌面环境有帮助吗?什么是交换空间?什么是root帐户什么是LILO?什...

Linux命令学习神器!命令看不懂直接给你解释!

大家都知道,Linux 系统有非常多的命令,而且每个命令又有非常多的用法,想要全部记住所有命令的所有用法,恐怕是一件不可能完成的任务。 一般情况下,我们学习一个命令时,要么直接百度去搜索它的用法,要么就直接用 man 命令去查看守冗长的帮助手册。这两个都可以实现我们的目标,但有没有更简便的方式呢? 答案是必须有的!今天给大家推荐一款有趣而实用学习神器 — kmdr,让你解锁 Linux 学习新姿势...

和黑客斗争的 6 天!

互联网公司工作,很难避免不和黑客们打交道,我呆过的两家互联网公司,几乎每月每天每分钟都有黑客在公司网站上扫描。有的是寻找 Sql 注入的缺口,有的是寻找线上服务器可能存在的漏洞,大部分都...

史上最全的 python 基础知识汇总篇,没有比这再全面的了,建议收藏

网友们有福了,小编终于把基础篇的内容全部涉略了一遍,这是一篇关于基础知识的汇总的文章,请朋友们收下,不用客气,不过文章篇幅肯能会有点长,耐心阅读吧爬虫(七十)多进程multiproces...

讲一个程序员如何副业月赚三万的真实故事

loonggg读完需要3分钟速读仅需 1 分钟大家好,我是你们的校长。我之前讲过,这年头,只要肯动脑,肯行动,程序员凭借自己的技术,赚钱的方式还是有很多种的。仅仅靠在公司出卖自己的劳动时...

女程序员,为什么比男程序员少???

昨天看到一档综艺节目,讨论了两个话题:(1)中国学生的数学成绩,平均下来看,会比国外好?为什么?(2)男生的数学成绩,平均下来看,会比女生好?为什么?同时,我又联想到了一个技术圈经常讨...

85后蒋凡:28岁实现财务自由、34岁成为阿里万亿电商帝国双掌门,他的人生底层逻辑是什么?...

蒋凡是何许人也? 2017年12月27日,在入职4年时间里,蒋凡开挂般坐上了淘宝总裁位置。 为此,时任阿里CEO张勇在任命书中力赞: 蒋凡加入阿里,始终保持创业者的冲劲,有敏锐的...

总结了 150 余个神奇网站,你不来瞅瞅吗?

原博客再更新,可能就没了,之后将持续更新本篇博客。

副业收入是我做程序媛的3倍,工作外的B面人生是怎样的?

提到“程序员”,多数人脑海里首先想到的大约是:为人木讷、薪水超高、工作枯燥…… 然而,当离开工作岗位,撕去层层标签,脱下“程序员”这身外套,有的人生动又有趣,马上展现出了完全不同的A/B面人生! 不论是简单的爱好,还是正经的副业,他们都干得同样出色。偶尔,还能和程序员的特质结合,产生奇妙的“化学反应”。 @Charlotte:平日素颜示人,周末美妆博主 大家都以为程序媛也个个不修边幅,但我们也许...

MySQL数据库面试题(2020最新版)

文章目录数据库基础知识为什么要使用数据库什么是SQL?什么是MySQL?数据库三大范式是什么mysql有关权限的表都有哪几个MySQL的binlog有有几种录入格式?分别有什么区别?数据类型mysql有哪些数据类型引擎MySQL存储引擎MyISAM与InnoDB区别MyISAM索引与InnoDB索引的区别?InnoDB引擎的4大特性存储引擎选择索引什么是索引?索引有哪些优缺点?索引使用场景(重点)...

新一代神器STM32CubeMonitor介绍、下载、安装和使用教程

关注、星标公众号,不错过精彩内容作者:黄工公众号:strongerHuang最近ST官网悄悄新上线了一款比较强大的工具:STM32CubeMonitor V1.0.0。经过我研究和使用之...

如果你是老板,你会不会踢了这样的员工?

有个好朋友ZS,是技术总监,昨天问我:“有一个老下属,跟了我很多年,做事勤勤恳恳,主动性也很好。但随着公司的发展,他的进步速度,跟不上团队的步伐了,有点...

我入职阿里后,才知道原来简历这么写

私下里,有不少读者问我:“二哥,如何才能写出一份专业的技术简历呢?我总感觉自己写的简历太烂了,所以投了无数份,都石沉大海了。”说实话,我自己好多年没有写过简历了,但我认识的一个同行,他在阿里,给我说了一些他当年写简历的方法论,我感觉太牛逼了,实在是忍不住,就分享了出来,希望能够帮助到你。 01、简历的本质 作为简历的撰写者,你必须要搞清楚一点,简历的本质是什么,它就是为了来销售你的价值主张的。往深...

大学一路走来,学习互联网全靠这几个网站,最终拿下了一把offer

大佬原来都是这样炼成的

离职半年了,老东家又发 offer,回不回?

有小伙伴问松哥这个问题,他在上海某公司,在离职了几个月后,前公司的领导联系到他,希望他能够返聘回去,他很纠结要不要回去? 俗话说好马不吃回头草,但是这个小伙伴既然感到纠结了,我觉得至少说明了两个问题:1.曾经的公司还不错;2.现在的日子也不是很如意。否则应该就不会纠结了。 老实说,松哥之前也有过类似的经历,今天就来和小伙伴们聊聊回头草到底吃不吃。 首先一个基本观点,就是离职了也没必要和老东家弄的苦...

为什么你不想学习?只想玩?人是如何一步一步废掉的

不知道是不是只有我这样子,还是你们也有过类似的经历。 上学的时候总有很多光辉历史,学年名列前茅,或者单科目大佬,但是虽然慢慢地长大了,你开始懈怠了,开始废掉了。。。 什么?你说不知道具体的情况是怎么样的? 我来告诉你: 你常常潜意识里或者心理觉得,自己真正的生活或者奋斗还没有开始。总是幻想着自己还拥有大把时间,还有无限的可能,自己还能逆风翻盘,只不是自己还没开始罢了,自己以后肯定会变得特别厉害...

什么时候跳槽,为什么离职,你想好了么?

都是出来打工的,多为自己着想

为什么程序员做外包会被瞧不起?

二哥,有个事想询问下您的意见,您觉得应届生值得去外包吗?公司虽然挺大的,中xx,但待遇感觉挺低,马上要报到,挺纠结的。

当HR压你价,说你只值7K,你该怎么回答?

当HR压你价,说你只值7K时,你可以流畅地回答,记住,是流畅,不能犹豫。 礼貌地说:“7K是吗?了解了。嗯~其实我对贵司的面试官印象很好。只不过,现在我的手头上已经有一份11K的offer。来面试,主要也是自己对贵司挺有兴趣的,所以过来看看……”(未完) 这段话主要是陪HR互诈的同时,从公司兴趣,公司职员印象上,都给予对方正面的肯定,既能提升HR的好感度,又能让谈判气氛融洽,为后面的发挥留足空间。...

面试阿里p7,被按在地上摩擦,鬼知道我经历了什么?

面试阿里p7被问到的问题(当时我只知道第一个):@Conditional是做什么的?@Conditional多个条件是什么逻辑关系?条件判断在什么时候执...

你期望月薪4万,出门右拐,不送,这几个点,你也就是个初级的水平

先来看几个问题通过注解的方式注入依赖对象,介绍一下你知道的几种方式@Autowired和@Resource有何区别说一下@Autowired查找候选者的...

面试了一个 31 岁程序员,让我有所触动,30岁以上的程序员该何去何从?

最近面试了一个31岁8年经验的程序猿,让我有点感慨,大龄程序猿该何去何从。

大三实习生,字节跳动面经分享,已拿Offer

说实话,自己的算法,我一个不会,太难了吧

程序员垃圾简历长什么样?

已经连续五年参加大厂校招、社招的技术面试工作,简历看的不下于万份 这篇文章会用实例告诉你,什么是差的程序员简历! 疫情快要结束了,各个公司也都开始春招了,作为即将红遍大江南北的新晋UP主,那当然要为小伙伴们做点事(手动狗头)。 就在公众号里公开征简历,义务帮大家看,并一一点评。《启舰:春招在即,义务帮大家看看简历吧》 一石激起千层浪,三天收到两百多封简历。 花光了两个星期的所有空闲时...

立即提问
相关内容推荐