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 voidaddMultiValueField(String value, String name, org.apache.lucene.document.Document document) voidclose()static voiddeleteSingleDocument(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árovintPočet všetkých dokumentovstatic StringparseHeadings(String html) sql()vracia SQL vracajúce dokumenty.static org.apache.lucene.document.DocumenttoLuceneDocument(ResultSet rs, String language) Vrati Document na zaklade dodaneho ResultSetstatic org.apache.lucene.document.Fieldstatic voidupdateSingleDocument(int docId) Obnovi v indexe dokumentstatic org.apache.lucene.document.FieldMethods 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:IndexedJazyk indexovaných dokumentov -
mapper
Description copied from class:Indexedvracia IndexingMapper, ktorý spracuje dodaný ResultSet a zapíše ho do dodaného writer-a -
sql
Description copied from class:Indexedvracia SQL vracajúce dokumenty. ktoré chcem indexovat -
name
Description copied from class:IndexedVracia názov slúžiaci na identifikáciu dokumentu, používa sa pri vytváraní adresárov -
numberOfDocuments
public int numberOfDocuments()Description copied from class:IndexedPočet všetkých dokumentov- Specified by:
numberOfDocumentsin 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-
-