Solr
  1. Solr
  2. SOLR-2449

Loading of Carrot2 resources from Solr config directory

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2, 4.0-ALPHA
    • Component/s: contrib - Clustering
    • Labels:
      None

      Description

      Currently, Carrot2 clustering algorithms read linguistic resources (stop words, stop labels) from the classpath (Carrot2 JAR), which makes them difficult to edit/override. The directory from which Carrot2 should read its resources (absolute, or relative to Solr config dir) could be specified in the engine element. By default, the path could be e.g. <solr.conf>/clustering/carrot2.

      1. SOLR-2449.patch
        18 kB
        Stanislaw Osinski

        Issue Links

          Activity

          Hide
          Hoss Man added a comment -

          i'm not really up on how you configure carrot, but can we make this work using SolrResourceLoader like all other configs? (as i understand it, that should also help it play nicer with SolrCloud)

          Show
          Hoss Man added a comment - i'm not really up on how you configure carrot, but can we make this work using SolrResourceLoader like all other configs? (as i understand it, that should also help it play nicer with SolrCloud)
          Hide
          Stanislaw Osinski added a comment -

          This is exactly how I implemented it. I'll attach a patch for review when we release and integrate Carrot2 3.5.0 (required for this improvement to work).

          A more interesting case though is SOLR-2450 – any hints about the recommended way to get hold of Solr's own stop words?

          Show
          Stanislaw Osinski added a comment - This is exactly how I implemented it. I'll attach a patch for review when we release and integrate Carrot2 3.5.0 (required for this improvement to work). A more interesting case though is SOLR-2450 – any hints about the recommended way to get hold of Solr's own stop words?
          Hide
          Stanislaw Osinski added a comment -

          The patch requires the SOLR-2448 patch applied.

          Show
          Stanislaw Osinski added a comment - The patch requires the SOLR-2448 patch applied.
          Hide
          Stanislaw Osinski added a comment -

          Committed to trunk and branch_3x.

          Show
          Stanislaw Osinski added a comment - Committed to trunk and branch_3x.
          Hide
          Robert Muir added a comment -

          Bulk close for 3.2

          Show
          Robert Muir added a comment - Bulk close for 3.2

            People

            • Assignee:
              Stanislaw Osinski
              Reporter:
              Stanislaw Osinski
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development