Permalink
Browse files

Corrected examples using 'edgeNGram' to 'edge_ngram'

  • Loading branch information...
clintongormley committed Oct 11, 2012
1 parent e20df87 commit 2bf1e2a773624f7b1fe409f501995e8ea999fb1d
Showing with 3 additions and 3 deletions.
  1. +2 −2 lib/Elastic/Model.pm
  2. +1 −1 lib/Elastic/Model/Meta/Class/Model.pm
View
@@ -119,7 +119,7 @@ ElasticSearch as soon as you are ready to use it.
# Setup custom analyzers
has_filter 'edge_ngrams' => (
- type => 'edgeNGram',
+ type => 'edge_ngram',
min_gram => 2,
max_gram => 10
);
@@ -252,7 +252,7 @@ multiple token filters. For instance, each term could be broken down into
"edge ngrams" (eg 'foo' => 'f','fo','foo') for partial matching.
has_filter 'my_ngrams' => (
- type => 'edgeNGram',
+ type => 'edge_ngram',
min_gram => 1,
max_gram => 10,
);
@@ -358,7 +358,7 @@ A hash ref containing all filters plus their configuration, eg:
{
my_filter => {
- type => 'edgeNGram',
+ type => 'edge_ngram',
min_gram => 1,
max_gram => 20
}

0 comments on commit 2bf1e2a

Please sign in to comment.