Class UserDictionary
java.lang.Object
org.apache.lucene.analysis.ja.dict.UserDictionary
- All Implemented Interfaces:
- Dictionary<org.apache.lucene.analysis.ja.dict.UserMorphData>
public final class UserDictionary
extends Object
implements Dictionary<org.apache.lucene.analysis.ja.dict.UserMorphData>
Class for building a User Dictionary. This class allows for custom segmentation of phrases.
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptiongetFST()org.apache.lucene.analysis.ja.dict.UserMorphDataint[][]lookup(char[] chars, int off, int len) Lookup words in textint[]lookupSegmentation(int phraseID) static UserDictionaryMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.lucene.analysis.morph.DictionarygetLeftId, getRightId, getWordCost
- 
Field Details- 
INTERNAL_SEPARATOR- See Also:
 
 
- 
- 
Method Details- 
open- Throws:
- IOException
 
- 
getMorphAttributespublic org.apache.lucene.analysis.ja.dict.UserMorphData getMorphAttributes()- Specified by:
- getMorphAttributesin interface- Dictionary<org.apache.lucene.analysis.ja.dict.UserMorphData>
 
- 
lookupLookup words in text- Parameters:
- chars- text
- off- offset into text
- len- length of text
- Returns:
- array of {wordId, position, length}
- Throws:
- IOException
 
- 
getFST
- 
lookupSegmentationpublic int[] lookupSegmentation(int phraseID) 
 
-