You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hey @look, enjoyed your article and used some of your code in own project. Thank you so much! Just wanted to let you know about a possible small mistake here:
chunk.to_h is only keeping the last element for each group in the array for each operator. To fix I used grouped = clauses.group_by(&:operator) instead. Ruby version is 2.1.0
The text was updated successfully, but these errors were encountered:
hey @look, enjoyed your article and used some of your code in own project. Thank you so much! Just wanted to let you know about a possible small mistake here:
query-parser/phrase_parser.rb
Line 71 in 6049469
chunk.to_h
is only keeping the last element for each group in the array for each operator. To fix I usedgrouped = clauses.group_by(&:operator)
instead. Ruby version is 2.1.0The text was updated successfully, but these errors were encountered: