Open Search Java Client Default Score Creation

I am using Open Search Java Client to communicate with the opensearch cluster. Can some one help how to manipulate the scores while persisting the document in the index using Java Client? Currently default relevance score is being assigned to all documents in the index.