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 0C12417411 for ; Tue, 31 Mar 2015 21:44:26 +0000 (UTC) Received: (qmail 68603 invoked by uid 500); 31 Mar 2015 21:44:22 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 68550 invoked by uid 500); 31 Mar 2015 21:44:22 -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 68538 invoked by uid 99); 31 Mar 2015 21:44:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Mar 2015 21:44:21 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of swhite4141@gmail.com designates 209.85.212.176 as permitted sender) Received: from [209.85.212.176] (HELO mail-wi0-f176.google.com) (209.85.212.176) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Mar 2015 21:43:56 +0000 Received: by wixo5 with SMTP id o5so17053451wix.1 for ; Tue, 31 Mar 2015 14:42:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=9sT05cespp7d7oES8ViD2vMRtH+qilVayVRGtSz7kbg=; b=o/PY+cHzrc6vDZrEyxD0kJNCfSl2o7wkWdJepAhWP/XYka76rf6PKURKAJIP54xzEQ qUFO5qcl4UhlzGu/t01GZf5GHKz5ChlMomhQANyJiPzks90H9syBX+5uwp+dGLXSCew+ Gcp03/0wVYXcpWtmMhXVhPEf0Iv0uLoLhwGsYjMRPQLJV2DwPhJaszdD1XsfsyMwVGD+ lSuQ/uX/U6Czg8u0rdwWml+E9UAa4ayzVbrdg8MH4Sn0EYrkXVIXRQLlNd0ja4DD4Ipm L862ezVu6ZAPEXutHb7sTwqFYcFSwr2I8Z76ovwma7sBOJrGncffkXgydla29oZeNgvk 7ymA== MIME-Version: 1.0 X-Received: by 10.194.177.167 with SMTP id cr7mr73886822wjc.19.1427838144767; Tue, 31 Mar 2015 14:42:24 -0700 (PDT) Received: by 10.27.184.68 with HTTP; Tue, 31 Mar 2015 14:42:24 -0700 (PDT) Date: Tue, 31 Mar 2015 17:42:24 -0400 Message-ID: Subject: How to find out which fields a search came from From: Steven White To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary=089e013d0f4a6a6e1605129c79d9 X-Virus-Checked: Checked by ClamAV on apache.org --089e013d0f4a6a6e1605129c79d9 Content-Type: text/plain; charset=UTF-8 Hi folks, When I get my hits back from Solr, is there a way to find out into which fields my search term matched in? For example, if the indexed document is: doc_1: title = From Russia with Love director = Terence Young starting = Sean Connery, Redro Amendariz, Lotte Lenya, music_by = John Barry doc_2: title = Goldfinger director = Guy Hamilton starting = Sean Connery, Honor Blackman, Gert Frobe music_by = John Barry doc_3: title = Skyfall director = Sam Mendes starting = Daniel Craig, Javier Bardem, Ralph Fiennes music_by = Thomas Newman If my search term is "love john barry guy", Solr will tell me I have a hit in doc_1 and doc_2. But what I also need to know in which field my search terms match. How can Solr tell me that doc_1::title and doc_1::music_by and doc_2::music_by are where my search terms matched? It looks to me that the highlighter does this, but I need this feature without enabling the highlighter. Thanks! Steve --089e013d0f4a6a6e1605129c79d9--