Class Documents

java.lang.Object
sk.iway.iwcm.system.fulltext.indexed.Indexed
sk.iway.iwcm.system.fulltext.indexed.Documents

public class Documents extends Indexed
Documents.java
  • Constructor Details

    • Documents

      public Documents(String language)
  • Method Details

    • parseHeadings

      public static String parseHeadings(String html)
    • 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

      public static void addMultiValueField(String value, String name, org.apache.lucene.document.Document document)
    • typeField

      public static org.apache.lucene.document.Field typeField(String indexed)
    • urlField

      public static org.apache.lucene.document.Field urlField(String url)
    • language

      public String language()
      Description copied from class: Indexed
      Jazyk indexovaných dokumentov
      Specified by:
      language in class Indexed
      Returns:
    • mapper

      public IndexingMapper mapper(org.apache.lucene.index.IndexWriter writer, Writer log)
      Description copied from class: Indexed
      vracia IndexingMapper, ktorý spracuje dodaný ResultSet a zapíše ho do dodaného writer-a
      Specified by:
      mapper in class Indexed
      Returns:
    • sql

      public String sql()
      Description copied from class: Indexed
      vracia SQL vracajúce dokumenty. ktoré chcem indexovat
      Specified by:
      sql in class Indexed
      Returns:
    • name

      public String name()
      Description copied from class: Indexed
      Vracia názov slúžiaci na identifikáciu dokumentu, používa sa pri vytváraní adresárov
      Specified by:
      name in class Indexed
      Returns:
    • numberOfDocuments

      public int numberOfDocuments()
      Description copied from class: Indexed
      Počet všetkých dokumentov
      Specified by:
      numberOfDocuments in class Indexed
      Returns:
    • close

      public void close()
      Specified by:
      close in class Indexed
    • 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 -