simple-analyzer.asciidoc 774 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. [[analysis-simple-analyzer]]
  2. === Simple Analyzer
  3. The `simple` analyzer breaks text into terms whenever it encounters a
  4. character which is not a letter. All terms are lower cased.
  5. [float]
  6. === Definition
  7. It consists of:
  8. Tokenizer::
  9. * <<analysis-lowercase-tokenizer,Lower Case Tokenizer>>
  10. [float]
  11. === Example output
  12. [source,js]
  13. ---------------------------
  14. POST _analyze
  15. {
  16. "analyzer": "simple",
  17. "text": "The 2 QUICK Brown-Foxes jumped over the lazy dog's bone."
  18. }
  19. ---------------------------
  20. // CONSOLE
  21. The above sentence would produce the following terms:
  22. [source,text]
  23. ---------------------------
  24. [ the, quick, brown, foxes, jumped, over, the, lazy, dog, s, bone ]
  25. ---------------------------
  26. [float]
  27. === Configuration
  28. The `simple` analyzer is not configurable.