UDF

28 views
Skip to first unread message

mohitnegi

unread,
Jan 4, 2012, 5:19:07 AM1/4/12
to thinkin...@googlegroups.com
Does Thinking sphinx support UDF of sphinx?
If yes, then how to integrate?

Pat Allan

unread,
Jan 5, 2012, 4:16:34 AM1/5/12
to thinkin...@googlegroups.com
Hi Mohit

Thinking Sphinx has no interface for UDF (user defined functions, for those of you playing along at home) - but the recent Riddle releases have support for generating SphinxQL queries for adding/removing UDFs:

Riddle::Query.create_function(name, type, file)
Riddle::Query.drop_function(name)

Of course, you'll need to enable SphinxQL via the mysql41 flag for this to work (set mysql41 to a port number in your sphinx.yml), and connect via the MySQL2 gem:

connection = Riddle::Query.connection(address, port)
connection.query(sphinxql_statement)

Hope this helps!

--
Pat

On 04/01/2012, at 9:19 PM, mohitnegi wrote:

> Does Thinking sphinx support UDF of sphinx?
> If yes, then how to integrate?
>

> --
> You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/thinking-sphinx/-/ccIt0JsBO08J.
> To post to this group, send email to thinkin...@googlegroups.com.
> To unsubscribe from this group, send email to thinking-sphi...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/thinking-sphinx?hl=en.

Reply all
Reply to author
Forward
0 new messages