com.codemettle.akkasolr.querybuilder

SolrQueryBuilder

case class SolrQueryBuilder(query: QueryPart, rowsOpt: Option[Int] = None, startOpt: Option[Int] = None, fieldList: Vector[String] = Vector.empty, sortsList: Vector[SortClause] = Vector.empty, facetFields: Vector[String] = Vector.empty, serverTimeAllowed: Option[Int] = None, facetLimit: Option[Int] = None, facetMinCount: Option[Int] = None, facetPrefix: Option[String] = None) extends Product with Serializable

An (incomplete) immutable builder for Solr queries. Currently only has common org.apache.solr.client.solrj.SolrQuery shortcuts, but more can be added easily as the need arises.

Sample Usage
import com.codemettle.akkasolr.client.SolrQueryBuilder.FieldStrToSort

val b = SolrQueryBuilder("*") rows 21 fields "field" sortBy "myfield".desc
val b2 = b facets "facetfield"
query(b.toParams)
query(b2.toParams)
Annotations
@SerialVersionUID()
Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SolrQueryBuilder
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SolrQueryBuilder(query: QueryPart, rowsOpt: Option[Int] = None, startOpt: Option[Int] = None, fieldList: Vector[String] = Vector.empty, sortsList: Vector[SortClause] = Vector.empty, facetFields: Vector[String] = Vector.empty, serverTimeAllowed: Option[Int] = None, facetLimit: Option[Int] = None, facetMinCount: Option[Int] = None, facetPrefix: Option[String] = None)

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. def allowedExecutionTime(duration: Duration): SolrQueryBuilder

  5. def allowedExecutionTime(duration: FiniteDuration): SolrQueryBuilder

  6. def allowedExecutionTime(millis: Int): SolrQueryBuilder

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

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

    Definition Classes
    AnyRef
  10. val facetFields: Vector[String]

  11. val facetLimit: Option[Int]

  12. val facetMinCount: Option[Int]

  13. val facetPrefix: Option[String]

  14. def facets(fs: String*): SolrQueryBuilder

  15. val fieldList: Vector[String]

  16. def fields(fs: String*): SolrQueryBuilder

  17. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  19. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  23. val query: QueryPart

  24. def rows(r: Int): SolrQueryBuilder

  25. val rowsOpt: Option[Int]

  26. val serverTimeAllowed: Option[Int]

  27. def sortBy(scs: SortClause*): SolrQueryBuilder

  28. def sortBy(sc: SortClause): SolrQueryBuilder

  29. val sortsList: Vector[SortClause]

  30. def start(s: Int): SolrQueryBuilder

  31. val startOpt: Option[Int]

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

    Definition Classes
    AnyRef
  33. def toParams(implicit arf: ActorRefFactory): ImmutableSolrParams

    Create a SolrParams object that can be used for Solr queries

    Create a SolrParams object that can be used for Solr queries

    returns

    an ImmutableSolrParams representing the state of the builder

  34. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. def withFacetField(f: String): SolrQueryBuilder

  38. def withFacetFields(fs: String*): SolrQueryBuilder

  39. def withFacetLimit(limit: Int): SolrQueryBuilder

  40. def withFacetMinCount(min: Int): SolrQueryBuilder

  41. def withFacetPrefix(prefix: String): SolrQueryBuilder

  42. def withField(f: String): SolrQueryBuilder

  43. def withFields(fs: String*): SolrQueryBuilder

  44. def withQuery(qp: QueryPart)(implicit arf: ActorRefFactory): SolrQueryBuilder

  45. def withQuery(q: String): SolrQueryBuilder

  46. def withSort(sc: SortClause): SolrQueryBuilder

  47. def withSorts(scs: SortClause*): SolrQueryBuilder

  48. def withoutAllowedExecutionTime(): SolrQueryBuilder

  49. def withoutFacetField(f: String): SolrQueryBuilder

  50. def withoutFacetFields(): SolrQueryBuilder

  51. def withoutFacetFields(fs: String*): SolrQueryBuilder

  52. def withoutFacetLimit(): SolrQueryBuilder

  53. def withoutFacetMinCount(): SolrQueryBuilder

  54. def withoutFacetPrefix(): SolrQueryBuilder

  55. def withoutField(f: String): SolrQueryBuilder

  56. def withoutFields(): SolrQueryBuilder

  57. def withoutFields(fs: String*): SolrQueryBuilder

  58. def withoutRows(): SolrQueryBuilder

  59. def withoutSort(sc: SortClause): SolrQueryBuilder

  60. def withoutSortField(f: String): SolrQueryBuilder

  61. def withoutSorts(): SolrQueryBuilder

  62. def withoutStart(): SolrQueryBuilder

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped