Include index name in results?


#1

Hi,

We are using SphinxQL to query 3 indexes simultaneously.
We are returning the ID and WEIGHT() of all three indexes, but is it also possible to somehow include the index name which held each given record?

I.e.: the result set would look like this:

ID,WEIGHT(),IDX
1,1000,idx1
22,1000,idx2
9,1500,idx2
14,1600,idx3
5,1600,idx3

Thanks!


#2

Currently there is no way to do that. For now you could add string attribute to every document and put index name there or uint attribute then set index number in indexes list there.

You also might create feature request at Github to be informed when feature will be implemented.


#3

Okay, tomat, thank you for your reply.

We will find another way around it.