Code Monkey home page Code Monkey logo

searchable-text's Introduction

Searchable text

With this custom element you can search by words in your Text elements.

Setup

  1. Deploy the code to a secure public host
  2. Configure Custom element in Kontent.ai UI
    • The Hosted code URL is where you deployed to in step 1
    • Allow the custom element to read values of specific elements select the text you would like to index
    • JSON parameters:
{
    "source_text": "codename_of_text_element"
}

Deploying

Netlify 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.

Deploy to Netlify

What is Saved?

"indexed_text": {
                    "type": "custom",
                    "name": "Indexed text",
                    "value": "[\"Hi\",\"how\",\"are\",\"you\"]"
                }

Searching by indexed text

You can use Contains filter to find the item you need:

/items?elements.indexed_text[contains]=word

searchable-text's People

Contributors

hzik avatar

Watchers

Jakub Lokaj avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.