Not a bug inType

au lait

Well-known member
Affected version
2.0.1
Hello,

with the XF search it is possible to search for several content types
Code:
 $query->inType(['post', 'thread']);
Works fine.

But this code becomes your downfall when you use ES :)
Elasticsearch error: [term] query does not support array of values
 
The inType() method doesn't take an array of types -- it takes a single type.

If you want to pass an array in, you need to use the inTypes() method.
 
Back
Top Bottom