[Groonga-commit] pgroonga/pgroonga at de318cd [master] Put query_expand after groonga_command in all locations

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Jun 27 09:37:41 JST 2017


Kouhei Sutou	2017-06-27 09:37:41 +0900 (Tue, 27 Jun 2017)

  New Revision: de318cd7566be6488c2c18ec3c9cdf09c60cf805
  https://github.com/pgroonga/pgroonga/commit/de318cd7566be6488c2c18ec3c9cdf09c60cf805

  Message:
    Put query_expand after groonga_command in all locations

  Modified files:
    data/pgroonga.sql
    src/pgroonga.c

  Modified: data/pgroonga.sql (+7 -7)
===================================================================
--- data/pgroonga.sql    2017-06-27 09:31:00 +0900 (da28757)
+++ data/pgroonga.sql    2017-06-27 09:37:41 +0900 (48691c2)
@@ -2,13 +2,6 @@ SET search_path = public;
 
 CREATE SCHEMA pgroonga;
 
-CREATE FUNCTION pgroonga.query_expand(term text)
-	RETURNS text
-	AS 'MODULE_PATHNAME', 'pgroonga_query_expand'
-	LANGUAGE C
-	STABLE
-	STRICT;
-
 CREATE FUNCTION pgroonga.score("row" record)
 	RETURNS float8
 	AS 'MODULE_PATHNAME', 'pgroonga_score'
@@ -37,6 +30,13 @@ CREATE FUNCTION pgroonga.command(groongaCommand text, arguments text[])
 	VOLATILE
 	STRICT;
 
+CREATE FUNCTION pgroonga.query_expand(term text)
+	RETURNS text
+	AS 'MODULE_PATHNAME', 'pgroonga_query_expand'
+	LANGUAGE C
+	STABLE
+	STRICT;
+
 CREATE FUNCTION pgroonga.snippet_html(target text, keywords text[])
 	RETURNS text[]
 	AS 'MODULE_PATHNAME', 'pgroonga_snippet_html'

  Modified: src/pgroonga.c (+11 -11)
===================================================================
--- src/pgroonga.c    2017-06-27 09:31:00 +0900 (699c6c5)
+++ src/pgroonga.c    2017-06-27 09:37:41 +0900 (f69d661)
@@ -1227,17 +1227,6 @@ PGrnCollectScore(Relation table, HeapTuple tuple)
 	return score;
 }
 /**
-* pgroonga.query_expand(term text) : text
-*/
-Datum
-pgroonga_query_expand(PG_FUNCTION_ARGS)
-{
-  text *term = PG_GETARG_TEXT_PP(0);
-  
-  PG_RETURN_TEXT_P(term);
-}
-
-/**
  * pgroonga.score(row record) : float8
  */
 Datum
@@ -1430,6 +1419,17 @@ pgroonga_command(PG_FUNCTION_ARGS)
 	PG_RETURN_TEXT_P(result);
 }
 
+/**
+* pgroonga.query_expand(term text) : text
+*/
+Datum
+pgroonga_query_expand(PG_FUNCTION_ARGS)
+{
+  text *term = PG_GETARG_TEXT_PP(0);
+
+  PG_RETURN_TEXT_P(term);
+}
+
 static void
 PGrnDatumExtractString(Datum datum,
 					   Oid type,
-------------- next part --------------
HTML����������������������������...
下載 



More information about the Groonga-commit mailing list
Back to archive index