[ 
https://issues.apache.org/jira/browse/SOLR-16502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17625059#comment-17625059
 ] 

Henrik commented on SOLR-16502:
-------------------------------

Link to thread in us...@solr.apache.org: 
https://lists.apache.org/thread/fb4clbk44cg6464fmb9cd8j4ncpo6omw

> Only first maxChars for a field is respected
> --------------------------------------------
>
>                 Key: SOLR-16502
>                 URL: https://issues.apache.org/jira/browse/SOLR-16502
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>    Affects Versions: 9.0
>            Reporter: Fredrik Rodland
>            Priority: Major
>         Attachments: maxchars.patch
>
>
> We’ve stumbled upon something that seems like a bug.  The behaviour is 
> changed since solr 8.11.  
> If we setup copyfield with maxChars, this is “remembered” for all other 
> copyField-operations (at least for the same source field).
> From schema.xml:
> {{<field name="searchablefield" type="text" indexed="true" stored="true" 
> multiValued="true"/>}}
> {{<field name="genteaser" type="text" indexed="false" stored="true"/>}}
> Input doc:
> {{body:“On a brighter note, they have a phone number to call if you are 
> interested in volunteering.  You can call 860 - 690 - 4300 ext 2.  (there are 
> a lot of forms to fill out, and they are asking for info on when the babies 
> are due)  There was a lady in here yesterday asking how to volunteer.  She is 
> 2 - 3 months pregnant and wants to get her hands dirty.  She says her husband 
> will be home at the time, but can't drive, so she wants to be able to help 
> out.  So I told her the names of the people who are in charge, and also 
> pointed her in the direction of a site where she can make an appointment to 
> drop off some pre - packaged meals.  I'll let you know what I hear from them 
> when I do.  One day I had not posted because all I was going to do was 
> complain about how the morning sickness is wearing me out!  Then I thought, I 
> can make this an uplifting post, so I'll share with you about my friend 
> Jackie, who I met in high school, who went through this 2 years ago with her 
> first baby, Samuel."}}
> search with qf=searchablefield for q=“Samuel"
> HIT (OK)
> {{<copyField source="body" dest="genteaser" />}}
> {{<copyField source="body" dest="searchablefield"/>}}
> HIT (OK)
> {{<copyField source="body" dest="searchablefield"  maxChars="3000000"/>}}
> {{<copyField source="body" dest="genteaser" maxChars="300"/>}}
> NO HIT (as expected)
> {{<copyField source="body" dest="searchablefield"  maxChars="300"/>}}
> {{<copyField source="body" dest="genteaser" maxChars="300”/>}}
> NO HIT (BUG):
> {{<copyField source="body" dest="genteaser" maxChars="300"/>}}
> {{<copyField source="body" dest="searchablefield"  maxChars="300000”/>}}
> NO HIT (BUG):
> {{<copyField source="body" dest="genteaser" maxChars="300"/>}}
> {{<copyField source="body" dest="searchablefield"/>}}
> Included a patch with a couple of new fields added to schema.xml and a 
> failing test.
>  
> This was also posted to the user mailling list.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to