Spring Data Solr

org.springframework.data.solr.repository
Annotation Type Query


@Retention(value=RUNTIME)
@Target(value=METHOD)
@Documented
public @interface Query

Author:
Christoph Strobl, Andrey Paramonov

Optional Element Summary
 Query.Operator defaultOperator
          Specifies the default operator q.op
 String defType
          Specify the default type of the query.
 String[] fields
          The fields that should be returned from the store.
 String[] filters
          add query to filter results Corresponds to fq
 String name
          Named Query Named looked up by repository.
 String requestHandler
          Specifies the request handler qt
 int timeAllowed
          The time in milliseconds allowed for a search to finish.
 String value
          Solr QueryString to be used when executing query.
 

value

public abstract String value
Solr QueryString to be used when executing query. May contain placeholders eg. ?1

Returns:
Default:
""

name

public abstract String name
Named Query Named looked up by repository.

Returns:
Default:
""

fields

public abstract String[] fields
The fields that should be returned from the store.

Returns:
Default:
{}

filters

public abstract String[] filters
add query to filter results Corresponds to fq

Returns:
Default:
{}

defaultOperator

public abstract Query.Operator defaultOperator
Specifies the default operator q.op

Returns:
Default:
org.springframework.data.solr.core.query.Query.Operator.NONE

defType

public abstract String defType
Specify the default type of the query. E.g. "lucene", "edismax"

Returns:
Default:
""

requestHandler

public abstract String requestHandler
Specifies the request handler qt

Returns:
Default:
""

timeAllowed

public abstract int timeAllowed
The time in milliseconds allowed for a search to finish. Values <= 0 mean no time restriction.

Returns:
Default:
-1

Spring Data Solr

Copyright © 2011-2014-2014 Pivotal. All Rights Reserved.