Query Interface using Django

Slides:



Advertisements
Similar presentations
Presenter: James Huang Date: Sept. 29,  HTTP and WWW  Bottle Web Framework  Request Routing  Sending Static Files  Handling HTML  HTTP Errors.
Advertisements

Introduction to MVC Adding a View Page NTPCUG Tom Perkins, Ph.D.
SharePoint User Group Chicago: 1/24/2013 SharePoint 2013 Search Overview.
Ruby on Rails Model of MVC. Model-View-Controller Paradigm A way of organizing a software system Benefits: Isolation of business logic from the user interface.
ASP Tutorial. What is ASP? ASP (Active Server Pages) is a Microsoft technology that enables you to make dynamic and interactive web pages. –ASP usually.
Searching The Web Search Engines are computer programs (variously called robots, crawlers, spiders, worms) that automatically visit Web sites and, starting.
IST NeOn-project.org The Semantic Web is growing… #SW Pages Lee, J., Goodwin, R. (2004) The Semantic.
Best Practices for Website Design & Web Content Management.
Web Page Behavior IS 373—Web Standards Todd Will.
Dynamic Web Pages Bert Wachsmuth. Review  Internet, IP addresses, ports, client-server, http, smtp  HTML, XHTML, XML  Style Sheets, external, internal,
Python and Web Programming
Tutorial 8 Sharing, Integrating and Analyzing Data
LHCbPR V2 Sasha Mazurov, Amine Ben Hammou, Ben Couturier 5th LHCb Computing Workshop
1 Agenda Overview Review Roles Lists Libraries Columns.
An Introduction to ASP.NET Web Pages 2 Module 1: Webmatrix Installation and Your First Web Site Tom Perkins.
Search Engine Optimization for Silverlight Brad Abrams
Adobe Dreamweaver CS3 Revealed CHAPTER ONE: GETTING STARTED WITH DREAMWEAVER.
Pittsburgh Java User Group– Dec Java PureFaces: A JSF Framework Extension.
Classroom User Training June 29, 2005 Presented by:
Tutorial 10 Adding Spry Elements and Database Functionality Dreamweaver CS3 Tutorial 101.
HTML, XHTML, and CSS Chapter 12 Creating and Using XML Documents.
Tutorial 121 Creating a New Web Forms Page You will find that creating Web Forms is similar to creating traditional Windows applications in Visual Basic.
HTML Hyper Text Markup Language A simple introduction.
SEO  What is it?  Seo is a collection of techniques targeted towards increasing the presence of a website on a search engine.
Enabling High-Quality Printing in Web Applications
Lesson 19: Site Development with FrontPage 2003 – Advanced Features.
McLean HIGHER COMPUTER NETWORKING Lesson 7 Search engines Description of search engine methods.
C# AND ASP.NET What will I do in this course?. MAJOR TOPICS Learn to program in the C# language with the Visual Studio IDE (Interactive Development Environment)
Okalo Daniel Ikhena Dr. V. Z. Këpuska December 7, 2007.
CS 4720 Dynamic Web Applications CS 4720 – Web & Mobile Systems.
Introduction to MVC Introduction NTPCUG Tom Perkins, Ph.D.
Solutions using Microsoft Content Management Server 2002 Connector for SharePoint Technologies Sue Corke Mark Harrison Microsoft UK.
Access Tutorial 7 Web Integration. Overview Note: We’re only doing Session 7.1 (page AC ) and Session 8.1 and 8.2 Hand-in for lab 7: Tutorial.
Design a full-text search engine for a website based on Lucene
Microsoft FrontPage 2003 Illustrated Complete Integrating a Database with a Web Site.
We now will look at options for saving searches in CINAHL. We have accessed the Results for Chloroquine AND Pyrimethamine AND Sulfadoxine search. We now.
HTML Overview Part 5 – JavaScript 1. Scripts 2  Scripts are used to add dynamic content to a web page.  Scripts consist of a list of commands that execute.
Centralized Logfile Search (a.k.a. Tracing) Vito Baggiolini with Gergo Horanyi, Felix Ehm, Stephen Page.
INTRODUCTION TO HTML5 New HTML5 User Interface and Attributes.
HINDU STYLE PORTFOLIO TEMPLATE
UCLA Office of Instructional Development Web Site Redesign May 20, 2005.
Setting up a search engine KS 2 Search: appreciate how results are selected.
Automated Access to Statistical Facts via Statline4 Web Services Olav ten Bosch Statistics Netherlands UN-ECE conference, Bratislava April.
: Information Retrieval อาจารย์ ธีภากรณ์ นฤมาณนลิณี
Navigation Framework using CF Architecture for a Client-Server Application using the open standards of the Web presented by Kedar Desai Differential Technologies,
Creating Web Pages with Links, Images, and Embedded Style Sheets
JavaScript Invented 1995 Steve, Tony & Sharon. A Scripting Language (A scripting language is a lightweight programming language that supports the writing.
Joomla Awdhesh Kumar Singsys Pte Ltd. What is Joomla? Joomla is an award-winning content management system (CMS), which enables you to build Web sites.
Making the website. Get your folders sorted first Create a new folder in “N” called “My hockey website” Create folders inside called “Documents”, “images”
Microsoft FrontPage 2003 Illustrated Complete Creating a Web Site.
Section 10.1 Define scripting
Advanced HTML Tags:.
Search Engine Optimization
Magento Development Company
Creating Engaging Websites
Play Framework: Introduction
IBM DB2 Technology Explorer
We now will look at options for saving searches in CINAHL
1 2 3 Here we are on the Ohio Web Library’s home page. To get to Business Source Premier, use the following steps: 1. Go to Ohio Web Library 2. Click on.
Crawling with Heritrix
Creating web sites from scratch using ASPX model
Indexing with Elasticsearch
Lecture 4: HTML/CSS Lab Wednesday February 1, /12/2019
Academic & More Group 4 谢知晖 王逸雄 郭嘉宋 程若愚.
Learn ELK in Docker in 90 minutes
Indexing with ElasticSearch
INTELLIGENT BROWSERS Cenk Ursavas.
Model View Controller (MVC)
Presentation transcript:

Query Interface using Django Shaurya Rohatgi and Dr. Lee Giles Special Thanks to - Agnese Chiatti

Recap Crawling the necessary contents with Scrapy Dumped everything into data.jl Indexed data.jl using Python api for ElasticSearch Time to create your own interface!

Test & Trials from Kibana First query for a specific keyword GET ist441-test-master/_search { "query": { "match": {"content":"citeseer"} }

Test & Trials from Kibana First Adding Text Highlighting GET ist441-test-master/_search { "query": { "match": {"content":"project"} }, "highlight" : { "fields" : { "content" : {} }

Django Web Apps in a nutshell Python scripts are run as backend Front-end is handled through HTML and CSS Project with specific folder structure We are interested in models.py, views.py and HTML templates specifically For more details you can check out the docs (we are using version 1.5)

Visit your baseline search page From a browser (in VLABS or other classroom computer) visit: http://ist441.ist.psu.edu:50 + team no e. g. http://ist441.ist.psu.edu:5001 for team 1 http://ist441.ist.psu.edu:5010 for team 10

models.py under /data/teamno/interface/rsc/models.py Defines the “database” object that you will be dealing with Here you can model the attributes your search results will have … as Python objects

views.py under /data/teamno/interface/rsc/views.py Defines dynamics (i.e., which HTML page is viewed and when) through Python methods Thus, we can use the Elasticsearch API for Python To link the interface we the Lucene index we created last time

What you will need to change for this demo Your team’s Elasticsearch port number -- line 11 Your index name (based on the index created during the last tutorial) -- line 14 Elastic port 9201 for team01, 9202 for team02 . .

Adding the Pagination Feature

The actual HTML interface All HTML templates used for this demo are stored under /data/teamno/interface/templates rsc/index.html is the main page rsc/htmlresult.html handles the look of your result list

Text search and Highlighting in action SERP Query Interface Landing Page

Take-home message After this basic tutorial you should be able to: Link the static HTML pages you previously crawled and indexed to a Web interface Play around with the search bar to verify that you get the same results as from the Kibana console Next… You can go ahead and add your own Logo, custom interface features gradually and check the results as you go

Questions?