title: Mongoid and Full_text search issue
body: <p>I have been working on rails project, which had been made using noSql(Mongoid). Every thing is running fine.The issue is I want to add.. full text search here also. I had been using this gems for this...</p>
  
  <pre><code>gem 'mongoid_fulltext'
  </code></pre>
  
  <p>and my model file looks like this..</p>
  
  <pre><code>class Keyword
    include Mongoid::Document
    include Mongoid::FullTextSearch
    field :name, type:String
    #index :name, unique: true
    embeds_many :posts
  
    validates_presence_of :name
    validates_uniqueness_of :name
  
    fulltext_search_in :name, :index_name =&gt; 'name_index'
  end
  </code></pre>
  
  <p>and in controller.</p>
  
  <pre><code>@keywords = Keyword.fulltext_search(params[:search], :index =&gt; 'name_index')
  </code></pre>
  
  <p>and then <code>@keywords</code> always returns an empty array always.</p>
  
  <p>Thanks
  Awieet</p>