gitwtfhub

wtf is mongosphinx?

burke/mongosphinx — explained in plain English

Analysis updated 2026-07-17 · repo last pushed 2010-02-04

70RubyAudience · developerComplexity · 3/5DormantSetup · moderate

TL;DR

A Ruby library that connects MongoDB with the Sphinx search engine to add Google-like full-text search to Rails apps, though the project is no longer maintained.

Mindmap

mindmap
  root((repo))
    What it does
      Full text search
      Connects MongoDB and Sphinx
      Ranked search results
    Tech stack
      Ruby
      MongoDB
      Sphinx
    Use cases
      Blog search
      E-commerce search
      Index rebuilding
    Caveats
      Project abandoned
      Manual index rebuilds
      Setup friction

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Add ranked, relevance-based full-text search to a Rails blog or e-commerce site backed by MongoDB.

REASON 2

Mark specific MongoDB fields like title and body as searchable and build a Sphinx index from them.

REASON 3

Run keyword searches like 'cheap blue shoes' that return relevant results instead of exact-match queries.

REASON 4

Set up a rake task to periodically rebuild the Sphinx index as MongoDB data changes.

What's in the stack?

RubyMongoDBSphinxRails

How it stacks up

burke/mongosphinxredis/try.redisdhh/conductor
Stars706774
LanguageRubyRubyRuby
Last pushed2010-02-042022-11-022010-09-16
MaintenanceDormantDormantDormant
Setup difficultymoderateeasymoderate
Complexity3/51/52/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · moderate Time to first run · 1h+

Project is unmaintained, may need tweaks to work with newer MongoDB or Ruby versions.

Yoink these prompts

Prompt 1
Show me how to add `fulltext_index :title, :body` to a Rails model using mongosphinx and configure Sphinx to index it.
Prompt 2
Walk me through setting up a rake task that rebuilds the Sphinx index for my MongoDB collection using mongosphinx.
Prompt 3
Explain how mongosphinx pulls data from MongoDB and converts it into a format Sphinx can search.
Prompt 4
I'm considering mongosphinx for my Rails app but it's unmaintained, what should I check before using it with a newer MongoDB or Ruby version?

Frequently asked questions

wtf is mongosphinx?

A Ruby library that connects MongoDB with the Sphinx search engine to add Google-like full-text search to Rails apps, though the project is no longer maintained.

What language is mongosphinx written in?

Mainly Ruby. The stack also includes Ruby, MongoDB, Sphinx.

Is mongosphinx actively maintained?

Dormant — no commits in 2+ years (last push 2010-02-04).

How hard is mongosphinx to set up?

Setup difficulty is rated moderate, with roughly 1h+ to a first successful run.

Who is mongosphinx for?

Mainly developer.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.