Return-Path: X-Original-To: apmail-lucy-user-archive@www.apache.org Delivered-To: apmail-lucy-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 36C2210257 for ; Fri, 23 Aug 2013 03:05:22 +0000 (UTC) Received: (qmail 99133 invoked by uid 500); 23 Aug 2013 03:05:22 -0000 Delivered-To: apmail-lucy-user-archive@lucy.apache.org Received: (qmail 98853 invoked by uid 500); 23 Aug 2013 03:05:12 -0000 Mailing-List: contact user-help@lucy.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@lucy.apache.org Delivered-To: mailing list user@lucy.apache.org Received: (qmail 98845 invoked by uid 99); 23 Aug 2013 03:05:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Aug 2013 03:05:10 +0000 X-ASF-Spam-Status: No, hits=-0.4 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URIBL_RHS_DOB X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of philip@zefr.com designates 209.85.160.46 as permitted sender) Received: from [209.85.160.46] (HELO mail-pb0-f46.google.com) (209.85.160.46) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Aug 2013 03:05:04 +0000 Received: by mail-pb0-f46.google.com with SMTP id rq2so107448pbb.19 for ; Thu, 22 Aug 2013 20:04:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:message-id:date:from:organization:user-agent :mime-version:to:subject:content-type; bh=FRNzMJe35yDxAD8Q+m8snHz8lfcOOhfnTDA0OdgjEQQ=; b=HsDwjcv7qEPvF21T1+5OJyH/27kqQvogZz2ayXvzffiz47hzcZeQnjDgmcIcOHfhFn bq0pBreksX0wmFA2VF4Mk5w80ftLSozc8ql7C0GRz24oMkicovAcl3GCtbzB1S+3mUBC 6LHEBuwpkYrHc+8N/Btl7nnklNsv6+yQXJTZOrXuCyZ3FT9KE4xjNcdH2nLUsVncaqaK C884EkyRGRFqeTmXiQPceGM8Iat42/vIOzR1EuA7GqXBWE0QycVWC8KQX6Mn0F57Bd8a ug0/E911GHFvgzu8xuJZnJsW2LhK8uPl7LJh/VHEmNGmmL2lZwOkAY9UTww/sEWSZ8rC SyPg== X-Gm-Message-State: ALoCoQmo7wSwUe4pePlvORKzNXKogAFyHx+Og4osR0eaz7TpoRnu5gioDKMzz2oJISeTOpBg6+6O X-Received: by 10.67.23.36 with SMTP id hx4mr18734501pad.54.1377227083158; Thu, 22 Aug 2013 20:04:43 -0700 (PDT) Received: from [172.16.5.206] (vpn.zefr.com. [199.87.220.226]) by mx.google.com with ESMTPSA id om2sm18206559pbc.30.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 22 Aug 2013 20:04:42 -0700 (PDT) Message-ID: <5216D147.4020900@zefr.com> Date: Thu, 22 Aug 2013 20:04:39 -0700 From: Philip Southam Organization: ZEFR User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130803 Thunderbird/17.0.8 MIME-Version: 1.0 To: user@lucy.apache.org X-Enigmail-Version: 1.4.6 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig9594DA1C8AFF2FD0ADEC2147" X-Virus-Checked: Checked by ClamAV on apache.org Subject: [lucy-user] GO (aka golang) Client Bindings for Lucy --------------enig9594DA1C8AFF2FD0ADEC2147 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, First, thanks for making a project that gives us something with the power of lucene in a C library. It's nice to have alternatives to xapian, to work with. So I've taken the last couple hours to utilize the power cgo to get the sample/getting_started.c ported and "running" in Go. Every thing seems to be working great, but I'm at a sticking point. How do I get the values out of the document once it they are found? Meaning the print statement returns something like this when the found results iterate through the loop. Result 0 %!s(*main._Ctype_uint8_t=3D0x263c710) Any ideas on how to get the value from the CB_Get_Ptr8 to return something meaningful in Go? I can provide the code or any other details if anybody needs. Thanks, --=20 Philip Southam Chief Architect / =D0=AFeverse =D0=ADngineer http://zefr.com http://youtu.be/28BXqQWqYJU --------------enig9594DA1C8AFF2FD0ADEC2147 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJSFtFHAAoJEJBQhM/umX4KblEP/07q9aeol8giBGGmqQvlteX1 ah/k0Fr16MZTNIFYfyRDjPcGRv3AeFUNanTUU9+vkvcTH/ZcL5DRyBfYAh2Y31PF JBRDAAW0Q+UagaiCI8gn3W4lX3kxhlGi/VRup6RA6oxGa+OaQHNdkzrQ0v63NuwB PD0qcgqjOuJmMGi9Qw2jwzIq40sY/yRIRDNCisf/4quggAgd0B2+uBsrdlo/W7VQ uEdPhzVWRAE1SvQgJNvxcQ/r+EPmPf5Lpw0Uy/A4E3TpIMlYC7Zcv/JqIx3Qyq0U JjZIhdzCAyAHtOGrBqEDUiRb89vBPS1J8wy/x0+P544Zx92JphU61HUXxmvKvHsx EjTJUZBrP3V2nKGA9KfncII8groblP8s/YkZDS8fqRl2mbt2zfY2EE0p4AWDK9eA c6CQaPL2ZWesZHK65A9d9GlIyjeyLBdasVvAyjo2bGOlGTGfCFE6aH2lWUy6bXe2 cZBOPSOaFAm9EOhRT3RaR8PmQ/ZwTkEowgGVLT6zBhaleenUDnlpixRbNhMz7itm Y92sjAUTud0PMBiTI6GlINmP45g/yMHbaUbyNJgTxcbnQMEw4CEFEVApFURkzZul oXsQ6a1OzT6+fSn6JkdbN5MoTsn1lonGF0T7s/7/h7lNduUHIcRqlQ2oIpJXPtPQ ncDVt02aXgXUg+UtbXB4 =nHls -----END PGP SIGNATURE----- --------------enig9594DA1C8AFF2FD0ADEC2147--