Skip to content

Commit

Permalink
+ doc
Browse files Browse the repository at this point in the history
  • Loading branch information
floere committed Oct 30, 2010
1 parent 8c57f10 commit 1090a0f
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions server/lib/picky/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
class Application
class << self

# Returns a configured tokenizer.
# Returns a configured tokenizer that
# is used for indexing by default.
#
def default_indexing options = {}
indexing.default_tokenizer options
end

# Returns a configured tokenizer.
# Returns a configured tokenizer that
# is used for querying by default.
#
def default_querying options = {}
querying.default_tokenizer options
Expand All @@ -18,8 +20,12 @@ def default_querying options = {}
# Routes.
#
delegate :route, :root, :to => :routing
delegate :type, :field, :to => :indexing
def index *args; self.type *args; end
# Index, Field.
#
# TODO Rename category.
#
delegate :field, :to => :indexing
def index *args; indexing.define_index *args; end

# An application simply delegates to the routing to handle a request.
#
Expand Down

0 comments on commit 1090a0f

Please sign in to comment.