Top Banner
SEARCHLOGIC
24

Searchlogic

Sep 13, 2014

Download

Technology

A brief introduction to searchlogic http://github.com/binarylogic/searchlogic/.
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Searchlogic

SEARCHLOGIC

ActiveRecord extension that allows you to search using a hash

Provides an object based interface to constructing hash values

Paginationsorting helpers

Ben Johnson aka binarylogichttpbinarylogiccomhttpgithubcombinarylogic

IsolationEncapsulationIntegration

View helpers let you modify 4 aspects of your results

1 Order by single column or array of columns order_by2 Descend or ascend yr data order_as3 Change how many items are on a page per_page4 Paginate through the reults page

Actions come in three different types link links amp select

order_by_link(first_name)order_by_link([first_name last_name])order_by_link(orders =gt total)order_by_link([orders =gt total first_name])Note Automatically alternates between ascdescpage_link(10)page_select

Documentationhttpsearchlogicrubyforgeorg

Tutorialhttpwwwbinarylogiccom200897tutorial-pagination-ordering-and-searching-with-searchlogic

Live example of the tutorial (with source)httpsearchlogic_examplebinarylogiccom

Page 2: Searchlogic

ActiveRecord extension that allows you to search using a hash

Provides an object based interface to constructing hash values

Paginationsorting helpers

Ben Johnson aka binarylogichttpbinarylogiccomhttpgithubcombinarylogic

IsolationEncapsulationIntegration

View helpers let you modify 4 aspects of your results

1 Order by single column or array of columns order_by2 Descend or ascend yr data order_as3 Change how many items are on a page per_page4 Paginate through the reults page

Actions come in three different types link links amp select

order_by_link(first_name)order_by_link([first_name last_name])order_by_link(orders =gt total)order_by_link([orders =gt total first_name])Note Automatically alternates between ascdescpage_link(10)page_select

Documentationhttpsearchlogicrubyforgeorg

Tutorialhttpwwwbinarylogiccom200897tutorial-pagination-ordering-and-searching-with-searchlogic

Live example of the tutorial (with source)httpsearchlogic_examplebinarylogiccom

Page 3: Searchlogic

Provides an object based interface to constructing hash values

Paginationsorting helpers

Ben Johnson aka binarylogichttpbinarylogiccomhttpgithubcombinarylogic

IsolationEncapsulationIntegration

View helpers let you modify 4 aspects of your results

1 Order by single column or array of columns order_by2 Descend or ascend yr data order_as3 Change how many items are on a page per_page4 Paginate through the reults page

Actions come in three different types link links amp select

order_by_link(first_name)order_by_link([first_name last_name])order_by_link(orders =gt total)order_by_link([orders =gt total first_name])Note Automatically alternates between ascdescpage_link(10)page_select

Documentationhttpsearchlogicrubyforgeorg

Tutorialhttpwwwbinarylogiccom200897tutorial-pagination-ordering-and-searching-with-searchlogic

Live example of the tutorial (with source)httpsearchlogic_examplebinarylogiccom

Page 4: Searchlogic

Paginationsorting helpers

Ben Johnson aka binarylogichttpbinarylogiccomhttpgithubcombinarylogic

IsolationEncapsulationIntegration

View helpers let you modify 4 aspects of your results

1 Order by single column or array of columns order_by2 Descend or ascend yr data order_as3 Change how many items are on a page per_page4 Paginate through the reults page

Actions come in three different types link links amp select

order_by_link(first_name)order_by_link([first_name last_name])order_by_link(orders =gt total)order_by_link([orders =gt total first_name])Note Automatically alternates between ascdescpage_link(10)page_select

Documentationhttpsearchlogicrubyforgeorg

Tutorialhttpwwwbinarylogiccom200897tutorial-pagination-ordering-and-searching-with-searchlogic

Live example of the tutorial (with source)httpsearchlogic_examplebinarylogiccom

Page 5: Searchlogic

Ben Johnson aka binarylogichttpbinarylogiccomhttpgithubcombinarylogic

IsolationEncapsulationIntegration

View helpers let you modify 4 aspects of your results

1 Order by single column or array of columns order_by2 Descend or ascend yr data order_as3 Change how many items are on a page per_page4 Paginate through the reults page

Actions come in three different types link links amp select

order_by_link(first_name)order_by_link([first_name last_name])order_by_link(orders =gt total)order_by_link([orders =gt total first_name])Note Automatically alternates between ascdescpage_link(10)page_select

Documentationhttpsearchlogicrubyforgeorg

Tutorialhttpwwwbinarylogiccom200897tutorial-pagination-ordering-and-searching-with-searchlogic

Live example of the tutorial (with source)httpsearchlogic_examplebinarylogiccom

Page 6: Searchlogic

IsolationEncapsulationIntegration

View helpers let you modify 4 aspects of your results

1 Order by single column or array of columns order_by2 Descend or ascend yr data order_as3 Change how many items are on a page per_page4 Paginate through the reults page

Actions come in three different types link links amp select

order_by_link(first_name)order_by_link([first_name last_name])order_by_link(orders =gt total)order_by_link([orders =gt total first_name])Note Automatically alternates between ascdescpage_link(10)page_select

Documentationhttpsearchlogicrubyforgeorg

Tutorialhttpwwwbinarylogiccom200897tutorial-pagination-ordering-and-searching-with-searchlogic

Live example of the tutorial (with source)httpsearchlogic_examplebinarylogiccom

Page 7: Searchlogic

View helpers let you modify 4 aspects of your results

1 Order by single column or array of columns order_by2 Descend or ascend yr data order_as3 Change how many items are on a page per_page4 Paginate through the reults page

Actions come in three different types link links amp select

order_by_link(first_name)order_by_link([first_name last_name])order_by_link(orders =gt total)order_by_link([orders =gt total first_name])Note Automatically alternates between ascdescpage_link(10)page_select

Documentationhttpsearchlogicrubyforgeorg

Tutorialhttpwwwbinarylogiccom200897tutorial-pagination-ordering-and-searching-with-searchlogic

Live example of the tutorial (with source)httpsearchlogic_examplebinarylogiccom

Page 8: Searchlogic

Actions come in three different types link links amp select

order_by_link(first_name)order_by_link([first_name last_name])order_by_link(orders =gt total)order_by_link([orders =gt total first_name])Note Automatically alternates between ascdescpage_link(10)page_select

Documentationhttpsearchlogicrubyforgeorg

Tutorialhttpwwwbinarylogiccom200897tutorial-pagination-ordering-and-searching-with-searchlogic

Live example of the tutorial (with source)httpsearchlogic_examplebinarylogiccom

Page 9: Searchlogic

Documentationhttpsearchlogicrubyforgeorg

Tutorialhttpwwwbinarylogiccom200897tutorial-pagination-ordering-and-searching-with-searchlogic

Live example of the tutorial (with source)httpsearchlogic_examplebinarylogiccom