Introduction
------------
Solr Search Velocity Templates
A quick demo of using Solr using http://wiki.apache.org/solr/VelocityResponseWriter
You typically access these templates via:
http://localhost:8983/solr/collection1/browse
It's called "browse" because you can click around with your mouse
without needing to type any search terms. And of course it
also works as a standard search app as well.
Known Limitations
-----------------
* The /browse and the VelocityResponseWriter component
serve content directly from Solr, which usually requires
Solr's HTTP API to be exposed. Advanced users could
potentially access other parts of Solr directly.
* There are some hard coded fields in these templates.
Since these templates live under conf, they should be
considered part of the overall configuration, and
must be coordinated with schema.xml and solrconfig.xml
Velocity Info
-------------
Java-based template language.
It's nice in this context because change to the templates
are immediately visible in browser on the next visit.
Links:
http://velocity.apache.org
http://wiki.apache.org/velocity/
http://velocity.apache.org/engine/releases/velocity-1.7/user-guide.html
File List
---------
System and Misc:
VM_global_library.vm - Macros used other templates,
exact filename is important for Velocity to see it
error.vm - shows errors, if any
debug.vm - includes toggle links for "explain" and "all fields"
activated by debug link in footer.vm
README.txt - this file
Overall Page Composition:
browse.vm - Main entry point into templates
layout.vm - overall HTML page layout
head.vm - elements in the <head> section of the HTML document
header.vm - top section of page visible to users
footer.vm - bottom section of page visible to users,
includes debug and help links
main.css - CSS style for overall pages
see also jquery.autocomplete.css
Query Form and Options:
query_form.vm - renders query form
query_group.vm - group by fields
e.g.: Manufacturer or Poplularity
query_spatial.vm - select box for location based Geospacial search
Spelling Suggestions:
did_you_mean.vm - hyperlinked spelling suggestions in results
suggest.vm - dynamic spelling suggestions
as you type in the search form
jquery.autocomplete.js - supporting files for dynamic suggestions
jquery.autocomplete.css - Most CSS is defined in main.css
Search Results, General:
(see also browse.vm)
tabs.vm - provides navigation to advanced search options
pagination_top.vm - paging and staticis at top of results
pagination_bottom.vm - paging and staticis at bottom of results
results_list.vm
hit.vm - called for each matching doc,
decides which template to use
hit_grouped.vm - display results grouped by field values
product_doc.vm - display a Product
join_doc.vm - display a joined document
richtext_doc.vm - display a complex/misc. document
hit_plain.vm - basic display of all fields,
edit results_list.vm to enable this
Search Results, Facets & Clusters:
facets.vm - calls the 4 facet and 1 cluster template
facet_fields.vm - display facets based on field values
e.g.: fields specified by &facet.field=
facet_queries.vm - display facets based on specific facet queries
e.g.: facets specified by &facet.query=
facet_ranges.vm - display facets based on ranges
e.g.: ranges specified by &facet.range=
facet_pivot.vm - display pivot based facets
e.g.: facets specified by &facet.pivot=
cluster.vm - if clustering is available
then call cluster_results.vm
cluster_results.vm - actual rendering of clusters
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
本项目是基于Apache Nutch和Solr开发的AJAX页面内容爬取与处理设计源码,主要使用Java进行开发。项目共包含1064个文件,其中Java源代码文件458个,XML配置文件181个,文本文件81个,HTML页面文件56个,JPG图片文件56个,VM文件32个,CRC文件26个,测试文件13个,JAR打包文件12个,以及Properties配置文件9个。该系统通过Apache Nutch和Solr以及Htmlunit, Selenium WebDriver等组件扩展,实现了对于AJAX加载类型页面的完整页面内容爬取、解析、清洗、持久化、全文检索等处理。项目结构清晰,代码注释详尽,适合用于学习和研究Apache Nutch和Solr在AJAX页面内容爬取与处理中的应用。
资源推荐
资源详情
资源评论
收起资源包目录
基于Apache Nutch和Solr的AJAX页面内容爬取与处理设计源码 (1068个子文件)
webpage.avsc 11KB
host.avsc 1KB
startup.bat 19B
zoo.cfg 501B
.classpath 5KB
command 348B
scripts.conf 921B
elasticsearch.conf 848B
crawl 5KB
.data.crc 540B
.part-00000.crc 480B
.data.crc 408B
.data.crc 304B
.data.crc 208B
.data.crc 196B
.part-00000.crc 52B
.data.crc 52B
.data.crc 24B
.data.crc 24B
.data.crc 20B
.part-00000.crc 20B
.index.crc 12B
.index.crc 12B
.index.crc 12B
.index.crc 12B
.index.crc 12B
.index.crc 12B
.data.crc 12B
.index.crc 12B
.index.crc 12B
.part-00000.crc 12B
.index.crc 12B
.segments.crc 12B
.index.crc 12B
.index.done.crc 8B
nutch-style.css 3KB
main.css 3KB
jquery.autocomplete.css 797B
data 66KB
data 50KB
data 37KB
data 25KB
data 23KB
data 5KB
data 2KB
data 2KB
data 1KB
data 139B
deletable 4B
deletable 4B
stopword.dic 129B
word97.doc 8KB
index.done 0B
plugin.dtd 7KB
parse-plugins.dtd 347B
_0.f0 19B
_j.f0 19B
_0.f1 19B
_j.f1 19B
_0.f2 19B
_j.f2 19B
_0.f3 19B
_j.f3 19B
_0.f4 19B
_j.f4 19B
_0.f5 19B
_j.f5 19B
_0.fdt 2KB
_j.fdt 2KB
_0.fdx 152B
_j.fdx 152B
_0.fnm 66B
_j.fnm 66B
_0.frq 8KB
_j.frq 8KB
nutch_logo_tm.gif 3KB
.gitignore 203B
.gitignore 160B
.gitignore 110B
.gitignore 30B
.gitignore 23B
.gitignore 15B
.gitignore 8B
Apache_Nutch_Solr_Solution_with_AJAX_support.html 78KB
microformats_reltag_test.html 37KB
nested_spider_trap.html 24KB
nutch.html 19KB
parse_embedded_js_test.html 11KB
SeedPage.html 3KB
CrawlsPage.html 3KB
SeedListsPage.html 2KB
InstancesPage.html 2KB
CrawlPanel.html 2KB
VerticalMenu.html 2KB
DashboardPage.html 2KB
InstancePanel.html 2KB
package.html 2KB
AbstractBasePage.html 1KB
rdf.html 1KB
package.html 1KB
共 1068 条
- 1
- 2
- 3
- 4
- 5
- 6
- 11
资源评论
沐知全栈开发
- 粉丝: 4745
- 资源: 3373
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功