Reputation: 195
I'm trying to use lucene 4.0 snapshot version, however StandardAnalyzer is missing in this version :(. Anybody knows on how to replace this?
In the sample code given in the Lucene Summary
the StandardAnalyzer is used, but no where to be found..
thanks in advance.
Upvotes: 5
Views: 3358
Reputation: 267
Since 4.0, I see it here: lucene-4.0.0\analysis\common\src\java\org\apache\lucene\analysis\standard In eclipse, create a separate project for analysis, and include in its build path the core project. You will find some red marks because of some foreign characters in foreign language packages, I have ignored them for now because I only wanted standard analyzer. Hope this helps and saves you a lot of man hours and some frustration.
Upvotes: 1
Reputation: 18611
Here is the Maven dependency:
<dependency>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-analyzers-common</artifactId>
<version>4.0.0-BETA</version>
</dependency>
Upvotes: 3
Reputation: 3003
You have found standard analyzer in andriy 's answer..and for indexwriter the syntax is different in lucene 4.0..you can get the idea from the link:
http://lucene.apache.org/core/4_0_0-ALPHA/demo/src-html/org/apache/lucene/demo/IndexFiles.html
Upvotes: 0
Reputation: 2001
Looks like the StandardAnalyzer was moved under org.apache.lucene.modules.analysis.standard.* You can find the StandardAnalyzer in the SVN Trunk
The reason is here
Upvotes: 6