services

ElasticsearchPlugin

class ElasticsearchPlugin extends Plugin

Elasticsearch plugin.

Linear Supertypes
Plugin, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ElasticsearchPlugin
  2. Plugin
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ElasticsearchPlugin(application: Application)

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def _search(queryObj: XContentBuilder, index: String = nameOfIndex, from: Int = 0, to: Int = 60): SearchResponse

    * Execute query

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. var client: Option[TransportClient]

  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. val collections: CollectionService

  11. val comments: CommentService

  12. def connect(force: Boolean = false): Boolean

  13. def convertJsMappingToFields(json: JsObject, parentKey: Option[String] = None, targetObject: Option[String] = None, foundTarget: Boolean = false): List[String]

    Take a JsObject and list all unique fields under targetObject field, except those in ignoredFields

  14. def convertJsObjectToBuilder(builder: XContentBuilder, json: JsObject): XContentBuilder

    Take a JsObject and parse into an XContentBuilder JSON object for indexing into Elasticsearch

  15. def createIndex(index: String = nameOfIndex): Unit

    Create a new index with preconfigured mappgin

  16. val datasets: DatasetService

  17. def delete(index: String, docType: String, id: String): Unit

    Delete an index

  18. def deleteAll: Unit

    Delete all indices

  19. def enabled: Boolean

    Definition Classes
    Plugin
  20. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  21. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  22. val files: FileService

  23. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  24. def getAutocompleteMetadataFields(query: String, index: String = nameOfIndex): List[String]

    Traverse metadata field mappings to get unique list for autocomplete

  25. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  26. def getElasticsearchObjectMappings(): String

    Return string-encoded JSON object describing field types

  27. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  28. def index(esObj: Option[ElasticsearchObject], index: String = nameOfIndex): Unit

    Index document using an arbitrary map of fields.

  29. def index(section: Section): Unit

  30. def index(file: File): Unit

    Reindex the given file.

  31. def index(dataset: Dataset, recursive: Boolean): Unit

    Reindex the given dataset, if recursive is set to true it will also reindex all files.

  32. def index(collection: Collection, recursive: Boolean): Unit

    Reindex the given collection, if recursive is set to true it will also reindex all datasets and files.

  33. def isEnabled(): Boolean

  34. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  35. def listTags(resourceType: String = "", index: String = nameOfIndex): Map[String, Long]

    Return map of distinct value/count for tags *

  36. val mustNotOperators: List[String]

  37. val mustOperators: List[String]

  38. val nameOfCluster: String

  39. val nameOfIndex: String

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

    Definition Classes
    AnyRef
  41. final def notify(): Unit

    Definition Classes
    AnyRef
  42. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  43. def onStart(): Unit

    Definition Classes
    ElasticsearchPlugin → Plugin
  44. def onStop(): Unit

    Definition Classes
    ElasticsearchPlugin → Plugin
  45. def parseDouble(s: String): Option[Double]

    Attempt to cast String into Double, returning None if not possible*

  46. def parseMustNotOperators(builder: XContentBuilder, key: String, value: String, operator: String): XContentBuilder

    Create appropriate search object based on operator

  47. def parseMustOperators(builder: XContentBuilder, key: String, value: String, operator: String): XContentBuilder

    Create appropriate search object based on operator

  48. def prepareElasticJsonQuery(query: String): XContentBuilder

    Convert search string into an Elasticsearch-ready JSON query object*

  49. def prepareElasticJsonQuery(query: List[JsValue], grouping: String): XContentBuilder

    Convert list of search term JsValues into an Elasticsearch-ready JSON query object*

  50. def search(query: String, index: String = nameOfIndex): List[ResourceRef]

    Search using a simple text string

  51. def search(query: List[JsValue], grouping: String): List[ResourceRef]

    Prepare and execute Elasticsearch query, and return list of matching ResourceRefs

  52. val serverAddress: String

  53. val serverPort: Int

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

    Definition Classes
    AnyRef
  55. def toString(): String

    Definition Classes
    AnyRef → Any
  56. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Plugin

Inherited from AnyRef

Inherited from Any

Ungrouped