rs-pro / mongoid-elasticsearch

DEPRECATED - Consider using SearchKick https://github.com/ankane/searchkick
MIT License
61 stars 23 forks source link

NOT RETURNING EMBEDDED SUB DOCUMENTS #4

Closed gerbdla closed 10 years ago

gerbdla commented 10 years ago

calling Scorecard.es.search "NOT STARTED" it is returning the scorecard but not the sub docs.
embeds_one :score_status, :class_name=>"ScoreStatus" any ideas? kinda new to es and mongodb

glebtv commented 10 years ago

Didn't test embedded documents. you can try specifying fields manually: def as_indexed_json { .... score_status: score_status.as_json } end