Return-Path: X-Original-To: apmail-tika-dev-archive@www.apache.org Delivered-To: apmail-tika-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 728369CA6 for ; Mon, 13 Aug 2012 11:32:04 +0000 (UTC) Received: (qmail 18336 invoked by uid 500); 13 Aug 2012 11:32:04 -0000 Delivered-To: apmail-tika-dev-archive@tika.apache.org Received: (qmail 18096 invoked by uid 500); 13 Aug 2012 11:31:59 -0000 Mailing-List: contact dev-help@tika.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tika.apache.org Delivered-To: mailing list dev@tika.apache.org Received: (qmail 18052 invoked by uid 500); 13 Aug 2012 11:31:57 -0000 Delivered-To: apmail-lucene-tika-dev@lucene.apache.org Received: (qmail 18047 invoked by uid 99); 13 Aug 2012 11:31:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Aug 2012 11:31:57 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 216.139.236.26 is neither permitted nor denied by domain of ywpark90@gmail.com) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Aug 2012 11:31:51 +0000 Received: from ben.nabble.com ([192.168.236.152]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1T0srq-0007ab-K8 for tika-dev@lucene.apache.org; Mon, 13 Aug 2012 04:31:30 -0700 Date: Mon, 13 Aug 2012 04:31:30 -0700 (PDT) From: 122jxgcn To: tika-dev@lucene.apache.org Message-ID: <1344857490611-4000796.post@n3.nabble.com> Subject: How can I let Tika know the resource name? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello, I'm using Solr's ExtractingRequestHandler to let Tika know the name of the file when indexing. I'm currently sending HTTP request something like /update/extract?stream.file=#{filepath}&literal.id=#{filepath}&resource.name=#{resource_name}&commit=true Will setting the resource.name variable let Tika know the name of the file so that it can determine Metadata of the file properly? (for example resource_name = "file.custom" then in Tika, Metadata.RESOURCE_NAME_KEY becomes "file.custom") I'm not sure how can I test this so I'm confused. Thank you. -- View this message in context: http://lucene.472066.n3.nabble.com/How-can-I-let-Tika-know-the-resource-name-tp4000796.html Sent from the Apache Tika - Development mailing list archive at Nabble.com.