Leo Galleguillos
Leo Galleguillos

Reputation: 2740

Changing name of `id` column in SphinxSearch index

I have created a SphinxSearch index which look like this:

+---------+-----------+
| Field   | Type      |
+---------+-----------+
| id      | bigint    |
| message | field     |
| created | timestamp |
+---------+-----------+

Is there a way to run the indexer to change the name of the id column? I'm concerned about having multiple indexes all with a column called id. I would prefer to name it message_id or something more descriptive.

Upvotes: 0

Views: 235

Answers (1)

barryhunter
barryhunter

Reputation: 21091

No. Id is a fixed name. Its the unique document id.

Can duplicate it into a unique attribute if you want

Upvotes: 1

Related Questions