{"id":35013588,"url":"https://github.com/beyond-the-cloud-dev/sosl-lib","last_synced_at":"2026-04-01T20:56:57.018Z","repository":{"id":186929937,"uuid":"673947637","full_name":"beyond-the-cloud-dev/sosl-lib","owner":"beyond-the-cloud-dev","description":"The SOSL Lib provides functional constructs for SOSL queries in Apex.","archived":false,"fork":false,"pushed_at":"2023-10-19T21:25:51.000Z","size":438,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-28T18:53:36.726Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://sosl.beyondthecloud.dev/","language":"Apex","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/beyond-the-cloud-dev.png","metadata":{"files":{"readme":"README.md","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,"governance":null}},"created_at":"2023-08-02T19:37:29.000Z","updated_at":"2023-08-13T11:46:15.000Z","dependencies_parsed_at":"2023-10-16T08:50:41.882Z","dependency_job_id":"aca1cc01-46de-4286-abde-cd4bf36787d4","html_url":"https://github.com/beyond-the-cloud-dev/sosl-lib","commit_stats":null,"previous_names":["beyond-the-cloud-dev/sosl-lib"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/beyond-the-cloud-dev/sosl-lib","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyond-the-cloud-dev%2Fsosl-lib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyond-the-cloud-dev%2Fsosl-lib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyond-the-cloud-dev%2Fsosl-lib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyond-the-cloud-dev%2Fsosl-lib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beyond-the-cloud-dev","download_url":"https://codeload.github.com/beyond-the-cloud-dev/sosl-lib/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyond-the-cloud-dev%2Fsosl-lib/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31013968,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-27T02:58:54.984Z","status":"ssl_error","status_checked_at":"2026-03-27T02:58:46.993Z","response_time":164,"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":[],"created_at":"2025-12-27T05:07:47.877Z","updated_at":"2026-03-27T03:18:11.676Z","avatar_url":"https://github.com/beyond-the-cloud-dev.png","language":"Apex","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SOSL Lib\n\n![Deploy to Scratch Org and run tests](https://github.com/beyond-the-cloud-dev/sosl-lib/actions/workflows/ci.yml/badge.svg)\n[![codecov](https://codecov.io/gh/beyond-the-cloud-dev/sosl-lib/branch/main/graph/badge.svg)](https://codecov.io/gh/beyond-the-cloud-dev/sosl-lib)\n\nThe SOSL Lib provides functional constructs for SOSL queries in Apex.\n\nFor more details, please refer to the [documentation](https://sosl.beyondthecloud.dev/).\n\n## Examples\n\n```apex\n// FIND 'Company' RETURNING Account\nList\u003cList\u003cSObject\u003e\u003e searchResults = SOSL.find('Company')\n    .returning(SOSL.Returning(Account.SObject))\n    .toSearchList();\n```\n\n```apex\n// FIND 'Company' RETURNING Account(Id, Name ORDER BY Name)\nList\u003cList\u003cSObject\u003e\u003e searchResults = SOSL.find('Company')\n    .returning(\n        SOSL.Returning(Account.SObject)\n            .with(Account.Id, Account.Name)\n            .orderBy(Account.Name)\n    )\n    .toSearchList();\n```\n\n\n## Deploy to Salesforce\n\n\u003ca href=\"https://githubsfdeploy.herokuapp.com?owner=beyond-the-cloud-dev\u0026repo=sosl-lib\u0026ref=main\"\u003e\n  \u003cimg alt=\"Deploy to Salesforce\"\n       src=\"https://raw.githubusercontent.com/afawcett/githubsfdeploy/master/deploy.png\"\u003e\n\u003c/a\u003e\n\n## Documentation\n\n[SOSL Lib documentation](https://sosl.beyondthecloud.dev/)\n\n## Features\n\nRead about the features in the [documentation](https://sosl.beyondthecloud.dev/docs/basic-features).\n\n1. **Dynamic SOSL**\n2. **Control FLS**\n- 2.1 **User Mode**\n- 2.2 **System Mode**\n- 2.3 **stripInaccessible**\n3. **Control Sharings Mode**\n- 3.1 **with sharing**\n- 3.2 **without sharing**\n- 3.3 **inherited sharing**\n4. **Mocking**\n- 4.1 **Mock list of records**\n5. **Dynamic conditions**\n\n----\n\n## License notes\n\n- For proper license management each repository should contain LICENSE file similar to this one.\n- Each original class should contain copyright mark: Copyright (c) 2023 BeyondTheCloud.Dev\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeyond-the-cloud-dev%2Fsosl-lib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeyond-the-cloud-dev%2Fsosl-lib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeyond-the-cloud-dev%2Fsosl-lib/lists"}