README.txt 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. Introduction
  2. ------------
  3. Solr Search Velocity Templates
  4. A quick demo of using Solr using http://wiki.apache.org/solr/VelocityResponseWriter
  5. You typically access these templates via:
  6. http://localhost:8983/solr/collection1/browse
  7. It's called "browse" because you can click around with your mouse
  8. without needing to type any search terms. And of course it
  9. also works as a standard search app as well.
  10. Known Limitations
  11. -----------------
  12. * The /browse and the VelocityResponseWriter component
  13. serve content directly from Solr, which usually requires
  14. Solr's HTTP API to be exposed. Advanced users could
  15. potentially access other parts of Solr directly.
  16. * There are some hard coded fields in these templates.
  17. Since these templates live under conf, they should be
  18. considered part of the overall configuration, and
  19. must be coordinated with schema.xml and solrconfig.xml
  20. Velocity Info
  21. -------------
  22. Java-based template language.
  23. It's nice in this context because change to the templates
  24. are immediately visible in browser on the next visit.
  25. Links:
  26. http://velocity.apache.org
  27. http://wiki.apache.org/velocity/
  28. http://velocity.apache.org/engine/releases/velocity-1.7/user-guide.html
  29. File List
  30. ---------
  31. System and Misc:
  32. VM_global_library.vm - Macros used other templates,
  33. exact filename is important for Velocity to see it
  34. error.vm - shows errors, if any
  35. debug.vm - includes toggle links for "explain" and "all fields"
  36. activated by debug link in footer.vm
  37. README.txt - this file
  38. Overall Page Composition:
  39. browse.vm - Main entry point into templates
  40. layout.vm - overall HTML page layout
  41. head.vm - elements in the <head> section of the HTML document
  42. header.vm - top section of page visible to users
  43. footer.vm - bottom section of page visible to users,
  44. includes debug and help links
  45. main.css - CSS style for overall pages
  46. see also jquery.autocomplete.css
  47. Query Form and Options:
  48. query_form.vm - renders query form
  49. query_group.vm - group by fields
  50. e.g.: Manufacturer or Poplularity
  51. query_spatial.vm - select box for location based Geospacial search
  52. Spelling Suggestions:
  53. did_you_mean.vm - hyperlinked spelling suggestions in results
  54. suggest.vm - dynamic spelling suggestions
  55. as you type in the search form
  56. jquery.autocomplete.js - supporting files for dynamic suggestions
  57. jquery.autocomplete.css - Most CSS is defined in main.css
  58. Search Results, General:
  59. (see also browse.vm)
  60. tabs.vm - provides navigation to advanced search options
  61. pagination_top.vm - paging and staticis at top of results
  62. pagination_bottom.vm - paging and staticis at bottom of results
  63. results_list.vm
  64. hit.vm - called for each matching doc,
  65. decides which template to use
  66. hit_grouped.vm - display results grouped by field values
  67. product_doc.vm - display a Product
  68. join_doc.vm - display a joined document
  69. richtext_doc.vm - display a complex/misc. document
  70. hit_plain.vm - basic display of all fields,
  71. edit results_list.vm to enable this
  72. Search Results, Facets & Clusters:
  73. facets.vm - calls the 4 facet and 1 cluster template
  74. facet_fields.vm - display facets based on field values
  75. e.g.: fields specified by &facet.field=
  76. facet_queries.vm - display facets based on specific facet queries
  77. e.g.: facets specified by &facet.query=
  78. facet_ranges.vm - display facets based on ranges
  79. e.g.: ranges specified by &facet.range=
  80. facet_pivot.vm - display pivot based facets
  81. e.g.: facets specified by &facet.pivot=
  82. cluster.vm - if clustering is available
  83. then call cluster_results.vm
  84. cluster_results.vm - actual rendering of clusters