Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 79BF1200A5B for ; Wed, 25 May 2016 18:11:27 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 78C28160A29; Wed, 25 May 2016 16:11:27 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id BE914160A0F for ; Wed, 25 May 2016 18:11:26 +0200 (CEST) Received: (qmail 28380 invoked by uid 500); 25 May 2016 16:09:23 -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 22965 invoked by uid 99); 25 May 2016 16:02:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 May 2016 16:02:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 21D611A5203 for ; Wed, 25 May 2016 16:02:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.121 X-Spam-Level: X-Spam-Status: No, score=-0.121 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id cqiW752E3UTx for ; Wed, 25 May 2016 16:02:01 +0000 (UTC) Received: from mail-it0-f48.google.com (mail-it0-f48.google.com [209.85.214.48]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 3DB375F39B for ; Wed, 25 May 2016 16:02:00 +0000 (UTC) Received: by mail-it0-f48.google.com with SMTP id z123so31056338itg.0 for ; Wed, 25 May 2016 09:02:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=3r/mfNg2dgLoSOgIoln3kZBO9ltASr1TVy1QTVa4XJ4=; b=dSNloEGvlPvARPV/uCuyUdAsQweiGlXGrw9Z9f914WY/dLuLSt9g0xBNo2+7gKppv5 OJ644hT8+vQIvJlzWPAcXVLQi3Ga/HjXX3f02TOUJcgKIYVaAjilAknD5kNXIJyR0b2L UDB/9KOm9DCoHJ1XCLB9BPtRqwnF8+dpl6qmmhQFt2LlFSLlFVWWWVBi6HNCwm+lJqEh ph1jXSYh0gaj+D5+HxLDEfkjoJG4oRfysLM0VLKZbOj63PN96AM4Q4b5+3W8Xx3PFuZh PTP6sepTHIDcUY1GeCIQgK2nq0ZjfDudkUNtfQ28y9KGuXSDuqcIFSvrhPCPGW51YmMd mI+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=3r/mfNg2dgLoSOgIoln3kZBO9ltASr1TVy1QTVa4XJ4=; b=Q4oDYCY/JP0r097IBy4bXp/7CoWTXx1yJoaXa+45xEC0F/e+wqp9mxs7Xsz9kr3RHk eTLWh0tcq2si4BkTFHS08PkdtryXnRkgXFVY4uU0TkGhcgUONOvvXDSfKMroCniUxTcN A4vMaJCOtaKSf8VN/QEtOctfuwgNUimaty9YG4c1yUb+R4rkAeXt5krolB7zQmQdP1s/ qQdYRAvXYaK7QdsVgasb4rHuRiHUZ5oLEXDl41GUAGMt3Ene2O7eROjrG1GxJ4Ny3Rbt wMYPu8o15XcOvWRh+85ClRbvyhy2g6kO6+VZEFYudxGaPHVo5EJs/uSY34bRaJQ8FS75 y3Xw== X-Gm-Message-State: ALyK8tLLrPffXv7tzkQ5shKrBh+G69QrkHAzA2Sxi/SeNTbtCdgEHDJ36MTCz86MglfvJ/uxUHpIokJKC/kNuQ== X-Received: by 10.36.124.65 with SMTP id a62mr4654000itd.33.1464192119201; Wed, 25 May 2016 09:01:59 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.10.208 with HTTP; Wed, 25 May 2016 09:01:39 -0700 (PDT) In-Reply-To: References: From: Erick Erickson Date: Wed, 25 May 2016 09:01:39 -0700 Message-ID: Subject: Re: question about using JAVA API to post system file to index To: solr-user Content-Type: text/plain; charset=UTF-8 archived-at: Wed, 25 May 2016 16:11:27 -0000 This will get you started.... it should be relatively easy to peel out the database stuff, this example includes both.... https://lucidworks.com/blog/2012/02/14/indexing-with-solrj/ Best, Erick On Wed, May 25, 2016 at 7:09 AM, jwl wrote: > Hi, > I have learned that we can use post tool to post system file such as pdf, doc, etc to index. But I want to know how can we use JAVA API to finish this process? > > > I can construct one SolrInputDocument and index the specific fields I want to index, anyway or any API is used to post the complete file just as the same as 'bin/post -c mydata filepath'? > > > Hope your response, thanks.