{"id":13314661,"url":"https://github.com/hzik/Searchable-text","last_synced_at":"2025-03-10T21:30:38.591Z","repository":{"id":226209636,"uuid":"768055000","full_name":"hzik/Searchable-text","owner":"hzik","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-06T14:11:27.000Z","size":5,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-07-29T19:08:07.518Z","etag":null,"topics":["kontent-ai","kontent-ai-custom-elements","kontent-ai-integration"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/hzik.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}},"created_at":"2024-03-06T11:40:55.000Z","updated_at":"2024-03-06T14:14:46.000Z","dependencies_parsed_at":"2024-03-06T13:03:31.220Z","dependency_job_id":null,"html_url":"https://github.com/hzik/Searchable-text","commit_stats":null,"previous_names":["hzik/searchable-text"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hzik%2FSearchable-text","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hzik%2FSearchable-text/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hzik%2FSearchable-text/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hzik%2FSearchable-text/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hzik","download_url":"https://codeload.github.com/hzik/Searchable-text/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242929976,"owners_count":20208382,"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":["kontent-ai","kontent-ai-custom-elements","kontent-ai-integration"],"created_at":"2024-07-29T18:11:53.204Z","updated_at":"2025-03-10T21:30:38.579Z","avatar_url":"https://github.com/hzik.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Searchable text\n\nWith this custom element you can search by words in your Text elements.\n\n## Setup\n\n1. Deploy the code to a secure public host\n    * See [deploying section](#Deploying) for a really quick option\n2. Configure Custom element in Kontent.ai UI\n    * The `Hosted code URL` is where you deployed to in step 1\n    * `Allow the custom element to read values of specific elements` select the text you would like to index\n    * `JSON parameters`:\n```json\n{\n    \"source_text\": \"codename_of_text_element\"\n}\n```\n\n## Deploying\n\nNetlify has made this easy. If you click the deploy button below, it will guide you through the process of deploying it to Netlify and leave you with a copy of the repository in your GitHub account as well.\n\n[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/hzik/Searchable-text)\n\n## What is Saved?\n\n```json\n\"indexed_text\": {\n                    \"type\": \"custom\",\n                    \"name\": \"Indexed text\",\n                    \"value\": \"[\\\"Hi\\\",\\\"how\\\",\\\"are\\\",\\\"you\\\"]\"\n                }\n```\n\n## Searching by indexed text\n\nYou can use `Contains` filter to find the item you need:\n\n`/items?elements.indexed_text[contains]=word`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhzik%2FSearchable-text","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhzik%2FSearchable-text","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhzik%2FSearchable-text/lists"}