From java-user-return-63923-archive-asf-public=cust-asf.ponee.io@lucene.apache.org Wed Aug 1 18:10:46 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 012AC180634 for ; Wed, 1 Aug 2018 18:10:45 +0200 (CEST) Received: (qmail 28755 invoked by uid 500); 1 Aug 2018 16:10:44 -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 28738 invoked by uid 99); 1 Aug 2018 16:10:44 -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; Wed, 01 Aug 2018 16:10:43 +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 A068B180A39 for ; Wed, 1 Aug 2018 16:10:43 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.112 X-Spam-Level: X-Spam-Status: No, score=-1.112 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, KAM_ASCII_DIVIDERS=0.8, 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-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id Fj01oGXzDfUs for ; Wed, 1 Aug 2018 16:10:42 +0000 (UTC) Received: from aserp2120.oracle.com (aserp2120.oracle.com [141.146.126.78]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 830085F125 for ; Wed, 1 Aug 2018 16:10:41 +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 w71G9EgB049820 for ; Wed, 1 Aug 2018 16:10:39 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=sqcN9TxStgoB48rOxkFxfTyUivrdlfW34w3E8a5U0GE=; b=TF6EXmLW4M0c2ylO0V7DrtrqKRZ5Yjtf76p5TpVqP9PGGiJig1jKJNk3AlqP1hnBcEI8 IU9F0A/avxvZZUS/aV5Sh25c5vaTpT0Fzq3ihnHyvZL9Iun03kwOFlm7ITPmv7X+u1U8 tVNCVmGEtMfl3dQMsXRcEgFfyTjVxjpoId9H49T3swc5mTa2OEt8VHaqUCVxoeWQabe8 NA1yA6Df3CPHMgf9lDgwS/4WXniiTzb+mphgQO9O+EP+N3LFz2MJCAUP/TtIbEuRw2gb z20pVqyqOyN6MOFbHKKt1EsBvENzYKr206LOB1s+92dpoT2jAlE4IZdzMpR0LoEj4zyD Nw== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp2120.oracle.com with ESMTP id 2kggep6eqv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 01 Aug 2018 16:10:39 +0000 Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w71GAcO2013408 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 1 Aug 2018 16:10:38 GMT Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w71GAc2l013347 for ; Wed, 1 Aug 2018 16:10:38 GMT Received: from [10.149.250.32] (/10.149.250.32) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 01 Aug 2018 09:10:38 -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> <2750e38e-6d4f-f3d2-01bc-516334356dd2@oracle.com> From: baris.kazar@oracle.com Organization: Oracle Corporation Message-ID: Date: Wed, 1 Aug 2018 12:10:37 -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: <2750e38e-6d4f-f3d2-01bc-516334356dd2@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=961 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1808010167 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.kazar@oracle.com wrote: > 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, Robert Muir wrote: >> Does this example help? >> https://urldefense.proofpoint.com/v2/url?u=https-3A__lucene.apache.org_core_7-5F4-5F0_expressions_org_apache_lucene_expressions_Expression.html&d=DwIBaQ&c=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=nlG5z5NcNdIbQAiX-BKNeyLlULCbaezrgocEvPhQkl4&m=c3uQ0PZh3UAyhspJjYEWBQFj5P3kOZ2hutwoKfuVi0Y&s=HH5zhMFzM1dkMQEXFfwogr-1hW3EwBdkIqa6LrjDzxw&e= >> >> >> >> On Tue, Jul 31, 2018 at 3:56 PM, 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=DwIBaQ&c=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=nlG5z5NcNdIbQAiX-BKNeyLlULCbaezrgocEvPhQkl4&m=c3uQ0PZh3UAyhspJjYEWBQFj5P3kOZ2hutwoKfuVi0Y&s=bIqHxtrAh8BDauE0OQYMZfShyjlwFj2wa253wIKF3TY&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 >> > > > --------------------------------------------------------------------- > 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