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 1C0AF18FFC for ; Wed, 5 Aug 2015 08:37:40 +0000 (UTC) Received: (qmail 86058 invoked by uid 500); 5 Aug 2015 08:37:29 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 85983 invoked by uid 500); 5 Aug 2015 08:37:29 -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 85968 invoked by uid 99); 5 Aug 2015 08:37:28 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Aug 2015 08:37:28 +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 857C519B4BB for ; Wed, 5 Aug 2015 08:37:28 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.131 X-Spam-Level: X-Spam-Status: No, score=-0.131 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=yahoo.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 15XPL5_TBEMm for ; Wed, 5 Aug 2015 08:37:22 +0000 (UTC) Received: from nm21-vm4.bullet.mail.ne1.yahoo.com (nm21-vm4.bullet.mail.ne1.yahoo.com [98.138.91.181]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id A4A61429BC for ; Wed, 5 Aug 2015 08:37:21 +0000 (UTC) Received: from [98.138.226.180] by nm21.bullet.mail.ne1.yahoo.com with NNFMP; 05 Aug 2015 08:36:12 -0000 Received: from [98.138.89.194] by tm15.bullet.mail.ne1.yahoo.com with NNFMP; 05 Aug 2015 08:36:12 -0000 Received: from [127.0.0.1] by omp1052.mail.ne1.yahoo.com with NNFMP; 05 Aug 2015 08:36:12 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 112789.52054.bm@omp1052.mail.ne1.yahoo.com X-YMail-OSG: twTWCksVM1kpk71MVDroQlhnX05R6yExClG630D4bhC304omFPOJzgPCYBt7gh6 gVwsaP7emzcDInRRlP.GOebulB8UNJYQERnbJ_e3ahTyMwQYmEYPf7DlytUrAdAn24bC_JA6Z08l .Ml.hNJE5RFV3W1lfLQfrlwqFrpK.Q_BOotJvBeG1HL._h73uW3jJ7Ih._5tAsuK1.idxBr.7wSN SL8BZZVnd8lnYpH0FuEUVbLOiovlngkMxXfqgKuBh_wONKY0UmwR6sqh8yfQqRtJWP.KCJuEqK4h MV5Y3vBn1wrwFyFLtwCsqtkjV.0FVuPxJPfh7lb8DvKMXyykkMc82W7oMUpUJX8mGOXpdV9FfoEn Wqw6GjKXemEXyCBTh4tMe0zOUzc.hQz8l6iwhl5GsbzFPD9L2_4y_jnbefnkf7soL8N3u3R7GtpH JrYgMUacwS1fx1Iygk67pUVopJjVInJs9bzV40RStczCupAoaT5n_tjUZ5_dSxsXedkCPiWnf3Es 5tE1i.SfIYlBSZw-- Received: by 98.138.101.163; Wed, 05 Aug 2015 08:36:11 +0000 Date: Wed, 5 Aug 2015 08:36:11 +0000 (UTC) From: Ahmet Arslan Reply-To: Ahmet Arslan To: "solr-user@lucene.apache.org" Message-ID: <924204192.186621.1438763771211.JavaMail.yahoo@mail.yahoo.com> In-Reply-To: References: Subject: Re: Solr 5.2.1 highlighting results are not available MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, Your response says wt=3Djson, but your solrconfig excerpt says wt=3Dvelocit= y. May be you are hitting a different request handler? What happens when you submit your query as q=3DWarszawa&df=3Dtext_index On Wednesday, August 5, 2015 8:28 AM, Micha=C5=82 Ole=C5=9B wrote: I installed solr 5.2.1 and use dih example with tika integration to search for pdf content. Everything work as expected except highlighting plugin. When I execute the query I don't even see highlighting section in results: { "responseHeader": { "status": 0, "QTime": 1, "params": { "indent": "true", "q": "text_index:Warszawa", "_": "1438704448534", "hl.simple.pre": "", "hl.simple.post": "", "hl.fl": "text", "wt": "json", "hl": "true" } }, "response": { "numFound": 2, "start": 0, "docs": [ { "size": "698231", "lastModified": "Tue Aug 04 07:38:07 UTC 2015", "id": "C:\\Moje\\solr-5.2.1\\pdf\\D2015000105301.pdf", "text": [ "\n \n \n\nDZIENNIK USTAW \nRZECZYPOSPOLITEJ POLSKIEJ \n\nWarszawa, dnia 29 lipca 2015 r. \n\nPoz. 1053 \n\nRO ZPORZ=C4=84DZENIE \n\nMINISTRA OBRONY NARODOWEJ \n\nz dnia 9 lipca 2015 r. \n\n" ], "title": [ "Pozycja 1053 DPA.555.14.2015 JS (word)" ], "author": "jswiderska" }, { "size": "747618", "lastModified": "Tue Aug 04 07:37:02 UTC 2015", "id": "C:\\Moje\\solr-5.2.1\\pdf\\D2015000109301.pdf", "text": [ "\n \n \n\nDZIENNIK USTAW \nRZECZYPOSPOLITEJ POLSKIEJ \n\nWarszawa, dnia 3 sierpnia 2015 r. \n\n" ], "title": [ "OG=C5=81 - SZCZOTKA 1093" ], "author": "bzebrowska" } ] } } My solrconfig.xml is default from that example. I tried to add default values but it won't changed anything: explicit velocity browse layout edismax *:* 10 *,score on 1 on text true html <b> </b> 3 200 text 750 Here is part of schema.xml: As in example I use two fields (one for indexing and one for store value). When I run debug I found that highlight plugin time =3D 0. So it looks like this plugin isn't even got invoked. Also in solr admin panel under tab "Plugins/Stats" for all org.apache.solr.highlight.* classes I got 0 request= .