Re: any example on FunctionScoreQuery since Field.setBoost is deprecated with Lucene 6.6.0

2018-08-01 Thread baris . kazar
Someone else also asked: http://lucene.472066.n3.nabble.com/index-time-field-level-boosting-in-6-6-0-td4351797.html Best regards On 8/1/18 5:12 PM, baris.ka...@oracle.com wrote: These methods look promising in terms of ease of use of FunctionscoreQuery but they dont exist in Lucene 6.6.0. sta

Re: any example on FunctionScoreQuery since Field.setBoost is deprecated with Lucene 6.6.0

2018-08-01 Thread baris . kazar
These methods look promising in terms of ease of use of FunctionscoreQuery but they dont exist in Lucene 6.6.0. static FunctionScoreQueryboostByQuery(Query in, Query boostMatch, float boostValue) Returns a FunctionScoreQuery where the scores of a wrapped query are multiplied by a boost fac

Re: any example on FunctionScoreQuery since Field.setBoost is deprecated with Lucene 6.6.0

2018-08-01 Thread baris . kazar
i have one MultiFieldQueryParser based Query and one BooleanQuery with dynamic number of TermQuery's. i dont have SortField objects. Are there examples with the above query types please? Best regards On 7/31/18 7:59 PM, baris.ka...@oracle.com wrote: Robert, thanks, this is helpful but why

Re: any example on FunctionScoreQuery since Field.setBoost is deprecated with Lucene 6.6.0

2018-07-31 Thread baris . kazar
Robert, thanks, this is helpful but why did this change when it was great to use? SortField is a new concept to me and i am not sure this is avail in 6.6.0 but will check. This new way seems more tricky. if there are more examples, i will be happier :) Best regards On 7/31/18 6:19 PM, Ro

Re: any example on FunctionScoreQuery since Field.setBoost is deprecated with Lucene 6.6.0

2018-07-31 Thread Robert Muir
Does this example help? https://lucene.apache.org/core/7_4_0/expressions/org/apache/lucene/expressions/Expression.html On Tue, Jul 31, 2018 at 3:56 PM, wrote: > The following page says: > > http://lucene.apache.org/core/6_6_0/core/org/apache/lucene/document/Field.html#setBoost-float- > > setBoo

Re: any example on FunctionScoreQuery since Field.setBoost is deprecated with Lucene 6.6.0

2018-07-31 Thread baris . kazar
https://stackoverflow.com/questions/50952727/ho-to-use-functionscorequery-with-text-fields Somebody else was also asking this. Best regards On 7/31/18 3:56 PM, baris.ka...@oracle.com wrote: The following page says: https://urldefense.proofpoint.com/v2/url?u=http-3A__lucene.apache.org_core_6-

any example on FunctionScoreQuery since Field.setBoost is deprecated with Lucene 6.6.0

2018-07-31 Thread baris . kazar
The following page says: http://lucene.apache.org/core/6_6_0/core/org/apache/lucene/document/Field.html#setBoost-float- setBoost @Deprecated public void setBoost(float boost) Deprecated. Index-time boosts are deprecated, please index index-time scoring factors into a doc value field and combine