# Deprecated API

## Contents

- Deprecated Classes
- Deprecated Methods
- Deprecated Constructors

- Deprecated Classes
  Class and Description
  org.apache.lucene.queries.function.BoostedQuery Use `FunctionScoreQuery.boostByValue(Query, DoubleValuesSource)`
  org.apache.lucene.queries.BoostingQuery Use `FunctionScoreQuery.boostByQuery(Query, Query, float)`
  org.apache.lucene.queries.CustomScoreQuery use `FunctionScoreQuery`

- Deprecated Methods
  Method and Description
  org.apache.lucene.queries.payloads.PayloadDecoder.computePayloadFactor(int, int, int, BytesRef) Use `PayloadDecoder.computePayloadFactor(BytesRef)` - doc and position can be taken into account in `PayloadFunction.currentScore(int, String, int, int, int, float, float)`

- Deprecated Constructors
  Constructor and Description
  org.apache.lucene.queries.payloads.PayloadScoreQuery(SpanQuery, PayloadFunction) Use `PayloadScoreQuery.PayloadScoreQuery(SpanQuery, PayloadFunction, PayloadDecoder)`
  org.apache.lucene.queries.payloads.PayloadScoreQuery(SpanQuery, PayloadFunction, boolean) Use `PayloadScoreQuery.PayloadScoreQuery(SpanQuery, PayloadFunction, PayloadDecoder, boolean)`

Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.