From generalthomasbishop@example.net Tue Oct 04 22:18:46 2005
Return-Path: <generalthomasbishop@example.net>
Delivered-To: thomasbishop@example.net
Received: (qmail 99469 invoked from network); 4 Oct 2005 22:18:46 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155)
  by minotaur.apache.org with SMTP; 4 Oct 2005 22:18:46 -0000
Received: (qmail 49054 invoked by uid 500); 4 Oct 2005 22:18:45 -0000
Delivered-To: thomasbishop@example.net
Received: (qmail 49042 invoked by uid 500); 4 Oct 2005 22:18:45 -0000
Mailing-List: contact thomasbishop@example.net; run by ezmlm
Precedence: bulk
List-Help: <mailto:thomasbishop@example.net>
List-Unsubscribe: <mailto:thomasbishop@example.net>
List-Post: <mailto:thomasbishop@example.net>
List-Id: <general.lucene.apache.org>
Reply-To: thomasbishop@example.net
Delivered-To: mailing list thomasbishop@example.net
Received: (qmail 49031 invoked by uid 99); 4 Oct 2005 22:18:45 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Oct 2005 15:18:45 -0700
X-ASF-Spam-Status: No, hits=0.3 required=10.0
	tests=HTML_10_20,HTML_MESSAGE,RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: apache.org
Received-SPF: pass (asf.osuosl.org: domain of thomasbishop@example.net designates 83.161.120.155 as permitted sender)
Received: from [83.161.120.155] (HELO xproxy.gmail.com) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Oct 2005 15:18:47 -0700
Received: by xproxy.gmail.com with SMTP id s19so13523wxc
        for <thomasbishop@example.net>; Tue, 04 Oct 2005 15:18:21 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
        s=beta; d=gmail.com;
        h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type;
        b=EXzey3wv8aWYarfi+mGO9DBK1q7/n6YNUrC4HBc5CIrD6UAal4Xsy017R5APwonG0UB4bjDdHDfvu5m7IJuA6ooCvb0T1GDaodACTnwWFHwJZmX8BKk/ORcPLc/Z9eaal33pfVumS5WlrEK/Nq9v93eu8CEDvKQM8JIl7/DK704=
Received: by 83.161.120.155 with SMTP id n1mr41366wxb;
        Tue, 04 Oct 2005 15:18:21 -0700 (PDT)
Received: by 83.161.120.155 with HTTP; Tue, 4 Oct 2005 15:18:21 -0700 (PDT)
Message-ID: <thomasbishop@example.net>
Date: Wed, 5 Oct 2005 00:18:21 +0200
From: Fredrik Andersson <thomasbishop@example.net>
Reply-To: Fredrik Andersson <thomasbishop@example.net>
To: thomasbishop@example.net
Subject: Any tricks to IndexReader.termDocs(Term)?
MIME-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="----=_Part_2584_26062786.1128464301862"
X-Virus-Checked: Checked by ClamAV on apache.org
X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N

------=_Part_2584_26062786.1128464301862
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Hey Gang. Problem regarding the termDocs(Term) function, help most
appreciated.

// Create stored, indexed, non-tokenized field
Field field =3D new Field("someId", someInteger+"", true, true, false);
doc.add(field).

This field looks fine in Luke and can be read properly, however, when I try
to get all the documents with that certain someInteger:

indexReader.termDocs(new Term("someId", someInteger+""));

The returned TermDocs enumeration is empty. I have tried all the
combinations of stored/indexed/tokenized, but to no sucess. Any pointers on
what the heck is going on? I tried searching the "someId" field with Luke,
and I get no hits there either, even though the field looks fine and it's
indexed. I am using a StandardAnalyzer when writing the index.

Thanks,
Fredrik

------=_Part_2584_26062786.1128464301862--

From generalthomasbishop@example.net Tue Oct 04 23:46:29 2005
Return-Path: <generalthomasbishop@example.net>
Delivered-To: thomasbishop@example.net
Received: (qmail 26435 invoked from network); 4 Oct 2005 23:46:29 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155)
  by minotaur.apache.org with SMTP; 4 Oct 2005 23:46:29 -0000
Received: (qmail 56907 invoked by uid 500); 4 Oct 2005 23:46:28 -0000
Delivered-To: thomasbishop@example.net
Received: (qmail 56891 invoked by uid 500); 4 Oct 2005 23:46:28 -0000
Mailing-List: contact thomasbishop@example.net; run by ezmlm
Precedence: bulk
List-Help: <mailto:thomasbishop@example.net>
List-Unsubscribe: <mailto:thomasbishop@example.net>
List-Post: <mailto:thomasbishop@example.net>
List-Id: <general.lucene.apache.org>
Reply-To: thomasbishop@example.net
Delivered-To: mailing list thomasbishop@example.net
Received: (qmail 56880 invoked by uid 99); 4 Oct 2005 23:46:28 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Oct 2005 16:46:28 -0700
X-ASF-Spam-Status: No, hits=1.0 required=10.0
	tests=SPF_HELO_SOFTFAIL
X-Spam-Check-By: apache.org
Received-SPF: neutral (asf.osuosl.org: local policy)
Received: from [83.161.120.155] (HELO rescomp.berkeley.edu) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Oct 2005 16:46:31 -0700
Received: by rescomp.berkeley.edu (Postfix, from userid 1007)
	id DB3A05B779; Tue,  4 Oct 2005 16:46:01 -0700 (PDT)
Received: from localhost (localhost [83.161.120.155])
	by rescomp.berkeley.edu (Postfix) with ESMTP
	id D7FFE7F471; Tue,  4 Oct 2005 16:46:01 -0700 (PDT)
Date: Tue, 4 Oct 2005 16:46:01 -0700 (PDT)
From: Chris Hostetter <thomasbishop@example.net>
Sender: thomasbishop@example.net
To: thomasbishop@example.net,
	Fredrik Andersson <thomasbishop@example.net>
Subject: Re: Any tricks to IndexReader.termDocs(Term)?
In-Reply-To: <thomasbishop@example.net>
Message-ID: <thomasbishop@example.net>
References: <thomasbishop@example.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Virus-Checked: Checked by ClamAV on apache.org
X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N


FYI: Assuming you are using that java port of lucene, then
thomasbishop@example.net is probably a more approriate list of these
types of questions.

: indexReader.termDocs(new Term("someId", someInteger+""));
:
: The returned TermDocs enumeration is empty. I have tried all the

define "empty" ... is the refrence returned null?  if it is not null, how
are you using it? ... are you calling next() once prior to calling either
doc() or freq()?  (per the documentation for each of those methods) ...
is the first call of next() returning false?

if you can post a short unit test using a RAMDirectory that demonstrates
your problem, it's more likely other people will be able to offer advice.



-Hoss


From generalthomasbishop@example.net Sun Oct 23 21:44:49 2005
Return-Path: <generalthomasbishop@example.net>
Delivered-To: thomasbishop@example.net
Received: (qmail 85571 invoked from network); 23 Oct 2005 21:44:49 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155)
  by minotaur.apache.org with SMTP; 23 Oct 2005 21:44:49 -0000
Received: (qmail 22213 invoked by uid 500); 23 Oct 2005 21:44:48 -0000
Delivered-To: thomasbishop@example.net
Received: (qmail 22188 invoked by uid 500); 23 Oct 2005 21:44:47 -0000
Mailing-List: contact thomasbishop@example.net; run by ezmlm
Precedence: bulk
List-Help: <mailto:thomasbishop@example.net>
List-Unsubscribe: <mailto:thomasbishop@example.net>
List-Post: <mailto:thomasbishop@example.net>
List-Id: <general.lucene.apache.org>
Reply-To: thomasbishop@example.net
Delivered-To: mailing list thomasbishop@example.net
Received: (qmail 22177 invoked by uid 99); 23 Oct 2005 21:44:47 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Oct 2005 14:44:47 -0700
X-ASF-Spam-Status: No, hits=1.7 required=10.0
	tests=RCVD_IN_NJABL_DUL
