[ 
https://issues.apache.org/jira/browse/SOLR-538?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Otis Gospodnetic updated SOLR-538:
----------------------------------

    Priority: Minor  (was: Major)

This no longer applies.  Could you bring it up to date?  I also noticed new 
code that introduces new coding style (e.g. tab indentation instead of 2-space 
indentation) - could you please make it look like the existing Solr code style?

$ patch -p1 -i CopyFieldMaxLength.patch --dry-run
patching file src/java/org/apache/solr/schema/CopyField.java
patching file src/java/org/apache/solr/schema/IndexSchema.java
Hunk #1 succeeded at 601 with fuzz 2 (offset 44 lines).
Hunk #2 FAILED at 615.
Hunk #3 FAILED at 636.
Hunk #4 FAILED at 650.
Hunk #5 succeeded at 859 (offset 67 lines).
Hunk #6 succeeded at 884 (offset 67 lines).
Hunk #7 succeeded at 1065 (offset 67 lines).
Hunk #8 FAILED at 1086.
Hunk #9 succeeded at 1099 (offset 67 lines).
Hunk #10 succeeded at 1112 (offset 67 lines).
4 out of 10 hunks FAILED -- saving rejects to file 
src/java/org/apache/solr/schema/IndexSchema.java.rej
patching file src/java/org/apache/solr/update/DocumentBuilder.java
Hunk #2 succeeded at 121 (offset 29 lines).
Hunk #3 succeeded at 129 (offset 29 lines).
Hunk #4 succeeded at 219 (offset 29 lines).
Hunk #5 succeeded at 247 (offset 29 lines).
Hunk #6 succeeded at 259 (offset 29 lines).
patching file src/test/org/apache/solr/schema/CopyFieldTest.java
patching file src/test/test-files/solr/conf/schema-copyfield-test.xml


> CopyField maxLength property
> ----------------------------
>
>                 Key: SOLR-538
>                 URL: https://issues.apache.org/jira/browse/SOLR-538
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>            Reporter: Nicolas Dessaigne
>            Priority: Minor
>         Attachments: CopyFieldMaxLength.patch, CopyFieldMaxLength.patch
>
>
> As discussed shortly on the mailing list (http://www.mail-archive.com/[EMAIL 
> PROTECTED]/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...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to