Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-2484

Make SynonymFilterFactory more extendable

    XMLWordPrintableJSON

    Details

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

      Description

      As is, reading rules from the ResourceLoader is baked into inform(ResourceLoader loader). It would be nice to be able to load custom rules w/o needing to rewrite the whole thing. This issue changes two things:

      1. Changes List<String> to Iterable<String> because we don't really need a list
      2. adds protected Iterable<String> loadRules( String synonyms, ResourceLoader loader ) – so subclasses could fill their own

        Attachments

          Activity

            People

            • Assignee:
              ryantxu Ryan McKinley
              Reporter:
              ryantxu Ryan McKinley
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: