re7jenskramer

28
Jens Krämer http://www.jkraemer.net/ http://www.webit.de/ Rails Full Text Search with Ferret

Upload: guest6850dd

Post on 19-Jul-2015

244 views

Category:

Technology


0 download

TRANSCRIPT

Jens Krämer

http://www.jkraemer.net/

http://www.webit.de/

Rails Full Text Search with Ferret

$ gem install ferret

http://ferret.davebalmain.com/

The Problem

Index

Documents

Fields

Indexing

Searching

Ferret QueryLanguage

Basic Queries

● fox

● w?ldcar*

● quick~0.5

● [20050725 20050905}

● "quick|speedy|fast <> fox"

● "quick|fast fox"~2

Combined queries

● (quick fast) AND fox

● +(qui* fast) -brown +fox

● description:(quick fast) AND name:fox

● content:rails title:rails^5 +date: >= 20070101

Ferret Query API

Sorting

Ferret Browser

+

Basic Usage

Field Options

Custom Fields

ActiveRecord Options

Lazy Loading

multi_search

Controller

View

Extended Search

Extended Search

Mongrel

Database

DRb

Mongrel Mongrel Mongrel

Production Mode

Index

Production Mode

In the Wild

omdb. or g

xi ng. c om

bl ogbl ogs . c om. br

l i ngr . c om

al t l aw. or g

Pe r i t or Mi ne a ( pe r i t or . c om)

s ac hs e n- ge s e t z e . de

Further Reading

f e r r e t - t al k@r ubyf or ge . or g

f e r r e t . dave bal mai n. c om

pr oj e c t s . j kr ae me r . ne t / ac t s _as _f e r r e t

Ferret Shortcut

Lucene in Action

?