Search code examples
c++apisearchsearch-enginesphinx

What are some specific reasons why one would use SphinxAPI over SphinxQL?


Are there any capabilities that one inherently lacks that the other doesn't?

SphinxQL (according to benchmarks on the Sphinx blog) returns queries faster than SphinxAPI for interpreted languages and the premise of such a comparison would likely be that the functionalities present in both are the same.

Why the API then?

Any clarity on this issue is much appreciated.

(This is about the C++ based open source search engine)


Solution

  • I just found a satisfactory answer:

    SphinxQL is simply a language for querying Sphinx.

    SphinxAPI is a framework that allows you to compute results based on the queries.

    The queries could still be via SphinxQL or they could be via the API's syntax...it doesn't matter...SphinxQL and the SphinxAPI are different objects that accomplish different things (as highlighted above)