Class Documents
java.lang.Object
sk.iway.iwcm.system.fulltext.indexed.Indexed
sk.iway.iwcm.system.fulltext.indexed.Documents
Documents.java
-
Nested Class Summary
Nested classes/interfaces inherited from class sk.iway.iwcm.system.fulltext.indexed.Indexed
Indexed.Callback
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addMultiValueField
(String value, String name, org.apache.lucene.document.Document document) void
close()
static void
deleteSingleDocument
(int docId) Zmaze dokument z indexulanguage()
Jazyk indexovaných dokumentovvracia IndexingMapper, ktorý spracuje dodaný ResultSet a zapíše ho do dodaného writer-aname()
Vracia názov slúžiaci na identifikáciu dokumentu, používa sa pri vytváraní adresárovint
Počet všetkých dokumentovstatic String
parseHeadings
(String html) sql()
vracia SQL vracajúce dokumenty.static org.apache.lucene.document.Document
toLuceneDocument
(ResultSet rs, String language) Vrati Document na zaklade dodaneho ResultSetstatic org.apache.lucene.document.Field
static void
updateSingleDocument
(int docId) Obnovi v indexe dokumentstatic org.apache.lucene.document.Field
Methods inherited from class sk.iway.iwcm.system.fulltext.indexed.Indexed
defaultField, defaultLanguage, proccessed, setCallback, titleField, titleField
-
Constructor Details
-
Documents
-
-
Method Details
-
parseHeadings
-
toLuceneDocument
public static org.apache.lucene.document.Document toLuceneDocument(ResultSet rs, String language) throws SQLException Vrati Document na zaklade dodaneho ResultSet- Parameters:
rs
-- Throws:
SQLException
-
addMultiValueField
-
typeField
-
urlField
-
language
Description copied from class:Indexed
Jazyk indexovaných dokumentov -
mapper
Description copied from class:Indexed
vracia IndexingMapper, ktorý spracuje dodaný ResultSet a zapíše ho do dodaného writer-a -
sql
Description copied from class:Indexed
vracia SQL vracajúce dokumenty. ktoré chcem indexovat -
name
Description copied from class:Indexed
Vracia názov slúžiaci na identifikáciu dokumentu, používa sa pri vytváraní adresárov -
numberOfDocuments
public int numberOfDocuments()Description copied from class:Indexed
Počet všetkých dokumentov- Specified by:
numberOfDocuments
in classIndexed
- Returns:
-
close
public void close() -
updateSingleDocument
public static void updateSingleDocument(int docId) Obnovi v indexe dokument- Parameters:
docId
-
-
deleteSingleDocument
public static void deleteSingleDocument(int docId) Zmaze dokument z indexu- Parameters:
docId
-
-