bsadeh/scalastic — pull request #11 by rajish (2012-09-05 22:10:55+00:00)
Title: Made highlight usage possible

The current implementation just wraps the Java code, but seems to be never used by a developer. It is impossible to create a `Field` object because it has a private constructor. This patch replaces the `Field` class with own `HighligtField` one that can be constructed providing just a field name. There are several optional parameters matching the ElasticSearch highlight API:

```scala
new HighlightField(
name: String,
fragmentSize: Int = -1,
fragmentOffset: Int = -1,
numOfFragments: Int = -1,
requireFieldMatch: Option[Boolean] = scala.None)
```