lucene - Solr search for lots of values -


I am using Solr to search for long list of IDs:

  ID: ("4d0dbdd9-d6e1-b3a4-490a-6a9d98e276be" "4954d037-f2ee-8c54-c14e-fa705af9a316" "0795e3d5-1676-a3d4-2103-45ce37a4fb2c" "3e4c790f-5924-37b4-9d41-bca2781892ec" "AE 30 E-57-1012-d354-15fb-5f77834f23a 9 "" 7bdf6790-de0c-ae04-3539-4cce5c3fa1ff "" b350840f-6e53-9da4-f5c2-dc5029fa4b64 "" FD 101eb56-bc4c-a444-89aa-dc92fdfd3242 "" 4afb2c66- Cec9-8b84-8988-dc52964795c2 "" 73882c65-1c5b-b3c4-0ded-cf561be07021 "" 5712422c-12f8-ece4-0510-8f9d25055dd9 "... etc  

It worked till a point Does, but the shape with a message above a certain one is unsuccessful: Lots of buttons Ion clause . You can increase the limit in Lilorphying XML, but it will only take it yet - and I hope the range is for one reason:

   

I can divide the query into several Ti ones, but it will sort me out with the result. Should be the way?

You should use a Lausanne filter instead of building a huge Boolean query. Using FieldCacheTermsFilter will translate your UID into a Lucene docidet, and it will do it fast because it is doing this through fieldcatch.


Comments