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
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
sorl企业级检索服务部署-快速检索 (1267个子文件)
tlog.0000000000000000231 22.11MB
zoo.cfg 975B
zoo.cfg 975B
.classpath 509B
org.eclipse.wst.common.component 569B
org.eclipse.wst.jsdt.ui.superType.container 49B
jquery-ui.min.css 17KB
jquery-ui.min.css 17KB
common.css 14KB
common.css 14KB
schema.css 14KB
schema.css 14KB
chosen.css 14KB
chosen.css 14KB
cloud.css 12KB
cloud.css 12KB
replication.css 9KB
replication.css 9KB
logging.css 8KB
logging.css 8KB
collections.css 7KB
collections.css 7KB
dataimport.css 7KB
dataimport.css 7KB
menu.css 7KB
menu.css 7KB
analysis.css 6KB
analysis.css 6KB
plugins.css 5KB
plugins.css 5KB
index.css 5KB
index.css 5KB
stream.css 4KB
stream.css 4KB
cores.css 4KB
cores.css 4KB
dashboard.css 4KB
dashboard.css 4KB
segments.css 4KB
segments.css 4KB
threads.css 3KB
threads.css 3KB
documents.css 3KB
documents.css 3KB
main.css 3KB
main.css 3KB
query.css 3KB
query.css 3KB
jquery-ui.structure.min.css 2KB
jquery-ui.structure.min.css 2KB
suggestions.css 2KB
suggestions.css 2KB
files.css 1KB
files.css 1KB
java-properties.css 1KB
java-properties.css 1KB
jquery.autocomplete.css 828B
jquery.autocomplete.css 828B
stopword.dic 8KB
stopword.dic 8KB
ext.dic 41B
ext.dic 41B
_hb.dii 71B
_hc.dii 71B
_h9.dii 71B
_ha.dii 71B
_h9.dim 254KB
_hc.dim 173KB
_hb.dim 165KB
_ha.dim 93KB
离线地图server-map与sorl离线数据搜索引擎部署使用文档.doc 802KB
离线地图server-map与sorl离线数据搜索引擎部署使用文档.doc 802KB
_h9_Lucene50_0.doc 376KB
_hb_Lucene50_0.doc 177KB
_hc_Lucene50_0.doc 150KB
_ha_Lucene50_0.doc 128KB
_h9_Lucene70_0.dvd 11.74MB
_hb_Lucene70_0.dvd 6.18MB
_hc_Lucene70_0.dvd 4.92MB
_ha_Lucene70_0.dvd 4.56MB
_hb_Lucene70_0.dvm 2KB
_h9_Lucene70_0.dvm 2KB
_ha_Lucene70_0.dvm 2KB
_hc_Lucene70_0.dvm 2KB
_h9.fdt 4.31MB
_hb.fdt 2.25MB
_hc.fdt 1.77MB
_ha.fdt 1.69MB
_h9.fdx 2KB
_hb.fdx 976B
_hc.fdx 838B
_ha.fdx 701B
_hb.fnm 2KB
_h9.fnm 2KB
_ha.fnm 2KB
_hc.fnm 2KB
loader-light.gif 2KB
loader-light.gif 2KB
loader.gif 2KB
loader.gif 2KB
共 1267 条
- 1
- 2
- 3
- 4
- 5
- 6
- 13
资源评论
wenjie4892543
- 粉丝: 8
- 资源: 56
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功