{"id":20340585,"url":"https://github.com/strongself/ramblerspotlight","last_synced_at":"2026-02-28T06:20:34.087Z","repository":{"id":83316524,"uuid":"90862194","full_name":"strongself/RamblerSpotlight","owner":"strongself","description":"RamblerSpotlight is easy way to setup CoreSpotlight in your app.","archived":false,"fork":false,"pushed_at":"2017-05-10T13:11:00.000Z","size":336,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-25T19:16:11.012Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","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/strongself.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-10T12:33:44.000Z","updated_at":"2021-02-20T10:04:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"2db7e647-43b6-470e-a881-2a3be050697a","html_url":"https://github.com/strongself/RamblerSpotlight","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strongself%2FRamblerSpotlight","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strongself%2FRamblerSpotlight/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strongself%2FRamblerSpotlight/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strongself%2FRamblerSpotlight/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/strongself","download_url":"https://codeload.github.com/strongself/RamblerSpotlight/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248493733,"owners_count":21113309,"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-11-14T21:22:40.175Z","updated_at":"2025-04-11T23:24:28.804Z","avatar_url":"https://github.com/strongself.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Overview\n\n**RamblerSpotlight** is easy way to setup CoreSpotlight in your app.\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://habrastorage.org/files/441/411/e31/441411e31416405d89f44555553f1716.jpg\" height=\"300\" /\u003e\n\u003c/p\u003e\n\n![Version](https://img.shields.io/badge/version-1.0.2-brightgreen.svg)\n![License](https://img.shields.io/badge/license-MIT-blue.svg)\n![Test Coverage](https://img.shields.io/badge/Test%20Coverage-100%25-orange.svg)\n![Status](https://img.shields.io/badge/status-beta-red.svg)\n\n|         | Key Features |\n|---------|---------------|\n|\u0026#128640; | Provides all the infrastructure for using objects in Spotlight.|\n|\u0026#9851;   | Keeps Spotlight data up to date.|\n|\u0026#128190; | Saves data that needs index later.|\n|\u0026#128242; | Battle-tested into several *Rambler\u0026Co* projects.|\n\n## Installation\n\n```ruby\n# Latest release of RamblerSpotlight\npod 'RamblerSpotlight'\n```\n\nDevelopment target: ios 9.0 or later\n\n## Usage\n\nFor full information clone the example project\n\nBefore using read [our article on Habrahabr.ru](https://habrahabr.ru/company/rambler-co/blog/268257/)\n\n 1. Create SpotlightEntityObject for your entity.\n\nYou need to create next classes:\n\n```objective-c\n@interface NameEntityChangeProviderFetchRequestFactory : NSObject \u003cChangeProviderFetchRequestFactory\u003e \n...\n\n@interface NameEntityObjectIndexer : ObjectIndexerBase\n...\n\n@interface NameEntityObjectTransformer : NSObject \u003cObjectTransformer\u003e\n...\n```\n\nAfter that create SpotlightEntityObject:\n\n```objective-c\nSpotlightEntityObject *spotlightEntity = [SpotlightEntityObject entityObjectWithObjectTransformer:objectTransformer\n                                                                                       requestFactory:requestFactory\n                                                                                        objectIndexer:objectIndexer];\n```\n\n 2. Create RamblerSpotlight's object\n\n```objective-c\nRamblerSpotlight *ramblerSpotlight = [[RamblerSpotlight alloc] init];\n```\n\n 3. Setup RamblerSpotlight with entities, your app's context and CSSearchableIndex\n\n```objective-c\nNSArray\u003cSpotlightEntityObject *\u003e *entitiesObjects = @[...];\nNSManagedObjectContext *context ... ;\nCSSearchableIndex *searchableIndex =  [CSSearchableIndex defaultContext];\n\n[ramblerSpotlight setupSpotlightWithSpotlightEntitiesObjects:entitiesObjects\n                                                  appContext:context\n                                             searchableIndex:searchableIndex];\n```\n    \n 4. Start monitoring for changes to your objects in CoreData\n\n```objective-c\n[ramblerSpotlight startMonitoring];\n```\n\n## Author\n\n- Konstantin Zinovyev, k.zinovyev@rambler-co.ru\n\n- Egor Tolstoy, e.tolstoy@rambler-co.ru\n\n- Vadim Smal, v.smal@rambler-co.ru\n\n## Links\n\nhttps://habrahabr.ru/company/rambler-co/blog/268257/\n\n## License\n\nRamblerSpotlight is available under the MIT license. \nCopyright (c) 2016 StrongSelf community\n\nSee the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrongself%2Framblerspotlight","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstrongself%2Framblerspotlight","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrongself%2Framblerspotlight/lists"}