• Flask,  Python,  Solr

    Flask and Apache Solr 7.5 using HTML input for searching

    This post follows up the first one Flask and Apache Solr 7.5. Now we are going to several user inputs for returning values in from Solr. The code is at github: https://github.com/spawnmarvel/solrhttp A quick follow up on what we have: Flask is and Solr is running on localhost. The template Search.html has a input field and 4 radio buttons. The user enters a string of any kind and select’s in what field to search Solr. The fields for now is according to the schema we built, id, tag, plant and description. When the user enters a input it goes first to the view, the to the data access object (both…

    Comments Off on Flask and Apache Solr 7.5 using HTML input for searching
  • Flask,  Python,  Solr

    Flask and Apache Solr 7.5

    Lets develop a webapp with Solr. Short guide to Jinja2: http://jinja.pocoo.org/docs/2.10/ Jinja2 is a modern day templating language for Python developers. It was made after Django’s template. It is used to create HTML, XML or other markup formats that are returned to the user via an HTTP request. Sandboxed Execution: It provides a protected framework for automation of testing programs, whose behaviour is unknown and must be investigated. HTML Escaping: Jinja 2 has a powerful automatic HTML Escaping, which helps preventing Cross-site Scripting (XSS Attack). There are special characters like >,<,&, etc. which carry special meanings in the templates. So, if you want to use them as regular text in…

    Comments Off on Flask and Apache Solr 7.5