GithubHelp home page GithubHelp logo

isabella232 / swiftypeandroidexample Goto Github PK

View Code? Open in Web Editor NEW

This project forked from swiftype/swiftypeandroidexample

0.0 0.0 0.0 452 KB

Example application for the Swiftype Android library

Home Page: https://swiftype.com/mobile

License: Other

Java 100.00%

swiftypeandroidexample's Introduction

⚠️ This repository is deprecated ⚠️

We are no longer maintaining an Android library for Site Search. However, you can still build excellent native and mobile web experiences with Site Search APIs and clients. Thank you! - Elastic

Swiftype Android Example App for Swiftype Site Search

This example app shows how easy it is to get started with SwiftypeAndroid to add Swiftype-powered Site Search to your Android application.

Note: This client has been developed for the Swiftype Site Search API endpoints only. You may refer to the Swiftype Site Search API Documentation for additional context.

To run the sample application:

  1. Check out the code.

  2. Check out the SwiftypeAndroid git submodule.

    git submodule init git submodule update

  3. Start the Android Studio and open the SwiftypeAndroidExample/SwiftypeAndroidExample project.

  4. Add SwiftypeAndroidExample/SwiftypeAndroid as a module.

  5. Go to File -> Project Structure. Click SwiftypeAndroid -> Dependencies. Select "Export" on all Android Support libraries and apply the new settings. You should now be able to compile the project.

  6. Edit the SwiftypeAndroidExample/res/values/swiftype_config.xml file:

    1. Set your Engine Key in the engine_key parameter
    2. Update the search_content_provider_authority to be unique for your application.
    3. Set the document_types parameter value to @array/crawler_based if using a crawler-based engine or @array/wordpress if using a WordPress plugin-based engine.

    NOTE: If you make changes to the swiftype_config.xml file after the first run, make sure to increment the database_version.

  7. Click the Run button to launch the emulator.

Don't have a crawler-based or WordPress-based search engine yet? Go to swiftype.com, sign up if you haven't yet, and create a new engine.

License

This code is MIT licensed. See LICENSE.txt for details.

swiftypeandroidexample's People

Contributors

dilchenko avatar jasonstoltz avatar jonasll avatar qhoxie 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.