Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-9400

oak-search-elastic: avoid to index non-trimmed values in full-text fields

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.40.0
    • None
    • None

    Description

      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.

       

          {
              "_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"
              }
            }
      

       

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            fortino Fabrizio Fortino
            fortino Fabrizio Fortino
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment