Tom e it looks like you want to try the Join functionality:
http://lucene.apache.org/core/3_6_2/api/all/org/apache/lucene/search/join/package-summary.html

It is not completely flexible, but should be able to do what you describe.

Uwe

-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: u...@thetaphi.de

> -----Original Message-----
> From: neeraj shah [mailto:neerajsha...@gmail.com]
> Sent: Saturday, June 22, 2013 11:39 AM
> To: java-user@lucene.apache.org
> Subject: Re: how to fetch qyery feild + other feild related results in 
> Lucene3.6
> 
> i have already tried this. I am fetching the info of "ABC" and then passing
> then again in searcher with new Query then adding the required result.
> but this method taking very very long time (more than 100 secs). my data file
> is very big size would be around 137MB.
> So was asking is there another way to get the result in Lucene.
> 
> 
> On Sat, Jun 22, 2013 at 2:57 PM, Roberto Ragusa
> <m...@robertoragusa.it>wrote:
> 
> > On 06/22/2013 08:07 AM, neeraj shah wrote:
> > > Hello,
> > >
> > > Im using Lucene 3.6.2.  and my file, which i indexed ,is something
> > > like this :
> > >
> > >      FIELD-1   FIELD-2 FIELD-3 FIELD-4
> > > DOC1: A 1111 2222 ABC
> > > DOC2: B 1111 KKKK ABC
> > > DOC3: C 1111 JJJJ ABC
> > > DOC4: D 1111 LLLL ABC
> > > DOC5: E 1111 WWW ABC
> > > DOC6: F 2222 CCCC DEF
> > > DOC7: G 2222 SSSS DEF
> > > DOC8: H 2222 FFFF DEF
> > > DOC9: I 2222 QQQQ DEF
> > >
> > > now if i search over  field "FIELD-3" and search for "222" ,i would
> > > get
> > the
> > > single result of "ABC".
> > > My requirement is i want to fetch all results which contains "ABC".
> > > while quering Field-4 value is not knwon so i can not put direct
> > > "ABC" for
> > search.
> > >
> > > how can i do this?
> >
> > Two searches?
> > Search 2222, identify doc1, get the stored field4 "ABC", now search
> > for "field4:ABC".
> > If the first search returns many results, I suppose you may want to
> > add them all to the second search.
> >
> > --
> >    Roberto Ragusa    mail at robertoragusa.it
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
> > For additional commands, e-mail: java-user-h...@lucene.apache.org
> >
> >
> 
> 
> --
> With Regards,
> Neeraj Kumar Shah
> +919819474146


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to