Class/Object

com.outr.lucene4s.keyword

KeywordIndexing

Related Docs: object KeywordIndexing | package keyword

Permalink

case class KeywordIndexing(lucene: Lucene, directoryName: String, wordsFromBuilder: (DocumentBuilder) ⇒ List[String] = ..., includeFields: List[Field[_]] = Nil, stopWords: Set[String] = KeywordIndexing.DefaultStopWords, allowedCharacters: String = ..., removeEndsWithCharacters: String = ..., minimumLength: Int = 2) extends LuceneListener with Product with Serializable

KeywordIndexing allows the automatic generation of another index specifically for keyword searching without duplicates.

lucene

the Lucene instance to apply to

directoryName

the directory name to derive the storage location from the existing index

wordsFromBuilder

the function that extracts the words from the DocumentBuilder for inclusion

includeFields

a list of additional fields to include from the DocumentBuilder during indexing

stopWords

a list of exclusion words not to be indexed

allowedCharacters

a String containing all the characters allowed. This defaults to a-z, A-Z, 0-9, period and space. Keywords are filtered to remove any characters not allowed.

removeEndsWithCharacters

removes any of these characters found at the end of the keyword. Primarily useful for removing punctuation. Defaults to ",.?!;".

minimumLength

the minimum length of keywords to be included. defaults to 2.

Linear Supertypes
Serializable, Serializable, Product, Equals, LuceneListener, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. KeywordIndexing
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. LuceneListener
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new KeywordIndexing(lucene: Lucene, directoryName: String, wordsFromBuilder: (DocumentBuilder) ⇒ List[String] = ..., includeFields: List[Field[_]] = Nil, stopWords: Set[String] = KeywordIndexing.DefaultStopWords, allowedCharacters: String = ..., removeEndsWithCharacters: String = ..., minimumLength: Int = 2)

    Permalink

    lucene

    the Lucene instance to apply to

    directoryName

    the directory name to derive the storage location from the existing index

    wordsFromBuilder

    the function that extracts the words from the DocumentBuilder for inclusion

    includeFields

    a list of additional fields to include from the DocumentBuilder during indexing

    stopWords

    a list of exclusion words not to be indexed

    allowedCharacters

    a String containing all the characters allowed. This defaults to a-z, A-Z, 0-9, period and space. Keywords are filtered to remove any characters not allowed.

    removeEndsWithCharacters

    removes any of these characters found at the end of the keyword. Primarily useful for removing punctuation. Defaults to ",.?!;".

    minimumLength

    the minimum length of keywords to be included. defaults to 2.

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val allowedCharacters: String

    Permalink

    a String containing all the characters allowed.

    a String containing all the characters allowed. This defaults to a-z, A-Z, 0-9, period and space. Keywords are filtered to remove any characters not allowed.

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def commit(): Unit

    Permalink
    Definition Classes
    KeywordIndexingLuceneListener
  8. def delete(): Unit

    Permalink
    Definition Classes
    KeywordIndexingLuceneListener
  9. val directoryName: String

    Permalink

    the directory name to derive the storage location from the existing index

  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. val includeFields: List[Field[_]]

    Permalink

    a list of additional fields to include from the DocumentBuilder during indexing

  14. def index(words: List[String], additionalValues: List[FieldAndValue[_]]): Unit

    Permalink
  15. def indexed(builder: DocumentBuilder): Unit

    Permalink
    Definition Classes
    KeywordIndexingLuceneListener
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. val lucene: Lucene

    Permalink

    the Lucene instance to apply to

  18. val minimumLength: Int

    Permalink

    the minimum length of keywords to be included.

    the minimum length of keywords to be included. defaults to 2.

  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. val removeEndsWithCharacters: String

    Permalink

    removes any of these characters found at the end of the keyword.

    removes any of these characters found at the end of the keyword. Primarily useful for removing punctuation. Defaults to ",.?!;".

  23. def search(queryString: String = "", limit: Int = 10): KeywordResults

    Permalink
  24. val stopWords: Set[String]

    Permalink

    a list of exclusion words not to be indexed

  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  26. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. val wordsFromBuilder: (DocumentBuilder) ⇒ List[String]

    Permalink

    the function that extracts the words from the DocumentBuilder for inclusion

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from LuceneListener

Inherited from AnyRef

Inherited from Any

Ungrouped