Permalink
Browse files

tidy document about analyzer

  • Loading branch information...
1 parent 2a436c5 commit b9ea0b230848796e8e7791c94bfc50791329dc86 Robert Newson committed Feb 4, 2010
Showing with 2 additions and 12 deletions.
  1. +2 −12 README.md
View
@@ -166,23 +166,13 @@ Lucene has numerous ways of converting free-form text into tokens, these classes
The "perfield" option lets you use a different analyzer for different fields and is configured as follows;
<pre>
-?analyzer=perfield:{field_name:"analyzer_name"}
+"analyzer":"perfield:{field_name:\"analyzer_name\"}"
</pre>
Unless overridden, any field name not specified will be handled by the standard analyzer. To change the default, use the special default field name;
<pre>
-?analyzer=perfield:{default:"keyword"}
-</pre>
-
-You should also specify the analyzer in your ddoc too;
-
-<pre>
-"fulltext": {
- "idx": {
- "analyzer": "perfield:{default:\"keyword\"}"
- }
-}
+"analyzer":"perfield:{default:\"keyword\"}"
</pre>
<h3>The Document class</h3>

0 comments on commit b9ea0b2

Please sign in to comment.