public class

CustomJapaneseAnalyzer

extends Analyzer
java.lang.Object
   ↳ org.apache.lucene.analysis.Analyzer
     ↳ com.atlassian.confluence.search.lucene.CustomJapaneseAnalyzer

Class Overview

Customized version of CJKAnalyzer that uses unsafe, sun specific operations. Watch http://issues.apache.org/jira/browse/LUCENE-1032 for updates.

Summary

Fields
public static final String[] STOP_WORDS An array containing some common English words that are not usually useful for searching and some double-byte interpunctions.
[Expand]
Inherited Fields
From class org.apache.lucene.analysis.Analyzer
Public Constructors
CustomJapaneseAnalyzer()
Builds an analyzer which removes words in STOP_WORDS.
CustomJapaneseAnalyzer(String[] stopWords)
Builds an analyzer which removes words in the provided array.
Public Methods
final TokenStream tokenStream(String fieldName, Reader reader)
get token stream from input
[Expand]
Inherited Methods
From class org.apache.lucene.analysis.Analyzer
From class java.lang.Object

Fields

public static final String[] STOP_WORDS

An array containing some common English words that are not usually useful for searching and some double-byte interpunctions.

Public Constructors

public CustomJapaneseAnalyzer ()

Builds an analyzer which removes words in STOP_WORDS.

public CustomJapaneseAnalyzer (String[] stopWords)

Builds an analyzer which removes words in the provided array.

Parameters
stopWords stop word array

Public Methods

public final TokenStream tokenStream (String fieldName, Reader reader)

get token stream from input

Parameters
fieldName lucene field name
reader input reader
Returns
  • TokenStream