No. 371, Python distributed crawler build search engine Scrapy explaining-elasticsearch (search engine) with Django implementation of my search and popular
The simple implementation principle of my search elements
We can use JS to achieve, first use JS to get the input of the search term
Set an array to store search terms,
Determine if the search term exists in the array if the original word is deleted, re-place the new word at the front of the array
If it does not exist, simply place the new word in front of the array, and the loop array displays the result
Popular Search
Implementation principle, when the user searches for a word, you can save to the database, and then record the number of searches,
Use the most searched words of the Redis cache to update the cache over time
Note: Django combines Scrapy's Open source project to learn
Django-dynamic-scraper
Https://github.com/holgerd77/django-dynamic-scraper
No. 371, Python distributed crawler build search engine Scrapy explaining-elasticsearch (search engine) with Django implementation of my search and popular search