[
https://issues.apache.org/jira/browse/OAK-9400?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Fabrizio Fortino resolved OAK-9400.
-----------------------------------
Fix Version/s: 1.40.0
Resolution: Fixed
Fixed with revision 1888732.
> oak-search-elastic: avoid to index non-trimmed values in full-text fields
> -------------------------------------------------------------------------
>
> Key: OAK-9400
> URL: https://issues.apache.org/jira/browse/OAK-9400
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Reporter: Fabrizio Fortino
> Assignee: Fabrizio Fortino
> Priority: Minor
> Fix For: 1.40.0
>
>
> We currently allow non-trimmed values in full-text fields. Although this does
> not cause any issues, it would be better to clean it up the index from these
> unnecessary values.
>
> {code:java}
> {
> "_index" : "elastic",
> "_type" : "_doc",
> "_id" : "/content/some_document.pdf",
> "_score" : 1.0,
> "_source" : {
> ":path" : "/content/some_document.pdf",
> ":fulltext" : [
> "some_document.pdf",
> """
> """
> ],
> ":suggest" : [
> {
> "value" : "some_document.pdf"
> }
> ],
> ":depth" : 3,
> "jcr:created" : "2020-05-29T15:09:52.210Z",
> ":ancestors" : "/content",
> ":nodeName" : "some_document.pdf"
> }
> }
> {code}
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)