简体   繁体   English

在lucene 4.7.0中找不到standard.StandardAnalyzer

[英]standard.StandardAnalyzer not found in lucene 4.7.0

I'm newbies to lucene. 我是lucene的新手。 i'm trying to do the tutorial here http://www.lucenetutorial.com/lucene-in-5-minutes.html 我正在尝试这里的教程http://www.lucenetutorial.com/lucene-in-5-minutes.html

The site is importing: 该网站正在导入:

import org.apache.lucene.analysis.standard.StandardAnalyzer;

however, on my intellij, I can't find any standard within analysis package. 但是,在我的intellij上,我在分析包中找不到任何标准。 So, I can't really use StandardAnalyzer. 所以,我真的不能使用StandardAnalyzer。

do i need to use different jar? 我需要使用不同的罐子吗? the jar i'm using is 我正在使用的罐子是

lucene-core-4.7.0.jar

which I imported from 我从哪个进口的

lucene-4.7.0/core

directory. 目录。

What am I missing here? 我在这里错过了什么?

好吧,显然,我需要添加另一个罐子

lucene-4.7.0/analysis/common/lucene-analyzers-common-4.7.0.jar

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM