Skip to content

Instantly share code, notes, and snippets.

View 28kayak's full-sized avatar
💭
happy searching

Kayak 28kayak

💭
happy searching
View GitHub Profile
# Online Python compiler (interpreter) to run Python online.
# Write Python 3 code in this online editor and run it.
from urllib.parse import urlparse, parse_qs, unquote
# the URL to parse
url = "http://localhost:8983/solr/techproducts/select?q=id:SP2514N&fl=id,name"
#parse the URL
parsed_url = urlparse(url)
<input type="text" id="searchInput" placeholder="Type your search query">
<div id="searchResults"></div>
<script>
var searchInput = document.getElementById("searchInput");
var searchResults = document.getElementById("searchResults");
searchInput.addEventListener("keyup", function() {
var query = searchInput.value;