Packages

c

esc.index

Indexer

class Indexer extends AnyRef

Class that provides the necessary functions to index individuals and organisations. As a help you can create an instance of the class using the IndexFactory (recommended).

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Indexer
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Indexer(indexWriter: IndexWriter, similarityConfig: SimilarityConfig = new SimilarityConfig())

    indexWriter

    Lucene IndexWriter.

    similarityConfig

    Optional. A SimilarityConfiguration.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addOrganisation(organisation: IndexOrganisation): Boolean

    Add an organisation to the index.

    Add an organisation to the index. If an organisation has several names (e.g. alternative spellings, abbreviations etc.), the organisation must be added several times. You can add the same id several times. But this is not recommended! You get problems when updating the person by id. Recommended solution: Add different ids (e.g. with post-fix) and use the externalId as your unique id. You can configure (SimilarityConfig) whether the best match is selected/grouped by id oder externalId.

    organisation

    The organisation object for adding to the index.

  5. def addPerson(person: IndexPerson): Boolean

    Add a person to the index.

    Add a person to the index. If a person has several names (e.g. alternative spellings, abbreviations or artist names etc.), the person must be added several times. You can add the same id several times. But this is not recommended! You get problems when updating the person by id. Recommended solution: Add different ids (e.g. with post-fix) and use the externalId as your unique id. You can configure (SimilarityConfig) whether the best match is selected/grouped by id oder externalId.

    person

    The person object for adding to the index.

  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  8. def close(): Boolean

    Close the index.

  9. def commit(): Boolean

    Commit the changes to the index.

  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  14. val indexWriter: IndexWriter
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  19. def removeOrganisation(organisationId: String): Boolean

    Removes an organisation from the index.

    Removes an organisation from the index.

    organisationId

    The id of the organisation (the IndexOrganisation.id attribute when added).

  20. def removePerson(personId: String): Boolean

    Removes a person from the index.

    Removes a person from the index.

    personId

    The id of the person (the IndexPerson.id attribute when added).

  21. val similarityConfig: SimilarityConfig
  22. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. def updateOrganisation(organisation: IndexOrganisation): Boolean

    Update an organisation.

    Update an organisation.

    organisation

    IndexOrganisation with the new values. The id is relevant for selection the person to update.

  25. def updatePerson(person: IndexPerson): Boolean

    Update a person.

    Update a person.

    person

    IndexPerson with the new values. The id is relevant for selection the person to update.

  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped