Annotation Interface Query


@Retention(RUNTIME) @Target(METHOD) @Documented public @interface Query
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Specifies the default operator q.op
    Specify the default type of the query.
    boolean
    If set to true matching documents will be removed from index.
    The fields that should be returned from the store.
    add query to filter results Corresponds to fq
    Named Query Named looked up by repository.
    Specifies the request handler qt
    int
    The time in milliseconds allowed for a search to finish.
    Solr QueryString to be used when executing query.
  • Element Details

    • value

      String value
      Solr QueryString to be used when executing query. May contain placeholders eg. ?1
      Returns:
      Default:
      ""
    • name

      String name
      Named Query Named looked up by repository.
      Returns:
      Default:
      ""
    • fields

      String[] fields
      The fields that should be returned from the store.
      Returns:
      Default:
      {}
    • filters

      String[] filters
      add query to filter results Corresponds to fq
      Returns:
      Default:
      {}
    • defaultOperator

      Query.Operator defaultOperator
      Specifies the default operator q.op
      Returns:
      Default:
      NONE
    • defType

      String defType
      Specify the default type of the query. E.g. "lucene", "edismax"
      Returns:
      Default:
      ""
    • requestHandler

      String requestHandler
      Specifies the request handler qt
      Returns:
      Default:
      ""
    • timeAllowed

      int timeAllowed
      The time in milliseconds allowed for a search to finish. Values <= 0 mean no time restriction.
      Returns:
      Default:
      -1
    • delete

      boolean delete
      If set to true matching documents will be removed from index.
      Returns:
      Since:
      1.2
      Default:
      false