パッケージ nlp4j.indexer
インタフェース DocumentIndexer
-
- 既知の実装クラスのリスト:
AbstractDocumentIndexer
,SimpleDocumentIndex
public interface DocumentIndexer
ドキュメントのインデックスです。
Index of Documents.- バージョン:
- 1.2.1.0
- 作成者:
- Hiroki Oya
-
-
メソッドの概要
すべてのメソッド インスタンス・メソッド abstractメソッド 修飾子とタイプ メソッド 説明 void
addDocument(Document doc)
インデックスにドキュメントを追加します。void
addDocuments(List<Document> docs)
インデックスに複数のドキュメントを追加します。void
close()
void
commit()
List<Keyword>
getKeywords()
インデックスのキーワードを返します。List<Keyword>
getKeywords(String facet)
ファセットを指定してインデックスのキーワードを返します。List<Keyword>
getKeywords(String facet, String condition)
ファセットと条件を指定してインデックスのキーワードを返します。void
setProperties(Properties prop)
プロパティをセットします
Set Propertiesvoid
setProperty(String key, String value)
プロパティをセットします
Set Property
-
-
-
メソッドの詳細
-
addDocument
void addDocument(Document doc)
インデックスにドキュメントを追加します。
Add an document to Index.- パラメータ:
doc
- ドキュメント- 導入されたバージョン:
- 1.0
-
addDocuments
void addDocuments(List<Document> docs)
インデックスに複数のドキュメントを追加します。
Add documents to Index.- パラメータ:
docs
- 複数のドキュメント- 導入されたバージョン:
- 1.0
-
getKeywords
List<Keyword> getKeywords()
インデックスのキーワードを返します。
Return keywords of index.- 戻り値:
- キーワード
- 導入されたバージョン:
- 1.0
-
getKeywords
List<Keyword> getKeywords(String facet)
ファセットを指定してインデックスのキーワードを返します。
Return facet keywords of index.- パラメータ:
facet
- ファセット- 戻り値:
- キーワード
- 導入されたバージョン:
- 1.0
-
getKeywords
List<Keyword> getKeywords(String facet, String condition)
ファセットと条件を指定してインデックスのキーワードを返します。
Return facet keywords with a condition query.- パラメータ:
facet
- ファセットIDcondition
- 条件- 戻り値:
- キーワード
- 導入されたバージョン:
- 1.0
-
setProperty
void setProperty(String key, String value)
プロパティをセットします
Set Property- パラメータ:
key
- Param Keyvalue
- Param Value- 導入されたバージョン:
- 1.2.1.0
-
setProperties
void setProperties(Properties prop)
プロパティをセットします
Set Properties- パラメータ:
prop
- Properties- 導入されたバージョン:
- 1.2.1.0
-
commit
void commit() throws IOException
- 例外:
IOException
- 導入されたバージョン:
- 1.2.1.0
-
close
void close()
- 導入されたバージョン:
- 1.2.1.0
-
-