Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
None
-
None
-
New
Description
ResourceLoader.getLines() is only used by analysis factories. SolrResourceLoader's implementation does the job well and it's unlikely that another ResourceLoader implementation would handle it differently.
We should extract the getLines() method out to AbstractAnalysisFactory so it can be used by the factories. Additionally we shouldn't assume the files are encoded in UTF-8, instead we should allow a Charset to be specified.
This would take us one step closer to reducing the ResourceLoader interface just to what it says, a loader of resources.
Attachments
Attachments
Issue Links
- is duplicated by
-
LUCENE-4257 factor the getLines in ResourceLoader to WordListLoader
- Closed