es-backbone

ElasticSearch Backbone library for quickly building Faceted Search front ends.

  • 所有者: Automattic/es-backbone
  • 平台:
  • 許可證:
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

es-backbone.js

ElasticSearch Backbone/Mustache library for quickly building Faceted Search front ends.

Overview

If your data is already indexed and you know a bit about the ElasticSearch API, then this library should allow you to build an interactive front end for doing faceted search. I've built three so far, and the last one took 35 minutes to build, debug, and deploy.

It also uses flot to provide pretty interactive graphs as inspired by Shay's post here:
http://www.elasticsearch.org/2011/05/13/data-visualization-with-elasticsearch-and-protovis/

See examples/simple/simple.php for all the library dependencies. Those paths are probably not the best places to serve them from.

Where to Start

In the examples directory is a simple example (but it has no server to work with). To get it working grep through the files or "TODO" and "OPTIONAL" to figure out what you need to do.

If you have a public ES endpoint I'd love to have a working example to show off in this repository.

Rough description of the Backbone Objects

Models:

  • Search Results Model: esbbSearchResultsModel
  • Search Query Model: esbbSearchQueryModel

Views:

  • View for search query input: esbbSearchBarView
  • View for displaying search results: esbbSearchResultsView
  • View for a timeline of search results (date histogram facet): esbbSearchFacetTimelineView
  • View for a pie chart of search results (term and range facets): esbbSearchFacetPieView
  • View for values of a single facet (term facet)esbbSearchFacetSelectView
  • View for adding/removing filters: esbbSearchFilterSelectView
  • View for adding a date range filter: esbbSearchDateRangePickerView
  • View for creating a URL to the current page: esbbSearchURLView

Versions

pre-0.2: Many improvements to the lib, but haven't yet update the example code

  • added view for sorting results: esbbSortView
  • added esbbSearchFilterTermsSelectorView to have one text entry field per filter rather than a single box for all filters
  • added pushstate support to modify URL in address bar
  • Timeline View can be displayed with the bars shown horizontally so it can fit in the sidebar
  • some changes to search results formatting
  • fixed bugs in search spinner, fades out old results while new search in process
  • Number of results properly displayed
  • added debugging info on query syntax errors

0.1 Initial Release. Works for me. ;)

主要指標

概覽
名稱與所有者Automattic/es-backbone
主編程語言JavaScript
編程語言JavaScript (語言數: 3)
平台
許可證
所有者活动
創建於2012-06-18 21:48:00
推送於2014-07-24 16:13:22
最后一次提交2014-07-24 16:12:12
發布數0
用户参与
星數103
關注者數128
派生數19
提交數9
已啟用問題?
問題數6
打開的問題數2
拉請求數1
打開的拉請求數0
關閉的拉請求數0
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?