picky-generators 2.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -114,7 +114,7 @@
114
114
  %code
115
115
  %pre
116
116
  :preserve
117
- BookSearch = Picky::Client.new :host => 'localhost', :port => 8080, :path => '/books/full'
117
+ BookSearch = Picky::Client.new :host => 'localhost', :port => 8080, :path => '/books'
118
118
 
119
119
  get '/search/full' do
120
120
  results = BookSearch.search params[:query], :ids => params[:ids], :offset => params[:offset]
@@ -9,14 +9,14 @@ class PickySearch < Application
9
9
 
10
10
  # How text is indexed.
11
11
  #
12
- default_indexing removes_characters: /[^a-zA-Z0-9\s\/\-\"\&\.]/,
13
- stopwords: /\b(and|the|of|it|in|for)\b/,
12
+ default_indexing removes_characters: /[^a-zA-Z0-9\s\/\-\"\&\.]/i,
13
+ stopwords: /\b(and|the|of|it|in|for)\b/i,
14
14
  splits_text_on: /[\s\/\-\"\&\.]/
15
15
 
16
16
  # How query text is preprocessed.
17
17
  #
18
- default_querying removes_characters: /[^a-zA-Z0-9\s\/\-\,\&\"\~\*\:]/, # Picky needs control chars *"~: to pass through.
19
- stopwords: /\b(and|the|of|it|in|for)\b/,
18
+ default_querying removes_characters: /[^a-zA-Z0-9\s\/\-\,\&\"\~\*\:]/i, # Picky needs control chars *"~: to pass through.
19
+ stopwords: /\b(and|the|of|it|in|for)\b/i,
20
20
  splits_text_on: /[\s\/\-\,\&]+/,
21
21
  maximum_tokens: 5, # Amount of tokens used in a search (5 = default).
22
22
  substitutes_characters_with: CharacterSubstituters::WestEuropean.new # Normalizes special user input, Ä -> Ae, ñ -> n etc.
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: picky-generators
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 2.0.0
5
+ version: 2.1.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Florian Hanke
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-03-28 00:00:00 +02:00
13
+ date: 2011-04-07 00:00:00 +10:00
14
14
  default_executable: picky-generate
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -32,7 +32,7 @@ dependencies:
32
32
  requirements:
33
33
  - - ~>
34
34
  - !ruby/object:Gem::Version
35
- version: 2.0.0
35
+ version: 2.1.0
36
36
  type: :runtime
37
37
  version_requirements: *id002
38
38
  - !ruby/object:Gem::Dependency
@@ -43,7 +43,7 @@ dependencies:
43
43
  requirements:
44
44
  - - ~>
45
45
  - !ruby/object:Gem::Version
46
- version: 2.0.0
46
+ version: 2.1.0
47
47
  type: :runtime
48
48
  version_requirements: *id003
49
49
  description: Generators for Picky.