X-Spam-Check-By: apache.org
Received-SPF: neutral (asf.osuosl.org: local policy)
Received: from [83.161.120.155] (HELO ylpvm29.prodigy.net) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Oct 2005 14:44:46 -0700
Received: from pimout4-ext.prodigy.net (pimout4-int.prodigy.net [83.161.120.155])
	by ylpvm29.prodigy.net (8.12.10 outbound/8.12.10) with ESMTP id j9NLioMw025770
	for <thomasbishop@example.net>; Sun, 23 Oct 2005 17:44:50 -0400
X-ORBL: [83.161.120.155]
Received: from [83.161.120.155] (adsl-69-228-85-9.dsl.pltn13.pacbell.net [83.161.120.155])
	by pimout4-ext.prodigy.net (8.13.4 outbound domainkey aix/8.13.4) with ESMTP id j9NLiIUa065888;
	Sun, 23 Oct 2005 17:44:22 -0400
Message-ID: <thomasbishop@example.net>
Date: Sun, 23 Oct 2005 14:44:17 -0700
From: Doug Cutting <thomasbishop@example.net>
User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc3 (X11/20050929)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: thomasbishop@example.net
Subject: ferret: lucene in Ruby
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Checked: Checked by ClamAV on apache.org
X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N

I just ran accross a Ruby port of Lucene:

http://ferret.davebalmain.com/trac/

Doug

From generalthomasbishop@example.net Sun Oct 23 21:52:43 2005
Return-Path: <generalthomasbishop@example.net>
Delivered-To: thomasbishop@example.net
Received: (qmail 87223 invoked from network); 23 Oct 2005 21:52:43 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155)
  by minotaur.apache.org with SMTP; 23 Oct 2005 21:52:43 -0000
Received: (qmail 25998 invoked by uid 500); 23 Oct 2005 21:52:42 -0000
Delivered-To: thomasbishop@example.net
Received: (qmail 25984 invoked by uid 500); 23 Oct 2005 21:52:42 -0000
Mailing-List: contact thomasbishop@example.net; run by ezmlm
Precedence: bulk
List-Help: <mailto:thomasbishop@example.net>
List-Unsubscribe: <mailto:thomasbishop@example.net>
List-Post: <mailto:thomasbishop@example.net>
List-Id: <general.lucene.apache.org>
Reply-To: thomasbishop@example.net
Delivered-To: mailing list thomasbishop@example.net
Received: (qmail 25969 invoked by uid 99); 23 Oct 2005 21:52:42 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Oct 2005 14:52:42 -0700
X-ASF-Spam-Status: No, hits=0.0 required=10.0
	tests=
X-Spam-Check-By: apache.org
Received-SPF: pass (asf.osuosl.org: local policy)
Received: from [83.161.120.155] (HELO 2556.ve.carpathiahost.net) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Oct 2005 14:52:40 -0700
Received: from bigyellow (rrcs-67-78-125-130.sw.biz.rr.com [83.161.120.155])
	by 2556.ve.carpathiahost.net (8.12.10/8.12.10) with ESMTP id j9NLqK2D025901
	for <thomasbishop@example.net>; Sun, 23 Oct 2005 17:52:21 -0400
Message-Id: <thomasbishop@example.net>
From: "James" <thomasbishop@example.net>
To: <thomasbishop@example.net>
Subject: RE: ferret: lucene in Ruby
Date: Sun, 23 Oct 2005 16:52:24 -0500
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook, Build 11.0.6353
Thread-Index: AcXYGv8R0d3UH9rSR7SxRBYKIMQn1wAAGgyw
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
In-Reply-To: <thomasbishop@example.net>
X-Virus-Checked: Checked by ClamAV on apache.org
X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N

