WIP ALERT - THIS IS A WORK IN PROGRESS

Some examples on how to use Elastic4s to talk to an elasticsearch server.

Aggregations

Performing an aggregation on a query:

Read more




WIP ALERT THIS IS A WORK IN PROGRESS

Case-class Form

Standalone form

```scala import play.api.data._ import play.api.data.Forms._

val form = Form( tuple( "firstname" -> text,

Read more




WIP ALERT THIS IS A WORK IN PROGRESS

Using Scalacheck standalone

TODO

Using Scalacheck alongside Scalatest and SBT

TODO

Simplest possible example

TODO

Define a custom domain

Read more




WIP ALERT THIS IS A WORK IN PROGRESS

Simplest possible usage

//no play

Using ScalaTest with Play2

//extends PlaySpec //perhaps testing that a given route contains a given string

Testing stri

Read more




Here are some of the ways you can define and/or create functions in Scala:

Simplest possible way

For functions which are only one line long.

def func1(a:Int,b:Int) = 
    a+b

Functions wit

Read more




WIP THIS IS A WORK IN PROGRESS

URL-QUERIES VS BODY QUERIES

If you query your server using an url like http://my-server:9200/_search?q=foobar, this is exactly the same as doing the following body query:

`

Read more




Here are a few ways in which you can use regular expressions (regexp for short) in Scala.

Just find out whether or not a string matches a given regexp

(Note that you must not call .ron the string here)

```scal

Read more




WIP THIS IS A WORK IN PROGRESS

HEADS-UP This project uses Swagger version 1.3.8

Here are some examples of how to annotate your Play 2.x web app (Scala) using Swagger directives so you can, for instance, plug

Read more




There's been some changes in the way you deal with form elements in Yii 2 (in comparison with Yii 1) so here are some examples to get you started:

Create an ActiveForm with a single field (text input) and a submit

Read more