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

Suggester BlendedInfixLookupFactory to support HDFS store for indexwriter

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 6.6
    • None
    • 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

            Unassigned Unassigned
            szantaikis Peter Szantai-Kis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: