{"id":16429310,"url":"https://github.com/aberezkin/textgoose","last_synced_at":"2026-05-08T07:34:51.408Z","repository":{"id":76886111,"uuid":"82036607","full_name":"aberezkin/textgoose","owner":"aberezkin","description":"Mongoose plugin for full text search. ","archived":false,"fork":false,"pushed_at":"2017-02-15T08:59:31.000Z","size":4,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-24T05:32:42.910Z","etag":null,"topics":["mongodb","mongodb-plugin","mongoose","nodejs","text-search"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/aberezkin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-15T08:17:39.000Z","updated_at":"2018-04-18T13:44:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"b0f8aa04-bfdc-4898-b866-eac25163aa15","html_url":"https://github.com/aberezkin/textgoose","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"d43a3a95f05d1fb92bcc0dda5a823a031ad38aac"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aberezkin/textgoose","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aberezkin%2Ftextgoose","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aberezkin%2Ftextgoose/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aberezkin%2Ftextgoose/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aberezkin%2Ftextgoose/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aberezkin","download_url":"https://codeload.github.com/aberezkin/textgoose/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aberezkin%2Ftextgoose/sbom","scorecard":{"id":160533,"data":{"date":"2025-08-11","repo":{"name":"github.com/aberezkin/textgoose","commit":"d43a3a95f05d1fb92bcc0dda5a823a031ad38aac"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/9 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: licence.md:0","Info: FSF or OSI recognized license: MIT License: licence.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-16T13:17:02.119Z","repository_id":76886111,"created_at":"2025-08-16T13:17:02.119Z","updated_at":"2025-08-16T13:17:02.119Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32771117,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T02:36:36.067Z","status":"ssl_error","status_checked_at":"2026-05-08T02:36:07.210Z","response_time":54,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["mongodb","mongodb-plugin","mongoose","nodejs","text-search"],"created_at":"2024-10-11T08:22:13.795Z","updated_at":"2026-05-08T07:34:51.376Z","avatar_url":"https://github.com/aberezkin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# textgoose\n\nThis is a simple plugin to enable textsearch in your mongoose schema.\n\n## Usage\n\nYou can use this plugin just as any other mongoose plugin. For example for a blog post schema you would do something like that.\n\n    const mongoose = require('mongoose');\n    const textgoose = require('textgoose');\n\n    const postSchema = new mongoose.Schema({\n        title: String,\n        text: String,\n        author: String,\n        created_at: {type: Date, default: Date.now}\n    });\n\n    postSchema.index({title: 'text', text: 'text'});\n    postSchema.plugin(textgoose, options);\n\n    mongoose.model('Item', itemSchema);\n\n**Note** that you need to mark the text fiels you want to use in search queries as indexes.\n\n### Plugin options\n\nAlso you can provide plugin with `options` object. Here's what you can customize\n\n**language: string** - the language of the queries. Default is `en`.\n\n**Note** that you need to mark your index field the same `default_language` you use in plugin's options like that: \n\n    postSchema.index({title: 'text', text: 'text'}, {default_language: 'russian'});\n    \n**caseSensetive: boolean** - clarify if you want your searches to be case sesitive. Default is `false`.\n\n**diacriticSensitive: boolean** - clarify if you want your searches to be diacritic sensitive. Default is `false`.\n\nTo use textgoose on your module write use `textSearch` method like that.\n\n\tItem.textSearch(query, queryOptions, (err, data) =\u003e {\n        if (err)\n            return console.log(err);\n\n        return res.send(data);\n    });\n\n### Query options\n\nQueries are customizable too. You can use the following options.\n\n**filter: object** - use this as additional filter for your database documetns. For examle you can filter your posts by author using this filter `{author: \"John\"}`. Default is `null`.\n\n**limit: number** - defines the maximum documents returned by your database. Default is `100`.\n\n**scoreSort: boolean** - If you want your docs to be sorted by their search score set it to `true`. Default is `false`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faberezkin%2Ftextgoose","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faberezkin%2Ftextgoose","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faberezkin%2Ftextgoose/lists"}