Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EB68618483 for ; Tue, 4 Aug 2015 12:21:16 +0000 (UTC) Received: (qmail 56382 invoked by uid 500); 4 Aug 2015 12:21:13 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 56311 invoked by uid 500); 4 Aug 2015 12:21:13 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 56299 invoked by uid 99); 4 Aug 2015 12:21:13 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Aug 2015 12:21:13 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id E431CC1311 for ; Tue, 4 Aug 2015 12:21:12 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.879 X-Spam-Level: ** X-Spam-Status: No, score=2.879 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id ZVbJNMNEpJIN for ; Tue, 4 Aug 2015 12:21:12 +0000 (UTC) Received: from mail-la0-f53.google.com (mail-la0-f53.google.com [209.85.215.53]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 8B0B9213B7 for ; Tue, 4 Aug 2015 12:21:11 +0000 (UTC) Received: by labsr2 with SMTP id sr2so5889801lab.2 for ; Tue, 04 Aug 2015 05:21:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=XpK9YxmUBI4E8qbcRAUQK033oToX2leLzJfIpO2MoeE=; b=pFj1Iz+u9d3IJs36a96klh4BK2qtCniUKBYuCr5TKN4olFzRXtA7Pc4ZVpFKyuzT6f oKOzGTdaSnj60iyBfyOCzDPvB0i/88gNy57/r+Lq3VdvmAxqEkXqbumwJ/MDHfrnXdnN IWcCNA3F/9L2H7lS2EXUGBGuThsJyaoLMHjd1rpOYECAtgTmdtUFayweHYH529P4Qjik biJWFU/+uf8il/N8WRPOi5BTegQ/ZwjOUA/WTizMwe0jnAaFOhw2ejGjogfePuUQbkoo d/yMqXRfWrlefSCYo2SRo+tlv34NKEwjthoz3RQdV9hip4iOhTFX6YgVh7ucyjMYOrkS hFKw== MIME-Version: 1.0 X-Received: by 10.152.23.167 with SMTP id n7mr3080198laf.108.1438690864377; Tue, 04 Aug 2015 05:21:04 -0700 (PDT) Received: by 10.112.208.106 with HTTP; Tue, 4 Aug 2015 05:21:04 -0700 (PDT) In-Reply-To: <1537503671.251565.1438677166516.JavaMail.yahoo@mail.yahoo.com> References: <1537503671.251565.1438677166516.JavaMail.yahoo@mail.yahoo.com> Date: Tue, 4 Aug 2015 15:21:04 +0300 Message-ID: Subject: Re: Highlight not working when using _query_ syntax From: Emre ERKEK To: solr , Ahmet Arslan Content-Type: multipart/alternative; boundary=089e0160a5e6e9b767051c7b513c --089e0160a5e6e9b767051c7b513c Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Ahmet, Unfortunatly, I cannot leverage hl.qparser and hl.q. I tried to queries like that: *hl.q=3D_query_:"{!complexphrase df=3Dxml}\"olas=C4=B1 (kast kas=C4=B1t)\"~= 6" OR _query_:"{!complexphrase df=3Dxml_en}\"olas=C4=B1 (kast kas=C4=B1t)\"~6" * = is not working. *hl.q=3D"olas=C4=B1 (kast kas=C4=B1t)"~6&hl.qparser=3Dcomplexphrase *is no= t working for xml_en field because default search field is xml. Actually, my main problem is searching with complexphrase query doesn't have highlighting problem on two field which is xml and xml_en. What can be equivalent this query? *_query_:"{!complexphrase df=3Dxml}\"olas=C4=B1 (kast kas=C4=B1t)\"~6" OR _query_:"{!complexphrase df=3Dxml_en}\"olas=C4=B1 (kast kas=C4=B1t)\"~6"* Emre On Tue, Aug 4, 2015 at 11:32 AM, Ahmet Arslan wrote: > Hi Emre, > > May be you can leverage hl.qparser and hl.q ? > > Ahmet > > > > On Tuesday, August 4, 2015 11:00 AM, Emre ERKEK > wrote: > > > > Hi, > > When I search with nested query such as :* {!complexphrase df=3Dxml}\"ola= s=C4=B1 > (kast kas=C4=B1t)\"~6* , > highlighting is working. > > But, when I use this query *_query_:"{!complexphrase df=3Dxml}\"olas=C4= =B1 (kast > kas=C4=B1t)\"~6"* > , highlighting is not working. > > Finally, I want to use query like that *_query_:"{!complexphrase > df=3Dxml}\"olas=C4=B1 (kast kas=C4=B1t)\"~6" OR _query_:"{!complexphrase > df=3Dxml_en}\"olas=C4=B1 (kast kas=C4=B1t)\"~6"* > > Any ideas? > > Thanks > --=20 =C4=B0yi =C3=A7al=C4=B1=C5=9Fmalar, Hasan Emre ERKEK --089e0160a5e6e9b767051c7b513c--