RE: how to search miilions of record in Lucene query

2016-01-08 Thread Uwe Schindler
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



how to search miilions of record in Lucene query

2016-01-08 Thread Mugeesh Husain
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



RE: how to search miilions of record in Lucene query

2016-01-08 Thread Mugeesh Husain
@Uwe Schindler thank for your reply,

if i search (1,6,9...upto millions ) of files , response time will be too
late,

if i use TermsQuery, response time near about 1.2 second , but i am looking
for a solution, response will be 50-100 mili second.


Please suggest me how i will solve these issue or i should write custom
query parser n how ? 



--
View this message in context: 
http://lucene.472066.n3.nabble.com/how-to-search-miilions-of-record-in-Lucene-query-tp4249341p4249441.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