Class

com.sksamuel.elastic4s

SearchDefinition

Related Doc: package elastic4s

Permalink

case class SearchDefinition(indexesTypes: IndexesAndTypes) extends Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SearchDefinition
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SearchDefinition(indexesTypes: IndexesAndTypes)

    Permalink

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 _builder: SearchRequestBuilder

    Permalink
  5. def aggregations(json: String): SearchDefinition.this.type

    Permalink
  6. def aggregations(a: AbstractAggregationDefinition*): SearchDefinition

    Permalink
  7. def aggregations(iterable: Iterable[AbstractAggregationDefinition]): SearchDefinition

    Permalink
  8. def aggs(iterable: Iterable[AbstractAggregationDefinition]): SearchDefinition

    Permalink
  9. def aggs(first: AbstractAggregationDefinition, rest: AbstractAggregationDefinition*): SearchDefinition

    Permalink
  10. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  11. def bool(block: ⇒ BoolQueryDefinition): SearchDefinition

    Permalink
  12. def build: SearchRequest

    Permalink
  13. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. def explain(enabled: Boolean): SearchDefinition

    Permalink
  16. def fetchSource(fetch: Boolean): SearchDefinition

    Permalink
  17. def fields(fields: String*): SearchDefinition

    Permalink
  18. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. def from(i: Int): SearchDefinition

    Permalink
  20. def fuzzy(tuple: (String, Any)): SearchDefinition

    Permalink
  21. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  22. def highlighting(highlights: HighlightDefinition*): SearchDefinition

    Permalink
  23. def highlighting(options: HighlightOptionsDefinition, highlights: HighlightDefinition*): SearchDefinition

    Permalink
  24. def indexBoost(tuples: (String, Double)*): SearchDefinition

    Permalink
  25. def indexBoost(map: Map[String, Double]): SearchDefinition

    Permalink
  26. val indexesTypes: IndexesAndTypes

    Permalink
  27. def inner(inners: Iterable[InnerHitDefinition]): SearchDefinition.this.type

    Permalink
  28. def inner(inners: InnerHitDefinition*): SearchDefinition.this.type

    Permalink
  29. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  30. def limit(i: Int): SearchDefinition

    Permalink
  31. def minScore(score: Double): SearchDefinition

    Permalink
  32. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  35. def postFilter(block: ⇒ QueryDefinition): SearchDefinition.this.type

    Permalink
  36. def preference(pref: String): SearchDefinition

    Permalink
  37. def preference(pref: Preference): SearchDefinition

    Permalink
  38. def prefix(tuple: (String, Any)): SearchDefinition

    Permalink

    Adds a single prefix query to this search

    Adds a single prefix query to this search

    tuple

    - the field and prefix value

    returns

    this

  39. def query(block: ⇒ QueryDefinition): SearchDefinition

    Permalink
  40. def query(string: String): SearchDefinition

    Permalink

    Adds a single string query to this search

    Adds a single string query to this search

    string

    the query string

  41. def query2(block: ⇒ QueryBuilder): SearchDefinition

    Permalink
  42. def range(field: String): SearchDefinition

    Permalink
  43. def rawQuery(json: String): SearchDefinition

    Permalink

    Expects a query in json format and sets the query of the search request.

    Expects a query in json format and sets the query of the search request. Query must be valid json beginning with '{' and ending with '}'. Field names must be double quoted.

    Example:

    search in "*" types("users", "tweets") limit 5 rawQuery {
    """{ "prefix": { "bands": { "prefix": "coldplay", "boost": 5.0, "rewrite": "yes" } } }"""
    } searchType SearchType.Scan
  44. def regex(tuple: (String, Any)): SearchDefinition

    Permalink

    Adds a single regex query to this search

    Adds a single regex query to this search

    tuple

    - the field and regex value

    returns

    this

  45. def requestCache(requestCache: Boolean): SearchDefinition.this.type

    Permalink
  46. def rescore(rescore: RescoreDefinition): SearchDefinition

    Permalink
  47. def routing(r: String): SearchDefinition

    Permalink
  48. def scriptfields(sfieldDefs: ScriptFieldDefinition*): SearchDefinition.this.type

    Permalink

    This method introduces zero or more script field definitions into the search construction

    This method introduces zero or more script field definitions into the search construction

    sfieldDefs

    zero or more ScriptFieldDefinition instances

    returns

    this, an instance of SearchDefinition

  49. def scroll(keepAlive: String): SearchDefinition

    Permalink
  50. def searchType(searchType: SearchType): SearchDefinition

    Permalink
  51. def size(i: Int): SearchDefinition

    Permalink
  52. def sort(sorts: SortDefinition*): SearchDefinition

    Permalink
  53. def sort2(sorts: SortBuilder*): SearchDefinition

    Permalink
  54. def sourceExclude(excludes: String*): SearchDefinition.this.type

    Permalink
  55. def sourceInclude(includes: String*): SearchDefinition.this.type

    Permalink
  56. def start(i: Int): SearchDefinition

    Permalink
  57. def stats(groups: String*): SearchDefinition.this.type

    Permalink
  58. def suggestions(suggestions: SuggestionDefinition*): SearchDefinition

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

    Permalink
    Definition Classes
    AnyRef
  60. def term(tuple: (String, Any)): SearchDefinition

    Permalink
  61. def terminateAfter(terminateAfter: Int): SearchDefinition

    Permalink
  62. def timeout(duration: FiniteDuration): SearchDefinition.this.type

    Permalink
  63. def toString(): String

    Permalink
    Definition Classes
    SearchDefinition → AnyRef → Any
  64. def trackScores(enabled: Boolean): SearchDefinition

    Permalink
  65. def types(types: String*): SearchDefinition

    Permalink
  66. def version(enabled: Boolean): SearchDefinition

    Permalink
  67. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped