Hi,
this is not responsibility of a query parser. You need the right Query class!
And here it is:
(Lucene 5): new TermsQuery(array/list of terms)
https://lucene.apache.org/core/5_4_0/queries/org/apache/lucene/queries/TermsQuery.html
(Lucene 4): new ConstantScoreQuery(TermsFilter(array/list of terms))
https://lucene.apache.org/core/4_10_4/queries/org/apache/lucene/queries/TermsFilter.html
The terms are instances of Term with your ID-field name and the ID value. Any
document that has any of the listed IDs will match.
-
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: u...@thetaphi.de
> -Original Message-
> From: Mugeesh Husain [mailto:muge...@gmail.com]
> Sent: Friday, January 08, 2016 8:05 AM
> To: dev@lucene.apache.org
> Subject: how to search miilions of record in Lucene query
>
> Hello,
> How to create Lucene query parser which could accept 1 millions ID search
> like ID:1,2,.. upto 1 Millions with good performance.
>
> Please give me suggestion which query parser i should use or custom etc
>
> Thanks
>
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/how-to-
> search-miilions-of-record-in-Lucene-query-tp4249341.html
> Sent from the Lucene - Java Developer mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
> For additional commands, e-mail: dev-h...@lucene.apache.org
-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org