{"id":23160986,"url":"https://github.com/steverandy/mongoid_text_search","last_synced_at":"2025-08-18T02:31:56.714Z","repository":{"id":56884399,"uuid":"1310927","full_name":"steverandy/mongoid_text_search","owner":"steverandy","description":"Simple full text search for use with Mongoid.","archived":false,"fork":false,"pushed_at":"2011-04-30T06:43:12.000Z","size":104,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-21T17:49:46.449Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/steverandy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-01-31T03:11:02.000Z","updated_at":"2023-05-08T20:01:40.000Z","dependencies_parsed_at":"2022-08-20T23:40:40.930Z","dependency_job_id":null,"html_url":"https://github.com/steverandy/mongoid_text_search","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steverandy%2Fmongoid_text_search","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steverandy%2Fmongoid_text_search/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steverandy%2Fmongoid_text_search/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steverandy%2Fmongoid_text_search/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/steverandy","download_url":"https://codeload.github.com/steverandy/mongoid_text_search/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230193108,"owners_count":18187963,"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-12-17T23:12:59.660Z","updated_at":"2024-12-17T23:12:59.722Z","avatar_url":"https://github.com/steverandy.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Overview\n\nThis gem is used in addition to Mongoid gem (up to version 2.0.0.beta.20), to provide simple full text search function. It takes one or many string or array of strings fields. The strings will be cleaned up and transform into array so they can be indexed. Searching later on will simply partially matches the input keywords with the indexed keywords in the arrays.\n\n## Installation\n    \n    gem \"mongoid_text_search\"\n\n## Getting Started\n\nAdd the following into your model.\n\n    include Mongoid::TextSearch\n\nSpecify which field(s) to be included as the keywords. Fields should be string or array of strings.\n\n    text_search_for_fields :title, :description\n\nThe above will create a new field called keywords.\n\n## Available Class Methods\n\nConvert any string into an array of clean keywords.\n\n    generate_clean_keywords(string)\n\nSearch documents with an array of keywords to match.\nUse the previous method to generate an array of clean keywords from a string.\n\n    with_keywords(array)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteverandy%2Fmongoid_text_search","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsteverandy%2Fmongoid_text_search","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteverandy%2Fmongoid_text_search/lists"}