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

the termsInfosDivisor for readers opened by indexWriter should be configurable in Solr

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      Solr allows users to set the termInfosIndexDivisor used by the indexReader during search time in solrconfig.xml, but not in the indexReader opened by the IndexWriter when indexing/merging.

      When dealing with an index with a large number of unique terms, setting the termInfosIndexDivisor at search time is helpful in reducing memory use. It would also be helpful in reducing memory use during indexing/merging if it was made configurable for indexReaders opened by indexWriter during indexing/merging.

      This thread contains some background:
      http://www.lucidimagination.com/search/document/b5c756a366e1a0d6/memory_use_during_merges_oom

      In the Lucene 3.x branch it looks like this is done in IndexWriterConfig.setReaderTermsIndexDivisor, although there is also this method signature in IndexWriter.java: IndexReader getReader(int termInfosIndexDivisor)

        

      Attachments

        Activity

          People

            Unassigned Unassigned
            tburtonwest Tom Burton-West
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: