Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 08DC810D90 for ; Thu, 29 Jan 2015 06:35:35 +0000 (UTC) Received: (qmail 43442 invoked by uid 500); 29 Jan 2015 06:35:35 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 43402 invoked by uid 500); 29 Jan 2015 06:35:35 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 43392 invoked by uid 99); 29 Jan 2015 06:35:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Jan 2015 06:35:35 +0000 Date: Thu, 29 Jan 2015 06:35:35 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CAMEL-8288) Attach Lucene Documents to the Results(Hits) if header contains RETURN_LUCENE_DOCS=true MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-8288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14296450#comment-14296450 ] Claus Ibsen commented on CAMEL-8288: ------------------------------------ Is it not better to add an option to the endpoint you can turn on|off whether to include docs? Something like: {code} to("lucene:searchIndex:query?analyzer=#stdAnalyzer&indexDir=#std&maxHits=20&includeDocs=true"). {code} > Attach Lucene Documents to the Results(Hits) if header contains RETURN_LUCENE_DOCS=true > --------------------------------------------------------------------------------------- > > Key: CAMEL-8288 > URL: https://issues.apache.org/jira/browse/CAMEL-8288 > Project: Camel > Issue Type: Improvement > Components: camel-lucene > Reporter: Kranti Parisa > Priority: Minor > Fix For: 2.15.0 > > > Current Hits result only contains the lucene docId, score and assuming there will be a field with the name "contents". > This feature will allow specifying a new header value > {code} > .setHeader("RETURN_LUCENE_DOCS",constant("true")) > {code} > and return the actual lucene documents part of the Hits for further processing. This will allow us to retrieve any field from the actual lucene document. > Both Lucene component and LuceneQueryProcessor should support this new header. -- This message was sent by Atlassian JIRA (v6.3.4#6332)