Lucene - Core
  1. Lucene - Core
  2. LUCENE-3755

Add examples to javadocs of Analyzer (4.0)/ReusableAnalyzerBase(3.6)

    Details

    • Type: Task Task
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0, 5.0
    • Component/s: general/javadocs
    • Labels:
    • Lucene Fields:
      New

      Description

      This stuff is great, it makes it easy to define analyzers:

      Analyzer analyzer = new Analyzer() {
          @Override
          protected TokenStreamComponents createComponents(String fieldName, Reader reader) {
            Tokenizer source = new FooTokenizer(reader);
            TokenStream filter = new FooFilter(source);
            filter = new BarFilter(filter);
            return new TokenStreamComponents(source, filter);
          }
        };
      

      But, we should add basic examples to the javadocs I think (we can backport to ReusableAnalyzerBase).
      Also it would be nice to throw in an example that adds a CharFilter.

        Activity

        Robert Muir created issue -
        Robert Muir made changes -
        Field Original Value New Value
        Labels newdev
        Robert Muir made changes -
        Fix Version/s 3.6 [ 12319070 ]
        Robert Muir made changes -
        Fix Version/s 4.1 [ 12321140 ]
        Fix Version/s 4.0 [ 12314025 ]
        Robert Muir made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 5.0 [ 12321663 ]
        Fix Version/s 4.0 [ 12322550 ]
        Fix Version/s 4.1 [ 12321140 ]
        Resolution Fixed [ 1 ]
        Uwe Schindler made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Robert Muir
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development