Cocoon
  1. Cocoon
  2. COCOON-1340

[PATCH] lucene block contribution : a AnalyzerManager component

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.1.5
    • Fix Version/s: None
    • Component/s: Blocks: Lucene
    • Labels:
      None
    • Environment:
      Operating System: other
      Platform: Other

      Description

      i was frusted with the LuceneIndexTransformer because i can use custom analyzer
      because the constructor needed parameters.
      So i developped a analyzerManager.
      The goal of the analyzerManager is to

      1 - register all the necessary analyzers. Two main methods:
      public void register(key,analyzer);
      public analyzer get(key);
      (in a hacked version of LuceneIndexTransformer, in the xml input format you can
      replace analyzer="myclass" by analyzer="mykey" and access to all the analyzers
      you want)

      you can configure all the necessary analyzers in the cocoon.xconf

      2 - allow to configure with a custom xml file a analyzer that need to be
      configured to work (PerFieldAnalyzer for multilingue document or a custom
      stopwordanalayzer). => allow multiple analyzers of the same class but with
      different configurations
      (see ConfigurableAnalyzer class)



      with build.xml to deploy to a cocoon webapp
      see analyzer_manager tag in the cocoon.xconf after the deployment

      Nicolas Maisonneuve

        Activity

        Nicolas Maisonneuve created issue -
        Jeff Turner made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 32208 12324649
        Pier Fumagalli made changes -
        Workflow jira [ 12341084 ] Cocoon Workflow [ 12341554 ]
        Ralph Goers made changes -
        Component/s Blocks: Lucene [ 12310475 ]
        Component/s Blocks: (Undefined) [ 12310440 ]
        Bugzilla Id 32208
        Description i was frusted with the LuceneIndexTransformer because i can use custom analyzer
        because the constructor needed parameters.
        So i developped a analyzerManager.
        The goal of the analyzerManager is to

        1 - register all the necessary analyzers. Two main methods:
        public void register(key,analyzer);
        public analyzer get(key);
        (in a hacked version of LuceneIndexTransformer, in the xml input format you can
        replace analyzer="myclass" by analyzer="mykey" and access to all the analyzers
        you want)

        you can configure all the necessary analyzers in the cocoon.xconf

        2 - allow to configure with a custom xml file a analyzer that need to be
        configured to work (PerFieldAnalyzer for multilingue document or a custom
        stopwordanalayzer). => allow multiple analyzers of the same class but with
        different configurations
        (see ConfigurableAnalyzer class)



        with build.xml to deploy to a cocoon webapp
        see analyzer_manager tag in the cocoon.xconf after the deployment

        Nicolas Maisonneuve
        i was frusted with the LuceneIndexTransformer because i can use custom analyzer
        because the constructor needed parameters.
        So i developped a analyzerManager.
        The goal of the analyzerManager is to

        1 - register all the necessary analyzers. Two main methods:
        public void register(key,analyzer);
        public analyzer get(key);
        (in a hacked version of LuceneIndexTransformer, in the xml input format you can
        replace analyzer="myclass" by analyzer="mykey" and access to all the analyzers
        you want)

        you can configure all the necessary analyzers in the cocoon.xconf

        2 - allow to configure with a custom xml file a analyzer that need to be
        configured to work (PerFieldAnalyzer for multilingue document or a custom
        stopwordanalayzer). => allow multiple analyzers of the same class but with
        different configurations
        (see ConfigurableAnalyzer class)



        with build.xml to deploy to a cocoon webapp
        see analyzer_manager tag in the cocoon.xconf after the deployment

        Nicolas Maisonneuve
        David Crossley made changes -
        Other Info [Patch available]
        Bugzilla Id 32208
        Mark Thomas made changes -
        Assignee Cocoon Developers Team [ cocoon ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Nicolas Maisonneuve
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development