I am attempting to integrate Elasticsearch as a search engine for my static website. I use the Python package "Lektor" as my static website generator. I have been able to automate indexing all my webpages into Elasticsearch. Additionally, I am using Bootstrap to have a navigation bar on the top of the website. I have added the relevant search bar code from Bootstrap and it looks exactly like I want it to. My issue is with connecting the Bootstrap search bar to my Python code that queries the Elasticsearch cluster I have set up. I am hoping to process the search bar data and send it as an argument to my Python querying function. Is this possible? I know how to do this with Flask and setting up an endpoint, but in this case, I do not know how to set a specific endpoint for search that reacts to the search bar's form data.
Connecting Bootstrap search box with Python based search engine
170 Views Asked by Yash Bhalla At
0
There are 0 best solutions below
Related Questions in PYTHON
- How to store a date/time in sqlite (or something similar to a date)
- Instagrapi recently showing HTTPError and UnknownError
- How to Retrieve Data from an MySQL Database and Display it in a GUI?
- How to create a regular expression to partition a string that terminates in either ": 45" or ",", without the ": "
- Python Geopandas unable to convert latitude longitude to points
- Influence of Unused FFN on Model Accuracy in PyTorch
- Seeking Python Libraries for Removing Extraneous Characters and Spaces in Text
- Writes to child subprocess.Popen.stdin don't work from within process group?
- Conda has two different python binarys (python and python3) with the same version for a single environment. Why?
- Problem with add new attribute in table with BOTO3 on python
- Can't install packages in python conda environment
- Setting diagonal of a matrix to zero
- List of numbers converted to list of strings to iterate over it. But receiving TypeError messages
- Basic Python Question: Shortening If Statements
- Python and regex, can't understand why some words are left out of the match
Related Questions in HTML
- How to store a date/time in sqlite (or something similar to a date)
- How to use custom font during html to pdf conversion?
- Storing the preferred font-size in localStorage
- mp4 embedded videos within github pages website not loading
- Scrimba tutorial was working, suddenly stopped even trying the default
- Is there any way to glow this bulb image like a real light bulb
- With non-graphical maps in Leaflet, zoomDelta doesn't work
- What can I do to improve my coding on both html and css
- Uncaught TypeError: google.maps.LatLng is not a constructor at init (script.js:7:13)
- Bootstrap modal not showing at the desired position on a web page when the screen size is smaller
- Displaying a Movie List on a Website Using Jinja2 and Bootstrap
- How to redirect to thank you page after submitting a Google form embedded into a Google Site?
- Storing selected language in localStorage
- Fences (parenthesis, braces) in HTML and MathML
- Understanding Scroll Anchoring Behavoir
Related Questions in BOOTSTRAP-4
- Displaying a Movie List on a Website Using Jinja2 and Bootstrap
- I just cant make it work, HTML, JS and Firebase error
- enable overflown data visible outside the container
- Html + Css good response on computer (even in minimized mode) but bad on mobile
- n is not a constructor error for bs4.5.2 dropdown and jquery 3.5.1
- How to write HTML CSS code for a header navbar that too responsive
- Change Opacity of Bootstrap Button
- PhotoSwipe image position affected by other img elements in html on mobile
- Should i learn Bootstrap in 2024
- Having trouble sizing single resizable column with Bootstrap
- In Boostrap 4 how can I change the the translucency of toasts to fully opaque?
- Project was bootstrapped with an old unsupported version of tools while creating react app
- Tooltip positioned too high with data-bs-placement="top" in Bootstrap 5
- TypeError when using Popper with Bootstrap 4
- How can I generate a Business Model Canvas with Bootstrap Cards and integrate it as html in a qmd-file?
Related Questions in JINJA2
- how to control jinja loop using javascript
- how do ı connect html files each other with jinja?
- Visual Studio modifying code when running debugger, replacing == with a space in the middle
- "jinja2.exceptions.TemplateNotFound" error when attempting to access JavaScript file
- How to pass JSON with newline \n from flask backend to Jinja2 and JQuery frontend?
- sqlfluff: Undefined jinja template variable: 'dbt_utils'
- Use Better Jinja together with HTMLHint?
- Access variable in Jinja file from python module
- Automatically modify variables rendered in jinja2 template
- why jinja2's function FileSystemLoader() doesn't work
- 2nd flashed message cant be closed?
- Jinja templating of lists in Ansible vars files without 'max recursion depth reached' or blank items
- How call a function using onClick in a jinja/flask button
- Flask/Jinja, Multiple Template Inheritance, cannot inherit a block across multiple templates
- How to combine items from a Dictionary into a list of dictionaries based on matching key/value details
Related Questions in LEKTOR
- Is there a way in Lektor to paginate alphabetically?
- When using model inheritance, is there a way to provide a single alternative/translation for the shared parts?
- Filter blog posts by tag field
- Create a sub navigation tree on the left side in Lektor
- Using Github Actions with Lektor CMS
- How can I access attachment metadata within lektor templates?
- lektor server does not start under freebsd
- Read the fields of the container of a collection
- Encoding mailto: fields with Lektor, email cloaking with Lektor
- Is it possible to open Lektor admin interface in production/deployed mode?
- Lektor server doubles subfolder in url without obvious reason
- flowblock is shown in Admin view but not contentpage
- Lektor CMS : Can't get lektor-tags to work properly, The requested URL was not found on the server
- Render a Page object from a template
- How to implement search and filter in lektor
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?