Hehe... Ten times slower than Lucene.  I've been using Lucene for a year or
two now, and I've looked into various ports, and none of them seem to be
either fast enough, or production-ready.  It would seem that Doug has done a
hell of a job with the Java version, so let me take this opportunity to say
"Thanks!"

As an aside, I note that the Ruby port mentions faster indexing through C
extensions, but it doesn't say anything about searching.  Personally, I
don't care about indexing that much because it can be offloaded and doesn't
have to be done in real time (for me anyway).  I wonder if there is room for
substantial improvement in the searching, or if the efficiency of Lucene
there approaches theoretical limits?

Sincerely,
James

> -----Original Message-----
> From: Doug Cutting [mailto:thomasbishop@example.net]
> Sent: Sunday, October 23, 2005 4:44 PM
> To: thomasbishop@example.net
> Subject: ferret: lucene in Ruby
> 
> I just ran accross a Ruby port of Lucene:
> 
> http://ferret.davebalmain.com/trac/
> 
> Doug


From generalthomasbishop@example.net Fri Oct 28 22:37:04 2005
Return-Path: <generalthomasbishop@example.net>
Delivered-To: thomasbishop@example.net
Received: (qmail 96137 invoked from network); 28 Oct 2005 22:37:04 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155)
  by minotaur.apache.org with SMTP; 28 Oct 2005 22:37:04 -0000
Received: (qmail 62310 invoked by uid 500); 28 Oct 2005 22:37:03 -0000
Delivered-To: thomasbishop@example.net
Received: (qmail 62264 invoked by uid 500); 28 Oct 2005 22:37:02 -0000
Mailing-List: contact thomasbishop@example.net; run by ezmlm
Precedence: bulk
List-Help: <mailto:thomasbishop@example.net>
List-Unsubscribe: <mailto:thomasbishop@example.net>
List-Post: <mailto:thomasbishop@example.net>
List-Id: <general.lucene.apache.org>
Reply-To: thomasbishop@example.net
Delivered-To: mailing list thomasbishop@example.net
Received: (qmail 62249 invoked by uid 99); 28 Oct 2005 22:37:02 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Oct 2005 15:37:02 -0700
X-ASF-Spam-Status: No, hits=1.3 required=10.0
	tests=RCVD_NUMERIC_HELO
X-Spam-Check-By: apache.org
Received-SPF: neutral (asf.osuosl.org: local policy)
Received: from [83.161.120.155] (HELO cmsout03.mbox.net) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Oct 2005 15:36:58 -0700
Received: from cmsout03.mbox.net (cmsout03.mbox.net [83.161.120.155])
	by cmsout03.mbox.net (Postfix) with ESMTP id DC422180
	for <thomasbishop@example.net>; Fri, 28 Oct 2005 22:36:37 +0000 (GMT)
Received: from cmsapps02.cms.usa.net [83.161.120.155] by cmsout03.mbox.net via smtad (C8.MAIN.3.26F); 
	Fri, 28 Oct 2005 22:36:37 GMT
X-USANET-Source: 83.161.120.155  IN   thomasbishop@example.net cmsapps02.cms.usa.net
X-USANET-MsgId: XID619JJbwKl3499X03
Received: from uwdvg007.cms.usa.net [83.161.120.155] by cmsapps02.cms.usa.net
	(ASMTP/) via mtad (C8.MAIN.3.25R) 
	with ESMTP id 761JJbwKl0478M38; Fri, 28 Oct 2005 22:36:36 GMT
X-USANET-Auth: 83.161.120.155     AUTO thomasbishop@example.net uwdvg007.cms.usa.net
Received: from 83.161.120.155 [83.161.120.155] by uwdvg007.cms.usa.net 
	(USANET web-mailer CM.0402.7.36); Fri, 28 Oct 2005 22:36:36 -0000
