Add support for raw queries and metall any to ES integration #37

Merged
merged 5 commits into from May 14, 2012

2 participants

@holdenk

No description provided.

holdenk added some commits May 14, 2012
@holdenk holdenk Add support for "raw" queries.
* In response to foursquare#35
  add support for queries that we do not wish to have escaped.
5f1ebaa
@holdenk holdenk Add support for metall to ES slashem 9f9f78f
@holdenk holdenk Merge remote-tracking branch '4sq/master'
Conflicts:
	src/main/scala/com/foursquare/slashem/Schema.scala
fb0f69b
@holdenk holdenk Bump to verion 0.10.1 0eb3963
@adamalix adamalix commented on an outdated diff May 14, 2012
src/main/scala/com/foursquare/slashem/Ast.scala
@@ -576,9 +592,17 @@ object Ast {
/** @inheritdoc */
//Is there a better way to do this?
def elasticExtend(qf: List[WeightedField], pf: List[PhraseWeightedField], mm: Option[String]): ElasticQueryBuilder = {
- val q = EQueryBuilders.queryString(this.extend())
- qf.map(f => q.field(f.fieldName, f.weight.toFloat))
- q
+ println("extending splat query with "+qf)
@adamalix
adamalix added a line comment May 14, 2012

Delete this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@adamalix

Looks good to me!

@adamalix adamalix merged commit af614b3 into foursquare:master May 14, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment