duanbei3747 2014-02-15 00:57
浏览 56
已采纳

如何在Magento CE中了解Solr Search Works

I'm working with Solr Search integration on Magento CE 1.7.0.2 from fast couple of days..

At finally i solved all errors in that.

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, & I'm getting Suggestions but looks like default search.

Here I'm posting my solr logs.. Please take look at that give me conformation.

This is my solr logs when i starts the server...

  1. 1 [main] INFO org.eclipse.jetty.server.Server – jetty-8.1.10.v20130312
  2. 28 [main] INFO org.eclipse.jetty.deploy.providers.ScanningAppProvider – Deployment monitor /root/Desktop/inchoo/solr-4.6.0/example/contexts at interval 0
  3. 36 [main] INFO org.eclipse.jetty.deploy.DeploymentManager – Deployable added: /root/Desktop/inchoo/solr-4.6.0/example/contexts/solr-jetty-context.xml
  4. 1154 [main] INFO org.eclipse.jetty.webapp.StandardDescriptorProcessor – NO JSP Support for /solr, did not find org.apache.jasper.servlet.JspServlet
  5. 1192 [main] INFO org.apache.solr.servlet.SolrDispatchFilter – SolrDispatchFilter.init()
  6. 1209 [main] INFO org.apache.solr.core.SolrResourceLoader – JNDI not configured for solr (NoInitialContextEx)
  7. 1210 [main] INFO org.apache.solr.core.SolrResourceLoader – solr home defaulted to 'solr/' (could not find system property or JNDI)
  8. 1210 [main] INFO org.apache.solr.core.SolrResourceLoader – new SolrResourceLoader for directory: 'solr/'
  9. 1347 [main] INFO org.apache.solr.core.ConfigSolr – Loading container configuration from /root/Desktop/inchoo/solr-4.6.0/example/solr/solr.xml
  10. 1458 [main] INFO org.apache.solr.core.ConfigSolrXml – Config-defined core root directory:
  11. 1467 [main] INFO org.apache.solr.core.CoreContainer – New CoreContainer 22711257
  12. 1467 [main] INFO org.apache.solr.core.CoreContainer – Loading cores into CoreContainer [instanceDir=solr/]
  13. 1481 [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory – Setting socketTimeout to: 0
  14. 1481 [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory – Setting urlScheme to: http://
  15. 1482 [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory – Setting connTimeout to: 0
  16. 1482 [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory – Setting maxConnectionsPerHost to: 20
  17. 1483 [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory – Setting corePoolSize to: 0
  18. 1483 [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory – Setting maximumPoolSize to: 2147483647
  19. 1484 [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory – Setting maxThreadIdleTime to: 5
  20. 1484 [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory – Setting sizeOfQueue to: -1
  21. 1484 [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory – Setting fairnessPolicy to: false
  22. 1588 [main] INFO org.apache.solr.logging.LogWatcher – SLF4J impl is org.slf4j.impl.Log4jLoggerFactory
  23. 1589 [main] INFO org.apache.solr.logging.LogWatcher – Registering Log Listener [Log4j (org.slf4j.impl.Log4jLoggerFactory)]
  24. 1616 [main] INFO org.apache.solr.core.CoresLocator – Looking for core definitions underneath /root/Desktop/inchoo/solr-4.6.0/example/solr
  25. 1630 [main] INFO org.apache.solr.core.CoresLocator – Found core collection1 in /root/Desktop/inchoo/solr-4.6.0/example/solr/collection1/
  26. 1631 [main] INFO org.apache.solr.core.CoresLocator – Found 1 core definitions
  27. 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
  28. 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/'
  29. 1703 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrConfig – Adding specified lib dirs to ClassLoader
  30. 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
  31. 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
  32. 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
  33. 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
  34. 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
  35. 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
  36. 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
  37. 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
  38. 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
  39. 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
  40. 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
  41. 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
  42. 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
  43. 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
  44. 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
  45. 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
  46. 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
  47. 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
  48. 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
  49. 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
  50. 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
  51. 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
  52. 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
  53. 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
  54. 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
  55. 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
  56. 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
  57. 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
  58. 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
  59. 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
  60. 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
  61. 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
  62. 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
  63. 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
  64. 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
  65. 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
  66. 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
  67. 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
  68. 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
  69. 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
  70. 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
  71. 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
  72. 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
  73. 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
  74. 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
  75. 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
  76. 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
  77. 1886 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.update.SolrIndexConfig – IndexWriter infoStream solr logging is enabled
  78. 1891 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrConfig – Using Lucene MatchVersion: LUCENE_46
  79. 2018 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.Config – Loaded SolrConfig: solrconfig.xml
  80. 2026 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.schema.IndexSchema – Reading Solr Schema from schema.xml
  81. 2101 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.schema.IndexSchema – [collection1] Schema name=example
  82. 2616 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.schema.IndexSchema – unique key field: id
  83. 2688 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.schema.FileExchangeRateProvider – Reloading exchange rates from file currency.xml
  84. 2695 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.schema.FileExchangeRateProvider – Reloading exchange rates from file currency.xml
  85. 2810 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrCore – solr.NRTCachingDirectoryFactory
  86. 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/
  87. 2820 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.JmxMonitoredMap – No JMX servers found, not exposing Solr information with JMX.
  88. 2826 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrCore – [collection1] Added SolrEventListener for newSearcher: org.apache.solr.core.QuerySenderListener{queries=[]}
  89. 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}]}
  90. 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
  91. 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/
  92. 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
  93. 2849 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrCore – created json: solr.JSONResponseWriter
  94. 2849 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrCore – adding lazy queryResponseWriter: solr.VelocityResponseWriter
  95. 2850 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrCore – created velocity: solr.VelocityResponseWriter
  96. 2853 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrCore – created xslt: solr.XSLTResponseWriter
  97. 2853 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.response.XSLTResponseWriter – xsltCacheLifetimeSeconds=5
  98. 2930 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrCore – no updateRequestProcessorChain defined as default, creating implicit default
  99. 2938 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.RequestHandlers – created /select: solr.SearchHandler
  100. 2938 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.RequestHandlers – created /query: solr.SearchHandler
  101. 2940 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.RequestHandlers – created /get: solr.RealTimeGetHandler
  102. 2940 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.RequestHandlers – created /browse: solr.SearchHandler
  103. 2943 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.RequestHandlers – created /update: solr.UpdateRequestHandler
  104. 2943 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.RequestHandlers – created /update/json: solr.UpdateRequestHandler
  105. 2943 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.RequestHandlers – created /update/csv: solr.UpdateRequestHandler
  106. 2943 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.RequestHandlers – adding lazy requestHandler: solr.extraction.ExtractingRequestHandler
  107. 2944 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.RequestHandlers – created /update/extract: solr.extraction.ExtractingRequestHandler
  108. 2944 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.RequestHandlers – adding lazy requestHandler: solr.FieldAnalysisRequestHandler
  109. 2944 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.RequestHandlers – created /analysis/field: solr.FieldAnalysisRequestHandler
  110. 2944 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.RequestHandlers – adding lazy requestHandler: solr.DocumentAnalysisRequestHandler
  111. 2944 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.RequestHandlers – created /analysis/document: solr.DocumentAnalysisRequestHandler
  112. 2946 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.RequestHandlers – created /admin/: solr.admin.AdminHandlers
  113. 2948 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.RequestHandlers – created /admin/ping: solr.PingRequestHandler
  114. 2950 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.RequestHandlers – created /debug/dump: solr.DumpRequestHandler
  115. 2957 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.RequestHandlers – created /replication: solr.ReplicationHandler
  116. 2957 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.RequestHandlers – adding lazy requestHandler: solr.SearchHandler
  117. 2958 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.RequestHandlers – created /spell: solr.SearchHandler
  118. 2958 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.RequestHandlers – adding lazy requestHandler: solr.SearchHandler
  119. 2958 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.RequestHandlers – created /tvrh: solr.SearchHandler
  120. 2958 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.RequestHandlers – adding lazy requestHandler: org.apache.solr.handler.js.JavaScriptRequestHandler
  121. 2958 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.RequestHandlers – created /js: org.apache.solr.handler.js.JavaScriptRequestHandler
  122. 2958 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.RequestHandlers – adding lazy requestHandler: solr.SearchHandler
  123. 2958 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.RequestHandlers – created /terms: solr.SearchHandler
  124. 2958 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.RequestHandlers – adding lazy requestHandler: solr.SearchHandler
  125. 2959 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.RequestHandlers – created /elevate: solr.SearchHandler
  126. 2972 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.handler.loader.XMLLoader – xsltCacheLifetimeSeconds=60
  127. 2974 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.handler.loader.XMLLoader – xsltCacheLifetimeSeconds=60
  128. 2974 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.handler.loader.XMLLoader – xsltCacheLifetimeSeconds=60
  129. 2998 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrCore – Hard AutoCommit: if uncommited for 15000ms;
  130. 2998 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrCore – Soft AutoCommit: disabled
  131. 3031 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrCore – SolrDeletionPolicy.onInit: commits: num=1
  132. 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}
  133. 3032 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.SolrCore – newest commit generation = 98
  134. 3054 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.search.SolrIndexSearcher – Opening Searcher@1d10729 main
  135. 3058 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.handler.component.SpellCheckComponent – Initializing spell checkers
  136. 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}
  137. 3074 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.handler.component.SpellCheckComponent – No queryConverter defined, using default converter
  138. 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
  139. 3112 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.handler.ReplicationHandler – Commits will be reserved for 10000
  140. 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)}
  141. 3122 [coreLoadExecutor-3-thread-1] INFO org.apache.solr.core.CoreContainer – registering core: collection1
  142. 3124 [main] INFO org.apache.solr.servlet.SolrDispatchFilter – user.dir=/root/Desktop/inchoo/solr-4.6.0/example
  143. 3124 [main] INFO org.apache.solr.servlet.SolrDispatchFilter – SolrDispatchFilter.init() done
  144. 3161 [main] INFO org.eclipse.jetty.server.AbstractConnector – Started SocketConnector@0.0.0.0:8080
  145. 3165 [searcherExecutor-4-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=52
  146. 3166 [searcherExecutor-4-thread-1] INFO org.apache.solr.core.SolrCore – QuerySenderListener done.
  147. 3166 [searcherExecutor-4-thread-1] INFO org.apache.solr.handler.component.SpellCheckComponent – Loading spell index for spellchecker: default
  148. 3166 [searcherExecutor-4-thread-1] INFO org.apache.solr.handler.component.SpellCheckComponent – Loading spell index for spellchecker: wordbreak
  149. 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)}

This is the solr log when i'm searching with a word 'IPhone'...

61966 [qtp23254862-17] INFO  org.apache.solr.core.SolrCore  – [collection1] webapp=/solr path=/select params={fl=product_id,score&start=0&q=iphone&json.nl=map&wt=json&fq=store_id:1&rows=100} hits=28 status=0 QTime=13 

Any thing wrong i did here...

I hope its working fine...

How do i know that whether Solr Search is working or not...

Thanks.

Any Ideas ?

展开全部

  • 写回答

1条回答 默认 最新

  • dongshou9343 2014-02-15 11:10
    关注

    Your query to Solr was

    fl=product_id,score&start=0&q=iphone&json.nl=map&wt=json&fq=store_id:1&rows=100
    

    which means, Magento told Solr to search for products of a specific store (fq=store_id:1 ) matching the word "iphone" (q=iphone) and to return the product_id and score (fl=product_id,score) of the found products in JSON (wt=json) object notation (json.nl=map), but a maximum of 100 hits (rows=100), starting with the first match (start=0).

    According to

    hits=28 status=0 QTime=13
    

    the request was successful (status=0) and Solr needed 13 milliseconds (QTime=13) to execute the search and prepare the 28 found matches (hits=28) for the response.

    So yes, this pretty much looks like a "working" query.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
编辑
预览

报告相同问题?

悬赏问题

  • ¥15 MacOS 80端口外网无法访问
  • ¥50 js逆转反解密-会的来
  • ¥15 wrodpress如何调取数据库并展示
  • ¥15 python梯形积分与GPS测得位移使用卡尔曼滤波融合问题
  • ¥15 匈牙利算法分割求损失问题
  • ¥30 ABAQUS 实体单元如何在分析步中分步多次施加绕某轴的运动?
  • ¥15 docker部署redis集群,springboot启动报错DefaultClusterTopologyRefresh,而且第一个节点的IP也变了
  • ¥15 关于延迟常微分方程DDE的分岔图
  • ¥15 putimage函数输出错误
  • ¥15 进行刷新动态页面和点击进入一个动态,会包含在一个网络五元组会话内吗
手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部