Date: Fri, 28 Oct 2005 18:36:36 -0400
From: Ira Goldstein <thomasbishop@example.net>
To: <thomasbishop@example.net>
Subject: Term Vectors
X-Mailer: USANET web-mailer (CM.0402.7.36)
Mime-Version: 1.0
Message-ID: <thomasbishop@example.net>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Z-USANET-MsgId: XID761JJbwKl0478X38
X-Virus-Checked: Checked by ClamAV on apache.org
X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N

 Hi.  In a thread on the java-dev list, it was stated:

 "Now, you can get these term vectors per documents with the Lucene API i=
f the
index was built with the term vectors option."

  How does one invoke the term vectors option when building the index and=

where can one find a list of the various options (I really did try lookin=
g at
the docs, but could not find any reference to this).

  Thanks in advance for any help you can offer.
--Ira



From generalthomasbishop@example.net Sat Oct 29 00:22:02 2005
Return-Path: <generalthomasbishop@example.net>
Delivered-To: thomasbishop@example.net
Received: (qmail 31838 invoked from network); 29 Oct 2005 00:22:02 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155)
  by minotaur.apache.org with SMTP; 29 Oct 2005 00:22:02 -0000
Received: (qmail 29792 invoked by uid 500); 29 Oct 2005 00:22:01 -0000
Delivered-To: thomasbishop@example.net
Received: (qmail 29770 invoked by uid 500); 29 Oct 2005 00:22:01 -0000
Mailing-List: contact thomasbishop@example.net; run by ezmlm
Precedence: bulk
List-Help: <mailto:thomasbishop@example.net>
List-Unsubscribe: <mailto:thomasbishop@example.net>
List-Post: <mailto:thomasbishop@example.net>
List-Id: <general.lucene.apache.org>
Reply-To: thomasbishop@example.net
Delivered-To: mailing list thomasbishop@example.net
Received: (qmail 29759 invoked by uid 99); 29 Oct 2005 00:22:00 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Oct 2005 17:22:00 -0700
X-ASF-Spam-Status: No, hits=0.0 required=10.0
	tests=
X-Spam-Check-By: apache.org
Received-SPF: neutral (asf.osuosl.org: local policy)
Received: from [83.161.120.155] (HELO rescomp.berkeley.edu) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Oct 2005 17:21:56 -0700
Received: by rescomp.berkeley.edu (Postfix, from userid 1007)
	id F25C05B7E2; Fri, 28 Oct 2005 17:21:38 -0700 (PDT)
Received: from localhost (localhost [83.161.120.155])
	by rescomp.berkeley.edu (Postfix) with ESMTP id CDB837F475
	for <thomasbishop@example.net>; Fri, 28 Oct 2005 17:21:38 -0700 (PDT)
Date: Fri, 28 Oct 2005 17:21:38 -0700 (PDT)
From: Chris Hostetter <thomasbishop@example.net>
Sender: thomasbishop@example.net
To: thomasbishop@example.net
Subject: Re: Term Vectors
In-Reply-To: <thomasbishop@example.net>
Message-ID: <thomasbishop@example.net>
References: <thomasbishop@example.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Virus-Checked: Checked by ClamAV on apache.org
X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N

:  "Now, you can get these term vectors per documents with the Lucene API if the
: index was built with the term vectors option."
:
:   How does one invoke the term vectors option when building the index and
: where can one find a list of the various options (I really did try looking at
: the docs, but could not find any reference to this).

there are very few generic options that apply when "building the index"
... most options are specific to the individual documents as you add them
-- you can choose to store the TermVectors for the "FOO" field of one
document, but leave them out of another.

Options like wether or not a Field is indexed, stored, tokenized, or has
it's TermVector stored are all controlled when you construct the Field
object prior to adding it to the document...

http://lucene.apache.org/java/docs/api/org/apache/lucene/document/Field.html
http://lucene.apache.org/java/docs/api/org/apache/lucene/document/Document.html


-Hoss



{'source': 'Apache Software Foundation Public Mail Archives'}