com.sksamuel.elastic4s

SearchDefinition

Related Doc: package elastic4s

class SearchDefinition extends AnyRef

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

Instance Constructors

  1. new SearchDefinition(indexesTypes: IndexesTypes)

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

  5. def aggregations(a: AbstractAggregationDefinition*): SearchDefinition

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

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

  8. def aggs(a: AbstractAggregationDefinition*): SearchDefinition

  9. final def asInstanceOf[T0]: T0

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

  11. def build: SearchRequest

  12. def clone(): AnyRef

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

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

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

  16. def fetchSource(fetch: Boolean): SearchDefinition

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

  18. def finalize(): Unit

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

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

    Definition Classes
    AnyRef → Any
  21. def hashCode(): Int

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

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

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

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

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

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

  28. final def isInstanceOf[T0]: Boolean

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

  30. def minScore(score: Double): SearchDefinition

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

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

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

    Definition Classes
    AnyRef
  34. def postFilter(block: ⇒ FilterDefinition): SearchDefinition.this.type

  35. def preference(pref: String): SearchDefinition

  36. def preference(pref: Preference): SearchDefinition

  37. def prefix(tuple: (String, Any)): SearchDefinition

    Adds a single prefix query to this search

    Adds a single prefix query to this search

    tuple

    - the field and prefix value

    returns

    this

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

  39. def query(string: String): SearchDefinition

    Adds a single string query to this search

    Adds a single string query to this search

    string

    the query string

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

  41. def queryCache(queryCache: Boolean): SearchDefinition.this.type

  42. def range(field: String): SearchDefinition

  43. def rawQuery(json: String): SearchDefinition

    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

    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 rescore(rescore: RescoreDefinition): SearchDefinition

  46. def routing(r: String): SearchDefinition

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

    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

  48. def scroll(keepAlive: String): SearchDefinition

  49. def searchType(searchType: SearchType): SearchDefinition

  50. def size(i: Int): SearchDefinition

  51. def sort(sorts: SortDefinition*): SearchDefinition

  52. def sort2(sorts: SortBuilder*): SearchDefinition

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

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

  55. def start(i: Int): SearchDefinition

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

  57. def suggestions(suggestions: SuggestionDefinition*): SearchDefinition

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

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

  60. def timeout(duration: FiniteDuration): SearchDefinition.this.type

  61. def toString(): String

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

  63. def types(types: String*): SearchDefinition

  64. def version(enabled: Boolean): SearchDefinition

  65. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def facets(f: FacetDefinition*): SearchDefinition

    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.0) Facets are deprecated, use aggregations

  2. def facets(iterable: Iterable[FacetDefinition]): SearchDefinition

    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.0) Facets are deprecated, use aggregations

  3. def filter(filter: FilterDefinition): SearchDefinition.this.type

    Annotations
    @deprecated
    Deprecated

    (Since version 1.5) Use postFilter as a direct replacement keyword. Filter was removed in elasticsearch.

Inherited from AnyRef

Inherited from Any

Ungrouped