From java-user-return-63914-archive-asf-public=cust-asf.ponee.io@lucene.apache.org Tue Jul 31 22:34:13 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 3495C180662 for ; Tue, 31 Jul 2018 22:34:13 +0200 (CEST) Received: (qmail 19235 invoked by uid 500); 31 Jul 2018 20:34:11 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 19222 invoked by uid 99); 31 Jul 2018 20:34:11 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Jul 2018 20:34:11 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id B239C18000B for ; Tue, 31 Jul 2018 20:34:10 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.912 X-Spam-Level: X-Spam-Status: No, score=-1.912 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, KAM_NUMSUBJECT=0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_DKIMWL_WL_HIGH=-0.01] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=oracle.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id VhI-XFrub0GO for ; Tue, 31 Jul 2018 20:34:10 +0000 (UTC) Received: from aserp2120.oracle.com (aserp2120.oracle.com [141.146.126.78]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id A650D5F29A for ; Tue, 31 Jul 2018 20:34:09 +0000 (UTC) Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w6VKXVff183691 for ; Tue, 31 Jul 2018 20:34:08 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=3vqOxd8rQH2+eQk0jse6UmKq2K/pxcvovRmbRDCPM1Y=; b=vGjAknFslE/gtBvR66/AkPoJpYajngXZpxczpZre4Uf2dMBbBjf4oDvlCN5kWkWBHOsX IlBy3cfJgQsoeelHDlQvzjUB1kVyLENmX69WAcPPD39SJKzDRitrGzZJeTqkzsYz8//y 9xM9K4b3FpEBnMOp7IQPV3PmNVGWfPI4B8Hb5dkvkQ8valEx0AqTvm7vc1oaXq2AZmU+ /e2jrap24T/T1rN642hnzJ7NqA0Ay+PssbcSK7OsG7kMzjfyCgjs5hrpn/dGUe2tWYvv H5s+U9bpSrPe0csa48qAY/uAz+vDUlXaqh1HjTPWmNZ/ACpRerU1C3YGE/txF8xoPotQ 4w== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp2120.oracle.com with ESMTP id 2kggep2seg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 31 Jul 2018 20:34:08 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w6VKY7qt020436 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 31 Jul 2018 20:34:07 GMT Received: from abhmp0010.oracle.com (abhmp0010.oracle.com [141.146.116.16]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w6VKY7Wc031381 for ; Tue, 31 Jul 2018 20:34:07 GMT Received: from [10.149.250.32] (/10.149.250.32) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 31 Jul 2018 13:34:07 -0700 Subject: Re: any example on FunctionScoreQuery since Field.setBoost is deprecated with Lucene 6.6.0 To: java-user@lucene.apache.org References: <52dc4b57-188c-9897-9b25-15f192d5922b@oracle.com> From: baris.kazar@oracle.com Organization: Oracle Corporation Message-ID: <47a94f8f-0c45-86e9-4d57-35b8c02b6f9c@oracle.com> Date: Tue, 31 Jul 2018 16:34:06 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <52dc4b57-188c-9897-9b25-15f192d5922b@oracle.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8971 signatures=668707 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=3 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=818 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1807310189 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.kazar@oracle.com wrote: > The following page says: > > https://urldefense.proofpoint.com/v2/url?u=http-3A__lucene.apache.org_core_6-5F6-5F0_core_org_apache_lucene_document_Field.html-23setBoost-2Dfloat-2D&d=DwICaQ&c=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=nlG5z5NcNdIbQAiX-BKNeyLlULCbaezrgocEvPhQkl4&m=H84wcaVfvkqP3ETnAfp_RxC-6PuQiiYqEjrzF5ICHd4&s=kU3oMyexzzTU64Pxf535gQpxLP4GtRjMQ4CjmZbhPS4&e= > > > 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 them with the score > at query time using eg. FunctionScoreQuery. > Sets the boost factor on this field. > Throws: > IllegalArgumentException - if this field is not indexed, or if it > omits norms. > See Also: > boost() > > > Any example on how to use FunctionScoreQuery? How will this affect the > IndexWriter? > > Best regards > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org