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

Reply via email to