{"id":16949025,"url":"https://github.com/technicalpickles/ambitious-sphinx","last_synced_at":"2026-01-24T05:30:17.772Z","repository":{"id":66022949,"uuid":"324","full_name":"technicalpickles/ambitious-sphinx","owner":"technicalpickles","description":"Ambition adapter for Sphinx","archived":true,"fork":false,"pushed_at":"2008-03-26T19:12:32.000Z","size":148,"stargazers_count":18,"open_issues_count":0,"forks_count":29,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-14T17:18:11.206Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/technicalpickles.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2008-02-07T05:38:41.000Z","updated_at":"2024-12-07T15:38:37.000Z","dependencies_parsed_at":"2023-02-19T21:30:36.266Z","dependency_job_id":null,"html_url":"https://github.com/technicalpickles/ambitious-sphinx","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technicalpickles%2Fambitious-sphinx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technicalpickles%2Fambitious-sphinx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technicalpickles%2Fambitious-sphinx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technicalpickles%2Fambitious-sphinx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/technicalpickles","download_url":"https://codeload.github.com/technicalpickles/ambitious-sphinx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239766771,"owners_count":19693378,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T21:52:57.783Z","updated_at":"2026-01-24T05:30:17.714Z","avatar_url":"https://github.com/technicalpickles.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"= An Ambitious Sphinx Adapter\n\nI don't know about you, but I like me some sexy full-text searching.\n\n== The basics\n\nWant to find all meals that mention bacon?\n\n  Meal.select {'bacon'}\n\nWhat about bacon bits and sour cream?\n\n  Meal.select {'bacon bits' \u0026\u0026 'sour cream'}\n\nMaybe with bacon in the name, or cheese in the recipe?\n\n  Meal.select {|m| m.name =~ 'bacon' || m.recipe =~ 'cheese'}\n\nCheese in the name, but not grilled?\n\n  Meal.select {|m| m.name =~ 'bacon' \u0026\u0026 m.name !~ 'grilled'}\n\n== Pagination\n\nYou're going to want to use pagination. Ultrasphinx, the underlying library, only supports it, as in, you can't just get all the objects matching your query. You _have_ to use paging.\n\nIt's pretty simple:\n\n  Meal.select {'bacon'}.page(2)\n  Meal.select {'bacon'}.page(3)\n\n== Big honking disclaimer\n\nWe're still learning a lot about how sphinx and ambition work, so things are likely to change a lot, and features are likely to be missing.\n\n== Getting Started\n\n\n=== Installing\n\n  sudo gem install ambitious-sphinx\n  \n=== Add it to your app\n    \nRequire our files somewhere, like at the end of config/environment.rb, maybe create config/initializers/sphinx.rb\n\n  require 'ultrasphinx'\n  require 'ambition/adapters/ambitious_sphinx'\n  \n=== Sphinx and Ultrasphinx\n    \nYou will also need to go through the motions of setting up ultrasphinx.\n\nThis includes:\n\n * Configuring/installing sphinx\n * Modifying your model to indicate what's to be indexed\n * Bootstrapping ultrasphinx\n \nAll this is discussed in detail in ultrasphinx's README\n\n== Playing with the code base\n\nIn addition to the other dependencies, you'll need to:\n\n  gem install echoe redgreen mocha test-spec\n  \nRun the tests with:\n  \n  rake test\n  \n\n== More information on Sphinx:\n\n -\u003e http://www.sphinxsearch.com/\n -\u003e http://blog.evanweaver.com/articles/2007/07/09/ultrasphinx-searching-the-world-in-231-seconds/\n -\u003e http://blog.evanweaver.com/files/doc/fauna/ultrasphinx/files/README.html\n\n== More information on Ambition:\n\n-\u003e http://ambition.rubyforge.org\n-\u003e http://groups.google.com/group/ambition-rb/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechnicalpickles%2Fambitious-sphinx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechnicalpickles%2Fambitious-sphinx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechnicalpickles%2Fambitious-sphinx/lists"}