[
https://issues.apache.org/jira/browse/SOLR-16502?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kevin Risden updated SOLR-16502:
--------------------------------
Affects Version/s: 9.1
> Multiple CopyField should not limit to first maxChars
> -----------------------------------------------------
>
> 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, 9.1
> Reporter: Fredrik Rodland
> Assignee: Kevin Risden
> Priority: Major
> Attachments: maxchars.patch
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> 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: [email protected]
For additional commands, e-mail: [email protected]