{"comment":{"position":null,"created_at":"2011-10-26T17:33:02Z","body":"I have a MongoDB, and i want to index it's records using Sphinx and Mongoid-sphinx as a driver, i found a plugin called mongoid-sphinx that supposed to do so, the problem is it always doing this for every model i want to index (running the command : rake mongoid_sphinx:index) :\r\n\r\nindexing index 'branch_core'... /usr/local/ruby/lib/ruby/gems/1.9.1/gems/mongoid-sphinx-0.1.3/lib/mongoid_sphinx/mongoid/sphinx.rb:8: warning: already initialized constant SPHINX_TYPE_MAPPING /usr/local/ruby/lib/ruby/gems/1.9.1/gems/mongoid-sphinx-0.1.3/lib/mongoid_sphinx/mongoid/sphinx.rb:8: warning: already initialized constant SPHINX_TYPE_MAPPING /usr/local/ruby/lib/ruby/gems/1.9.1/gems/mongoid-sphinx-0.1.3/lib/mongoid_sphinx/mongoid/sphinx.rb:8: warning: already initialized constant SPHINX_TYPE_MAPPING\r\n\r\nWARNING: source 'branch_core_0': xmlpipe2 support NOT compiled in. To use xmlpipe2, install missing XML libraries, reconfigure, and rebuild Sphinx\r\n\r\nERROR: index 'branch_core': failed to configure some of the sources, will not index. skipping non-plain index 'branch'...\r\n\r\nMy questions are :\r\n\r\n    why is the \"already initialized constant SPHINX_TYPE_MAPPING\" warning ?\r\n    I searched about the \"xmlpipe2 support NOT compiled in\" warning and i found this : http://sphinxsearch.com/forum/view.html?id=2859 i followed the steps, everytime the warning still popping up to me.\r\n    why the \"ERROR: index\" appears.\r\n\r\nAny help would be appreciated.\r\n\r\nCheers,\r\n","line":null,"commit_id":"9a97ab3517222d6aaf611ce66c01c776868e0beb","updated_at":"2011-10-26T17:33:02Z","url":"https://api.github.com/repos/redbeard-tech/mongoid-sphinx/comments/676704","id":676704,"path":null,"user":{"gravatar_id":"1f845fc9d7b7bf211ba5dd15842da459","avatar_url":"https://secure.gravatar.com/avatar/1f845fc9d7b7bf211ba5dd15842da459?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/sarmady","id":966229,"login":"sarmady"},"html_url":"https://github.com/redbeard-tech/mongoid-sphinx/commit/9a97ab3517#commitcomment-676704"},"legacy":{"commit":"9a97ab3517222d6aaf611ce66c01c776868e0beb","comment_id":676704}}