manticoresoftware / manticoresearch-php

Official PHP client for Manticore Search
MIT License
167 stars 32 forks source link

Aggregation functions support #119

Open genby8 opened 1 year ago

genby8 commented 1 year ago

Read all client documents. Looked at the implementation of "facet" in the code. Am I right in thinking that there is no such functionality? For example "MIN" or "MAX"?
It after all as not simply to create sql. Worry about escaping field names or something else.
Or is there still some way to use the same "searchclass" SQL ?

sanikolaev commented 1 year ago

You are right. You have to use the SQL method for that https://github.com/manticoresoftware/manticoresearch-php/blob/master/docs/sql.md

genby8 commented 1 year ago

Thanks for the quick response. It is a pity that it is impossible to use the wrapper.

sanikolaev commented 1 year ago

Right. Let's keep this issue open as a feature request. The point is that we'll have to implement min/max in the Manticore JSON first (which the clients use).

sanikolaev commented 1 year ago

Related forum topic https://forum.manticoresearch.com/t/using-min-with-manticoresearch-php-sdk/1426/2