Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

missing feature in lucene 4.0 snapshot

Tags:

java

lucene

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.

like image 363
Nik Kovac Avatar asked Mar 07 '12 15:03

Nik Kovac


3 Answers

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

like image 168
Andriy Budzinskyy Avatar answered Nov 05 '22 11:11

Andriy Budzinskyy


Here is the Maven dependency:

    <dependency>
        <groupId>org.apache.lucene</groupId>
        <artifactId>lucene-analyzers-common</artifactId>
        <version>4.0.0-BETA</version>
    </dependency>
like image 40
Marsellus Wallace Avatar answered Nov 05 '22 11:11

Marsellus Wallace


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.

like image 32
raghav Avatar answered Nov 05 '22 10:11

raghav