Implement the id predicate using a TermInSetQuery instead of a BooleanQuery

Description

Similar to what we did in in LuceneTextTermsPredicate.

In order to test the improvement, add a new test method in MatchIdPredicateSpecificsIT with more than 1024 IDs to be matched: the old implementation would fail with an exception, but the new one will work just fine.

Environment

None
Fixed

Assignee

Fabio Massimo Ercoli

Reporter

Yoann Rodière