1、下载Solr5.3.1

http://mirror.bit.edu.cn/apache/lucene/solr/5.3.1/

  1. wget http://mirror.bit.edu.cn/apache/lucene/solr/5.3.0/solr-5.3.0.tgz

2、解压压缩包

  1. tar zxf solr-5.3..tgz

  2. unzip solr-5.3..zip

3、配置solr

1、复制solr项目文件

  1. mkdir -p /data/web/solr/solr_app/
    cp -r /data/solr-5.3./server/solr-webapp/webapp/* /data/web/solr/solr_app/

2、复制dll文件

  1. cp /data/solr-5.3./server/lib/ext/* /data/web/solr/solr_app/WEB-INF/lib/

3、复制日志文件

  1. mkdir /data/web/solr/solr_app/WEB-INF/classes
  2. cp /data/solr-5.3./server/resources/log4j.properties /data/web/solr/solr_app/WEB-INF/classes/

4、修改solr.log文件的存储位置:默认在/root/logs/solr.log

  1. vim /data/web/solr/solr_app/WEB-INF/classes/log4j.properties

改成自己的日志路径

5、复制solr.xml文件到web.xml里面的<env-entry-value>的路径下

  1. mkdir -p /data/web/solr/solr_app/WEB-INF/solr_home
  2. cp /data/solr-5.3.1/example/example-DIH/solr/solr.xml /data/web/solr/solr_app/WEB-INF/solr_home/

6、配置solr_home

  1. vim /data/web/solr/solr_app/WEB-INF/web.xml --修改env-entry-value的值:/data/web/solr/solr_app/WEB-INF/solr_home

tomcat配置->Server.xml->Connector->connectionTimeout="20000"不知道为什么,这个值大了启动tomcat,solr页面显示就是失败的。

启动tomcat,此时没有集合,如下图:

4、配置solr集合

1、进入solr_home,开始配置solr的索引库、分词器、数据源和定时任务:

  1. cd /data/web/solr/solr_app/WEB-INF/solr_home/

2、为某一个语言创建solr配置,首先需要该语言的目录,比如:英文

  1. mkdir pc_EN
  2. cd pc_EN
  3. touch core.properties
  4. mkdir conf
  5. mkdir data

3、编辑core.properties文件,设置索引名称和索引存放的位置:

  1. vim core.properties
  2. --指定索引文件的存放位置(solr_index目录可以创建了mkdir -p /data/web/solr/solr_app/WEB-INF/solr_index
    --文件内容
    name=pc_EN
    dataDir=/data/web/solr/solr_app/WEB-INF/solr_index/master/pc_EN/data

4、进入conf目录设置索引的数据格式、数据源

  1. cd conf
    find /data -name solrconfig.xml

把rss文件夹下面的solrconfig.xml复制到pc_EN/conf目录里面

  1. cp /data/solr-5.3./example/example-DIH/solr/rss/conf/solrconfig.xml solrconfig.xml

设置solrconfig.xml关联website-data-config.xml文件

  1. vim solrconfig.xml --搜索name="/dataimport"

设置solrconfig.xml的solr搜索结果返回的数据格式为:xml

设置solrconfig.xml关联schema.xml文件,增加如下代码:

  1. <requestHandler name="/replication" class="solr.ReplicationHandler" >
  2. <lst name="master">
  3. <str name="replicateAfter">commit</str>
  4. <str name="replicateAfter">startup</str>
  5. <str name="confFiles">schema.xml</str>
  6. </lst>
  7. </requestHandler>

完整的solrconfig.xml文件

  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!--
  3. Licensed to the Apache Software Foundation (ASF) under one or more
  4. contributor license agreements. See the NOTICE file distributed with
  5. this work for additional information regarding copyright ownership.
  6. The ASF licenses this file to You under the Apache License, Version 2.0
  7. (the "License"); you may not use this file except in compliance with
  8. the License. You may obtain a copy of the License at
  9.  
  10. http://www.apache.org/licenses/LICENSE-2.0
  11.  
  12. Unless required by applicable law or agreed to in writing, software
  13. distributed under the License is distributed on an "AS IS" BASIS,
  14. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. See the License for the specific language governing permissions and
  16. limitations under the License.
  17. -->
  18.  
  19. <!--
  20. This is a stripped down config file used for a simple example...
  21. It is *not* a good example to work from.
  22. -->
  23. <config>
  24. <luceneMatchVersion>5.3.</luceneMatchVersion>
  25. <!-- The DirectoryFactory to use for indexes.
  26. solr.StandardDirectoryFactory, the default, is filesystem based.
  27. solr.RAMDirectoryFactory is memory based, not persistent, and doesn't work with replication. -->
  28. <directoryFactory name="DirectoryFactory" class="${solr.directoryFactory:solr.NRTCachingDirectoryFactory}"/>
  29.  
  30. <dataDir>${solr.data.dir:}</dataDir>
  31.  
  32. <!-- To enable dynamic schema REST APIs, use the following for <schemaFactory>:
  33.  
  34. <schemaFactory class="ManagedIndexSchemaFactory">
  35. <bool name="mutable">true</bool>
  36. <str name="managedSchemaResourceName">managed-schema</str>
  37. </schemaFactory>
  38.  
  39. When ManagedIndexSchemaFactory is specified, Solr will load the schema from
  40. he resource named in 'managedSchemaResourceName', rather than from schema.xml.
  41. Note that the managed schema resource CANNOT be named schema.xml. If the managed
  42. schema does not exist, Solr will create it after reading schema.xml, then rename
  43. 'schema.xml' to 'schema.xml.bak'.
  44.  
  45. Do NOT hand edit the managed schema - external modifications will be ignored and
  46. overwritten as a result of schema modification REST API calls.
  47.  
  48. When ManagedIndexSchemaFactory is specified with mutable = true, schema
  49. modification REST API calls will be allowed; otherwise, error responses will be
  50. sent back for these requests.
  51. -->
  52. <codecFactory class="solr.SchemaCodecFactory"/>
  53. <schemaFactory class="ClassicIndexSchemaFactory"/>
  54.  
  55. <updateHandler class="solr.DirectUpdateHandler2">
  56. <updateLog>
  57. <str name="dir">${solr.data.dir:}</str>
  58. <int name="numVersionBuckets">${solr.ulog.numVersionBuckets:}</int>
  59. </updateLog>
  60. </updateHandler>
  61.  
  62. <query>
  63. <!-- Max Boolean Clauses
  64.  
  65. Maximum number of clauses in each BooleanQuery, an exception
  66. is thrown if exceeded.
  67.  
  68. ** WARNING **
  69.  
  70. This option actually modifies a global Lucene property that
  71. will affect all SolrCores. If multiple solrconfig.xml files
  72. disagree on this property, the value at any given moment will
  73. be based on the last SolrCore to be initialized.
  74.  
  75. -->
  76. <maxBooleanClauses></maxBooleanClauses>
  77.  
  78. <!-- Solr Internal Query Caches
  79.  
  80. There are two implementations of cache available for Solr,
  81. LRUCache, based on a synchronized LinkedHashMap, and
  82. FastLRUCache, based on a ConcurrentHashMap.
  83.  
  84. FastLRUCache has faster gets and slower puts in single
  85. threaded operation and thus is generally faster than LRUCache
  86. when the hit ratio of the cache is high (> %), and may be
  87. faster under other scenarios on multi-cpu systems.
  88. -->
  89.  
  90. <!-- Filter Cache
  91.  
  92. Cache used by SolrIndexSearcher for filters (DocSets),
  93. unordered sets of *all* documents that match a query. When a
  94. new searcher is opened, its caches may be prepopulated or
  95. "autowarmed" using data from caches in the old searcher.
  96. autowarmCount is the number of items to prepopulate. For
  97. LRUCache, the autowarmed items will be the most recently
  98. accessed items.
  99.  
  100. Parameters:
  101. class - the SolrCache implementation LRUCache or
  102. (LRUCache or FastLRUCache)
  103. size - the maximum number of entries in the cache
  104. initialSize - the initial capacity (number of entries) of
  105. the cache. (see java.util.HashMap)
  106. autowarmCount - the number of entries to prepopulate from
  107. and old cache.
  108. -->
  109. <filterCache class="solr.FastLRUCache"
  110. size=""
  111. initialSize=""
  112. autowarmCount=""/>
  113.  
  114. <!-- Query Result Cache
  115.  
  116. Caches results of searches - ordered lists of document ids
  117. (DocList) based on a query, a sort, and the range of documents requested.
  118. Additional supported parameter by LRUCache:
  119. maxRamMB - the maximum amount of RAM (in MB) that this cache is allowed
  120. to occupy
  121. -->
  122. <queryResultCache class="solr.LRUCache"
  123. size=""
  124. initialSize=""
  125. autowarmCount=""/>
  126.  
  127. <!-- Document Cache
  128.  
  129. Caches Lucene Document objects (the stored fields for each
  130. document). Since Lucene internal document ids are transient,
  131. this cache will not be autowarmed.
  132. -->
  133. <documentCache class="solr.LRUCache"
  134. size=""
  135. initialSize=""
  136. autowarmCount=""/>
  137.  
  138. <!-- custom cache currently used by block join -->
  139. <cache name="perSegFilter"
  140. class="solr.search.LRUCache"
  141. size=""
  142. initialSize=""
  143. autowarmCount=""
  144. regenerator="solr.NoOpRegenerator" />
  145.  
  146. <!-- Lazy Field Loading
  147.  
  148. If true, stored fields that are not requested will be loaded
  149. lazily. This can result in a significant speed improvement
  150. if the usual case is to not load all stored fields,
  151. especially if the skipped fields are large compressed text
  152. fields.
  153. -->
  154. <enableLazyFieldLoading>true</enableLazyFieldLoading>
  155.  
  156. <!-- Result Window Size
  157.  
  158. An optimization for use with the queryResultCache. When a search
  159. is requested, a superset of the requested number of document ids
  160. are collected. For example, if a search for a particular query
  161. requests matching documents through , and queryWindowSize is ,
  162. then documents through will be collected and cached. Any further
  163. requests in that range can be satisfied via the cache.
  164. -->
  165. <queryResultWindowSize></queryResultWindowSize>
  166.  
  167. <!-- Maximum number of documents to cache for any entry in the
  168. queryResultCache.
  169. -->
  170. <queryResultMaxDocsCached></queryResultMaxDocsCached>
  171.  
  172. <!-- Use Cold Searcher
  173.  
  174. If a search request comes in and there is no current
  175. registered searcher, then immediately register the still
  176. warming searcher and use it. If "false" then all requests
  177. will block until the first searcher is done warming.
  178. -->
  179. <useColdSearcher>false</useColdSearcher>
  180.  
  181. <!-- Max Warming Searchers
  182.  
  183. Maximum number of searchers that may be warming in the
  184. background concurrently. An error is returned if this limit
  185. is exceeded.
  186.  
  187. Recommend values of - for read-only slaves, higher for
  188. masters w/o cache warming.
  189. -->
  190. <maxWarmingSearchers></maxWarmingSearchers>
  191.  
  192. </query>
  193.  
  194. <requestDispatcher handleSelect="true" >
  195. <requestParsers enableRemoteStreaming="true" multipartUploadLimitInKB="" formdataUploadLimitInKB="" />
  196. </requestDispatcher>
  197.  
  198. <requestHandler name="/select" class="solr.SearchHandler">
  199. <lst name="defaults">
  200. <str name="echoParams">explicit</str>
  201. <str name="wt">xml</str>
  202. <str name="indent">true</str>
  203. <int name="rows"></int>
  204. </lst>
  205. </requestHandler>
  206.  
  207. <requestHandler name="/analysis/field" startup="lazy" class="solr.FieldAnalysisRequestHandler" />
  208.  
  209. <requestHandler name="/admin/ping" class="solr.PingRequestHandler">
  210. <lst name="invariants">
  211. <str name="q">*:*</str>
  212. </lst>
  213. <lst name="defaults">
  214. <str name="echoParams">all</str>
  215. </lst>
  216. </requestHandler>
  217.  
  218. <requestHandler name="/dataimport" class="org.apache.solr.handler.dataimport.DataImportHandler">
  219. <lst name="defaults">
  220. <str name="config">website-data-config.xml</str>
  221. </lst>
  222. </requestHandler>
  223.  
  224. <requestHandler name="/replication" class="solr.ReplicationHandler" >
  225. <lst name="master">
  226. <str name="replicateAfter">commit</str>
  227. <str name="replicateAfter">startup</str>
  228. <str name="confFiles">schema.xml</str>
  229. </lst>
  230. </requestHandler>
  231.  
  232. <!-- config for the admin interface -->
  233. <admin>
  234. <defaultQuery>*:*</defaultQuery>
  235. </admin>
  236.  
  237. </config>

solrconfig.xml

schema.xml用来设置solr需要索引的字段

完整的schema.xml

  1. <?xml version="1.0" ?>
  2.  
  3. <schema name="website" version="1.5">
  4. <types>
  5. <fieldType name="string" class="solr.StrField" sortMissingLast="true" omitNorms="true" />
  6. <fieldType name="boolean" class="solr.BoolField" sortMissingLast="true" omitNorms="true" />
  7. <fieldType name="booleans" class="solr.BoolField" sortMissingLast="true" multiValued="true"/>
  8. <fieldType name="int" class="solr.TrieIntField" precisionStep="0" omitNorms="true" positionIncrementGap="0" />
  9. <fieldType name="float" class="solr.TrieFloatField" precisionStep="0" omitNorms="true" positionIncrementGap="0" />
  10. <fieldType name="long" class="solr.TrieLongField" precisionStep="0" omitNorms="true" positionIncrementGap="0" />
  11. <fieldType name="double" class="solr.TrieDoubleField" precisionStep="0" omitNorms="true" positionIncrementGap="0" />
  12. <fieldType name="date" class="solr.TrieDateField" omitNorms="true" precisionStep="0" positionIncrementGap="0" />
  13. <fieldType name="tint" class="solr.TrieIntField" precisionStep="8" omitNorms="true" positionIncrementGap="0" />
  14. <fieldType name="sfloat" class="solr.TrieFloatField" precisionStep="8" omitNorms="true" positionIncrementGap="0" />
  15. <fieldType name="tlong" class="solr.TrieLongField" precisionStep="8" omitNorms="true" positionIncrementGap="0" />
  16. <fieldType name="tdouble" class="solr.TrieDoubleField" precisionStep="8" omitNorms="true" positionIncrementGap="0" />
  17. <fieldType name="tdate" class="solr.TrieDateField" omitNorms="true" precisionStep="6" positionIncrementGap="0" />
  18. <fieldType name="tdates" class="solr.TrieDateField" precisionStep="6" positionIncrementGap="0" multiValued="true"/>
  19. <fieldType name="tints" class="solr.TrieIntField" precisionStep="8" positionIncrementGap="0" multiValued="true"/>
  20. <fieldType name="tfloats" class="solr.TrieFloatField" precisionStep="8" positionIncrementGap="0" multiValued="true"/>
  21. <fieldType name="tlongs" class="solr.TrieLongField" precisionStep="8" positionIncrementGap="0" multiValued="true"/>
  22. <fieldType name="tdoubles" class="solr.TrieDoubleField" precisionStep="8" positionIncrementGap="0" multiValued="true"/>
  23. <fieldType name="text" class="solr.TextField">
  24. <analyzer type="index" class="org.apache.lucene.analysis.en.EnglishAnalyzer"/>
  25. <analyzer type="query" class="org.apache.lucene.analysis.en.EnglishAnalyzer"/>
  26. </fieldType>
  27. </types>
  28. <!-- general -->
  29. <fields>
  30. <field name="_version_" type="long" indexed="true" stored="true"/>
  31. <field name="CultureID" type="int" indexed="false" stored="true" />
  32. <field name="DescriptionFull" type="text" indexed="true" stored="false" />
  33. <field name="DescriptionShort" type="text" indexed="true" stored="false" />
  34. <field name="ImageJSON" type="text" indexed="false" stored="true" />
  35. <field name="IsHot" type="int" indexed="false" stored="true" />
  36. <field name="IsMutilColor" type="int" indexed="false" stored="true" default="" />
  37. <field name="LeiMuNameJSON" type="text" indexed="true" stored="true" />
  38. <field name="PID" type="string" indexed="true" stored="true" />
  39. <field name="PropertyText" type="text" indexed="true" stored="true" />
  40. <field name="RequiredText" type="text" indexed="true" stored="true" />
  41. <field name="SPUID" type="long" indexed="true" stored="true" />
  42. <field name="Sort" type="int" indexed="true" stored="true" />
  43. <field name="Status" type="int" indexed="true" stored="true" />
  44. <field name="Title" type="text" indexed="true" stored="true" />
  45. <field name="UpTime" type="date" indexed="true" stored="true" />
  46. <field name="Price" type="double" indexed="true" stored="true" />
  47. <field name="SaleCount" type="long" indexed="true" stored="true" />
  48. <field name="CustomerRatingCount" type="long" indexed="false" stored="true" />
  49. <field name="DisCount" type="double" indexed="true" stored="true" />
  50. <field name="Basic_search" type="text" indexed="true" stored="false" multiValued="true"/>
  51. </fields>
  52.  
  53. <!-- field to use to determine and enforce document uniqueness. -->
  54. <uniqueKey>SPUID</uniqueKey>
  55. <!-- field for the QueryParser to use when an explicit fieldname is absent -->
  56. <defaultSearchField>Basic_search</defaultSearchField>
  57. <!-- SolrQueryParser configuration: defaultOperator="AND|OR" -->
  58. <solrQueryParser defaultOperator="OR"/>
  59. <copyField source="PID" dest="Basic_search" />
  60. <copyField source="DescriptionFull" dest="Basic_search" />
  61. <copyField source="DescriptionShort" dest="Basic_search" />
  62. <copyField source="LeiMuNameJSON" dest="Basic_search" />
  63. <copyField source="PropertyText" dest="Basic_search" />
  64. <copyField source="RequiredText" dest="Basic_search" />
  65. <copyField source="Title" dest="Basic_search" />
  66. </schema>

schema.xml

website-data-config.xml设置数据源和数据源格式与schema.xml的字段匹配

完整的website-data-config.xml

  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <dataConfig>
  3. <dataSource type="URLDataSource" encoding="UTF-8" />
  4. <document>
  5. <entity name="website"
  6. processor="XPathEntityProcessor"
  7. forEach="/LuceneSpuXmlModel/LuceneSpuModelList/LuceneSpuModel |/LuceneSpuXmlModel"
  8. url="http://url/product?cultureId=1&amp;pageSize=100&amp;pageIndex=1&amp;siteId=6&amp;platform=1"
  9. transformer="RegexTransformer,DateFormatTransformer"
  10. connectionTimeout="120000"
  11. readTimeout="300000"
  12. stream="true">
  13. <field column="SPUID" xpath="/LuceneSpuXmlModel/LuceneSpuModelList/LuceneSpuModel/SPUID" />
  14. <field column="PID" xpath="/LuceneSpuXmlModel/LuceneSpuModelList/LuceneSpuModel/PID" />
  15. <field column="Title" xpath="/LuceneSpuXmlModel/LuceneSpuModelList/LuceneSpuModel/Title" />
  16. <field column="Status" xpath="/LuceneSpuXmlModel/LuceneSpuModelList/LuceneSpuModel/Status" />
  17. <field column="CultureID" xpath="/LuceneSpuXmlModel/LuceneSpuModelList/LuceneSpuModel/CultureID" commonField="true" />
  18. <field column="LeiMuNameJSON" xpath="/LuceneSpuXmlModel/LuceneSpuModelList/LuceneSpuModel/LeiMuNameJSON" />
  19. <field column="DescriptionShort" xpath="/LuceneSpuXmlModel/LuceneSpuModelList/LuceneSpuModel/DescriptionShort" commonField="true" />
  20. <field column="DescriptionFull" xpath="/LuceneSpuXmlModel/LuceneSpuModelList/LuceneSpuModel/DescriptionFull" commonField="true" />
  21. <field column="Sort" xpath="/LuceneSpuXmlModel/LuceneSpuModelList/LuceneSpuModel/Sort" />
  22. <field column="ImageJSON" xpath="/LuceneSpuXmlModel/LuceneSpuModelList/LuceneSpuModel/ImageJSON" />
  23. <field column="PropertyText" xpath="/LuceneSpuXmlModel/LuceneSpuModelList/LuceneSpuModel/PropertyText" />
  24. <field column="RequiredText" xpath="/LuceneSpuXmlModel/LuceneSpuModelList/LuceneSpuModel/RequiredText" />
  25. <field column="IsHot" xpath="/LuceneSpuXmlModel/LuceneSpuModelList/LuceneSpuModel/IsHot" />
  26. <field column="IsMutilColor" xpath="/LuceneSpuXmlModel/LuceneSpuModelList/LuceneSpuModel/IsMutilColor" />
  27. <field column="UpTime" xpath="/LuceneSpuXmlModel/LuceneSpuModelList/LuceneSpuModel/UpTime" dateTimeFormat="yyyy-MM-dd'T'hh:mm:ss"/>
  28. <field column="Price" xpath="/LuceneSpuXmlModel/LuceneSpuModelList/LuceneSpuModel/Price" />
  29. <field column="SaleCount" xpath="/LuceneSpuXmlModel/LuceneSpuModelList/LuceneSpuModel/SaleCount" />
  30. <field column="CustomerRatingCount" xpath="/LuceneSpuXmlModel/LuceneSpuModelList/LuceneSpuModel/CustomerRatingCount" />
  31. <field column="DisCount" xpath="/LuceneSpuXmlModel/LuceneSpuModelList/LuceneSpuModel/DisCount" />
  32.  
  33. <field column="$hasMore" xpath="/LuceneSpuXmlModel/HasMore" />
  34. <field column="$nextUrl" xpath="/LuceneSpuXmlModel/NextPageUrl" />
  35. </entity>
  36. </document>
  37. </dataConfig>

website-data-config.xml

启动Tomcat运行solr出错:

复制数据倒入的包:

  1. cp /data/solr-5.3.1/dist/solr-dataimporthandler-* /data/web/solr/solr_app/WEB-INF/lib/

启动tomcat_solr成功界面如下:

5、设置solr定时任务

1、复制定时任务包(如果没有复制过)

  1. cp /data/solr-5.3.1/dist/solr-dataimporthandler-* /data/web/solr/solr_app/WEB-INF/lib/

2、还需要一个jar也复制到/data/web/solr/solr_app/WEB-INF/lib/下面:

  1. apache-solr-dataimportscheduler-1.0.jar

3、修改Web.xml,添加配置节点:

  1. <listener>
  2. <listener-class>
  3. org.apache.solr.handler.dataimport.scheduler.ApplicationListener
  4. </listener-class>
  5. </listener>

4、回到solr_home目录创建conf目录,创建dataimport.properties定时任务文件:

5、编辑dataimport.properties定时任务文件:

a、设置syncCores,server,port

b、设置时间间隔、开始时间:

http://my.oschina.net/lsf930709/blog/620738(参考文章)

solr 5.3.1安装配置的更多相关文章

  1. solr 4.6的安装配置

    从网上看了很多资料,很多都是老的.自己也算是结合着弄出来了. 1.下载的准备工作 tomcat8.solr4.6   具体的下载自己去找去吧.或者后期我在提供. 2.开始配置 tomcat路径:E:\ ...

  2. Zookeeper、Solr和Tomcat安装配置实践

    Zookeeper.Solr和Tomcat安装配置实践

  3. (一)Solr——简介和安装配置

    1. solr简介 1.1 Solr是什么 Solr是apache的顶级开源项目,它是使用java开发 ,基于lucene的全文检索服务器. Solr和lucene的版本是同步更新的,最新的版本是7. ...

  4. solr安装配置

    1.solr是基于tomcat安装部署的 2.网上下载solr-5.2.1 http://lucene.apache.org/solr/downloads.html 3.解压solr文件 tar zx ...

  5. solr学习篇(一) solr7.4 安装配置篇

    目录: solr简介 solr安装 创建core 1.solr简介 solr是企业级应用的全文检索项目,它是基于Apache Lucence搜索引擎开发出来的用于搜索的应用工程 运行环境:solr需要 ...

  6. solr4.5安装配置 linux+tomcat6.0+mmseg4j-1.9.1分词

    首先先介绍下solr的安装配置 solr下载地址 (我这用的solr-4.5.0) 运行环境 JDK 1.5或更高版本 下载地址(Solr 4以上版本,要求JDK 1.6)  我用的JDK1.6 ) ...

  7. 【转载】Solr4+IKAnalyzer的安装配置

    转载:http://www.cnblogs.com/madyina/p/4131751.html 一.下载Solr4.10.2 我们以Windows版本为例,solr-4.10.2.zip是目前最新版 ...

  8. Solr4+IKAnalyzer的安装配置

    一.下载Solr4.10.2 我们以Windows版本为例,solr-4.10.2.zip是目前最新版本,下载地址: http://www.apache.org/dyn/closer.cgi/luce ...

  9. elasticsearch系列一:elasticsearch(ES简介、安装&配置、集成Ikanalyzer)

    一.ES简介 1. ES是什么? Elasticsearch 是一个开源的搜索引擎,建立在全文搜索引擎库 Apache Lucene 基础之上 用 Java 编写的,它的内部使用 Lucene 做索引 ...

随机推荐

  1. 加快Android Studio的编译速度

    从Eclipse切换到Android Studio后,感觉Android Studio的build速度比Eclipse慢很多,以下几个方法可以提高Android Studio的编译速度 使用Gradl ...

  2. android中RecyclerView控件实现瀑布流布局

    本文是在之前文章的基础上做的修改:android中RecyclerView控件的使用 1.修改列表项news_item.xml: <?xml version="1.0" en ...

  3. Using a Microsoft Account to Logon and Resulting Internet Communication in Windows 8

    Using a Microsoft Account to Logon and Resulting Internet Communication in Windows 8 此主题尚未评级 - 评价此主题 ...

  4. vsphere 5.1 改进和SSO理解

    虚拟交换器 以5.1版的vSphere而言,VMware在VDS上提供一些新功能.例如,现在可以用快照的方式,来备份还原VDS组态及网络端口群组(port group)的组态,以因应vCenter S ...

  5. C++ 第十二课 其它标准C函数

    abort() 停止程序执行 assert() 当表达式非真,停止程序执行 atexit() 当程序退出执行设定的程序 bsearch() 执行折半查找 exit() 停止程序执行 getenv() ...

  6. Go语言中使用MySql数据库

    Go语言中使用MySql数据库 1.MySQL驱动 Go中支持MySQL的驱动目前比较多,有如下几种,有些是支持database/sql标准,而有些是采用了自己的实现接口,常用的有如下几种: http ...

  7. Kettle命令行使用说明

    Kettle命令行使用说明 1.Pan——转换执行器 用来执行转换.参数与Kitchen类似,如下. 1- -version显示版本信息 2- -file=filename运行xml文件 3- -pa ...

  8. loadrunner脚本001

    Action() { ; lr_start_transaction("login"); web_add_cookie("JSESSIONID=061460B7DFF2F7 ...

  9. log4j的详细配置(最省心完美配置)

    先说下我的需求 1,可以记录日记在我们的java开发项目周期中: 2,很简单即可输出日志: 3,每天按照时间将不同的日志输出到不同的文件中,每天输出日志到一个带有当前时间戳的文件中: 4,可以修改当前 ...

  10. 转:Bullet物理引擎不完全指南(Bullet Physics Engine not complete Guide)

    write by 九天雁翎(JTianLing) -- blog.csdn.net/vagrxie 讨论新闻组及文件 前言 Bullet据称为游戏世界占有率为第三的物理引擎,也是前几大引擎目前唯一能够 ...