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

CopyField maxLength property

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.4
    • update
    • None

    Description

      As discussed shortly on the mailing list (http://www.mail-archive.com/solr-user@lucene.apache.org/msg09807.html), the objective of this task is to add a maxLength property to the CopyField "command". This property simply limits the number of characters that are copied.

      This is particularly useful to avoid very slow highlighting when the index contains big documents.

      Example :
      <copyField source="text" dest="highlight" maxLength="30000" />

      This approach has also the advantage of limiting the index size for large documents (the original text field does not need to be stored and to have term vectors). However, the index is bigger for small documents...

      Attachments

        1. SOLR-538-for-1.3.patch
          42 kB
          Koji Sekiguchi
        2. SOLR-538.patch
          43 kB
          Lars Kotthoff
        3. SOLR-538.patch
          43 kB
          Lars Kotthoff
        4. SOLR-538.patch
          43 kB
          Lars Kotthoff
        5. SOLR-538.patch
          43 kB
          Lars Kotthoff
        6. SOLR-538.patch
          43 kB
          Chris Harris
        7. SOLR-538.patch
          44 kB
          Lars Kotthoff
        8. SOLR-538.patch
          43 kB
          Chris Harris
        9. SOLR-538.patch
          43 kB
          Chris Harris
        10. CopyFieldMaxLength.patch
          57 kB
          Georgios Stamatis
        11. CopyFieldMaxLength.patch
          42 kB
          Georgios Stamatis

        Activity

          People

            koji Koji Sekiguchi
            dessaigne Nicolas Dessaigne
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: