Coder Social home page Coder Social logo

flask-opensearch's People

Contributors

bjgill avatar galbwe avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

bjgill

flask-opensearch's Issues

Could you provide a minimal working search app UI with this repo?

Hi, love this repo great work. I am a datascienctist handy with python's machine learning stuff but new to flask. I would like to build a simple flask app based on opensearch backend to search a vast amount of text documents. Would it be possible to provide a working search app in this repo? With some minimal dataset to search and a simple UI? (similar to this: https://github.com/radoondas/flask-app-search ) If you can point me to the right resources I can may be be of some assistance but the flask app stuff is new to me... thx hugo

Support passing opensearch auth parameters to constructor and init_app

Allow all of the following setups, and other cases from the tests:

app.config["OPENSEARCH_HOST"] = "localhost"
app.config["OPENSEARCH_USER"] = "admin"
app.config["OPENSEARCH_PASSWORD"] = "admin"

opensearch = FlaskOpenSearch(
    app=app,
    use_ssl=True,
    verify_certs=False,
    ssl_assert_hostname=False,
    ssl_show_warn=False,
)
opensearch = FlaskOpenSearch(
    app=app,
    host="localhost",
    user="admin",
    password="admin",
    use_ssl=True,
    verify_certs=False,
    ssl_assert_hostname=False,
    ssl_show_warn=False,
)
opensearch = FlaskOpenSearch()
opensearch.init_app(
    app=app,
    host="localhost",
    user="admin",
    password="admin",
    use_ssl=True,
    verify_certs=False,
    ssl_assert_hostname=False,
    ssl_show_warn=False,
)

In the last two cases, host, user and password should be saved in configuration for the app being initialized.

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.