Permalink
Browse files

Forgot to include field setter for field weights.

  • Loading branch information...
1 parent a9381ff commit 7b8cdb751b07b965b8ddb40fb85b2286ef02cf28 @andreypopp committed Nov 21, 2010
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/giza_query.erl
View
@@ -319,7 +319,9 @@ set_query_field(max_id, Query, MaxId) ->
set_query_field(offset, Query, Offset) ->
Query#giza_query{offset=Offset};
set_query_field(index_weights, Query, IndexWeights) ->
- Query#giza_query{index_weights=IndexWeights}.
+ Query#giza_query{index_weights=IndexWeights};
+set_query_field(field_weights, Query, FieldWeights) ->
+ Query#giza_query{field_weights=FieldWeights}.
query_to_commands(Query) ->
lists:flatten([{32, 1}, %% Number of queries

0 comments on commit 7b8cdb7

Please sign in to comment.