Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 13034 invoked from network); 18 Nov 2009 22:30:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Nov 2009 22:30:59 -0000 Received: (qmail 9590 invoked by uid 500); 18 Nov 2009 22:30:57 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 9533 invoked by uid 500); 18 Nov 2009 22:30:57 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 9523 invoked by uid 99); 18 Nov 2009 22:30:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Nov 2009 22:30:57 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ctignor@thinkmap.com designates 74.125.92.27 as permitted sender) Received: from [74.125.92.27] (HELO qw-out-2122.google.com) (74.125.92.27) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Nov 2009 22:30:48 +0000 Received: by qw-out-2122.google.com with SMTP id 5so334261qwd.53 for ; Wed, 18 Nov 2009 14:30:27 -0800 (PST) MIME-Version: 1.0 Received: by 10.229.39.69 with SMTP id f5mr1530079qce.107.1258583427651; Wed, 18 Nov 2009 14:30:27 -0800 (PST) In-Reply-To: References: <6f287d1b0911181339k7f22fdfs1fd093c752fccb82@mail.gmail.com> Date: Wed, 18 Nov 2009 17:30:27 -0500 Message-ID: <6f287d1b0911181430l6d48e75ex4f262cfead0cfd77@mail.gmail.com> Subject: Re: recovering terms hit from wildcard queries From: Christopher Tignor To: java-user@lucene.apache.org, simon.willnauer@gmail.com Content-Type: multipart/alternative; boundary=0016364275f72018c70478acca11 X-Virus-Checked: Checked by ClamAV on apache.org --0016364275f72018c70478acca11 Content-Type: text/plain; charset=ISO-8859-1 Thanks - that might work though I believe would produce many queries instead of just one to maintain the specific Term used to match a given hit document. I presume then I would get all the actual terms from the WildcardTermEnum that my wildcard containing string refers to and then use them each in separate query so I could know precisely which Term is associated with a given document. thanks, C>T> On Wed, Nov 18, 2009 at 5:16 PM, Simon Willnauer < simon.willnauer@googlemail.com> wrote: > You could use WildcardTermEnum directly and pass your term and the > reader to it. This will allow you to enumerate all terms that match > your wildcard term. > Is that what are you asking for? > > simon > > On Wed, Nov 18, 2009 at 10:39 PM, Christopher Tignor > wrote: > > Hello, > > > > Firstly, thanks for all the good answers and support form this mailing > list. > > > > Would it be possible and if so, what would be the best way to recover the > > terms filled in for a wildcard query following a successful search? > > > > For example: > > If I parse and execute a query using the string "my*" and get a > collection > > of document ids that match this search, > > is there a good way to determine whether this query found "myopic", > "mylar" > > or some other term without loading/searching the returned documents? > > > > thanks! > > > > C>T> > > > > -- > > TH!NKMAP > > > > Christopher Tignor | Senior Software Architect > > 155 Spring Street NY, NY 10012 > > p.212-285-8600 x385 f.212-285-8999 > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > > -- TH!NKMAP Christopher Tignor | Senior Software Architect 155 Spring Street NY, NY 10012 p.212-285-8600 x385 f.212-285-8999 --0016364275f72018c70478acca11--