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

Suggester BlendedInfixLookupFactory to support HDFS store for indexwriter

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 6.6
    • Fix Version/s: None
    • Labels:
      None

      Description

      When relative path is used for indexPath in the LookupFactory, the solr cores DataDir is used as a prefix, but still will be created in the working directory of the process. Unfortunately both the BlendedInfixLookupFactory and it's parent AnalyzingInfixLookupFactory uses a store implementation that does not support HDFS. So in case the data dir is on hdfs then the "hdfs:/" prefix will be ignored and because of the missing leading forward slash it will be treated as a relative path. It seems hdfs wasn't really considered as an option when these Suggesters were implemented.

      One possible solution is to use the SolrCores' own DirectoryFactory to lookup the data dir which dynamically will return the proper store in case of HDFS is used

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              szantaikis Peter Szantai-Kis
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: