maven中添加lucene支持依赖

时间:2025-01-19 16:13:16
<!-- 添加lucene支持 -->
	<!--核心包-->
	<dependency>
		<groupId></groupId>
		<artifactId>lucene-core</artifactId>
		<version>5.3.1</version>
	  </dependency>
	  <!--一般分词器,适用于英文分词-->
	  <dependency>
		<groupId></groupId>
		<artifactId>lucene-analyzers-common</artifactId>
		<version>5.3.1</version>
	 </dependency>
	 <!--中文分词器-->
	 <dependency>
		<groupId></groupId>
		<artifactId>lucene-analyzers-smartcn</artifactId>
		<version>5.3.1</version>
	</dependency>
	 
	 <!--对分词索引查询解析-->
	 <dependency>
		<groupId></groupId>
		<artifactId>lucene-queryparser</artifactId>
		<version>5.3.1</version>
	 </dependency>
	 <!--检索关键字高亮显示-->
	 <dependency>
		<groupId></groupId>
		<artifactId>lucene-highlighter</artifactId>
		<version>5.3.1</version>
	</dependency>