[MDEV-6332] sphinx:// support for federated Created: 2014-06-11  Updated: 2018-02-11

Status: Open
Project: MariaDB Server
Component/s: Storage Engine - Federated
Fix Version/s: None

Type: Task Priority: Major
Reporter: Sergei Golubchik Assignee: Sergei Golubchik
Resolution: Unresolved Votes: 0
Labels: contribution, federatedx, patch, sphinx

Attachments: File federatedx_with_sphinxql-10.0.2.patch    

 Description   

Review the patch for adding SphinxQL support to FederatedX:

From: Markus Lidel
To: maria-developers@lists.launchpad.net
Subject: Extendet FederatedX storage engine to support updating Sphinx RT indexes
Date: Tue, 28 May 2013 23:46:26 +0200

Hello,

the Sphinx Search engine has RT indexes, which could be updated with a subset
of SQL commands, refered to as SphinxQL:

http://sphinxsearch.com/docs/2.1.1/sphinxql-reference.html

Because the FederatedX storage engine uses some commands, which Sphinx does
not know, here is a patch, wich extends the FederatedX storage engine to
support this subset of commands. Now its possible to update Sphinx RT indexes
directly from MariaDB. To create a connection to the RT index in the Sphinx
default RT-index:

index rt
{
  type = rt
 
  path = @CONFDIR@/data/rt
 
  rt_field = title
  rt_field = content
 
  rt_attr_string = title
  rt_attr_string = content
 
  rt_attr_uint = gid
}

you just have to call:

CREATE TABLE `rt` (
  `id` BIGINT UNSIGNED NOT NULL,
  `title` TEXT,
  `content` TEXT,
  `gid` INT UNSIGNED
) ENGINE=FEDERATED CONNECTION='sphinxql://root@localhost:9306/rt';

It would be great, if the attached patch could be integrated into MariaDB. If
you have any suggestions, please feel free to contact me.

Best regards,

Markus Lidel



 Comments   
Comment by Markus Lidel [ 2014-06-13 ]

The patch is released under the MCA.

Generated at Thu Feb 08 07:11:06 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.