Admit we have lot of documents with _id (String) setted by ourself and a field with the same value of the _id as Long.
I want to run a filtered query on a list of Long , so I have 2 options :
add a must IdsQuery with my list of ids converted as String
add a must TermsQuery with my list of ids as Long
Question : wich one will be the fastest or you recommend ?