[Groonga-commit] groonga/gcs [master] Oputput search endpoint

Back to archive index

YUKI Hiroshi null+****@clear*****
Tue Aug 28 19:59:54 JST 2012


YUKI Hiroshi	2012-08-28 19:59:54 +0900 (Tue, 28 Aug 2012)

  New Revision: f8874e16bf1d948e28ea0c551f161d003a9fec87
  https://github.com/groonga/gcs/commit/f8874e16bf1d948e28ea0c551f161d003a9fec87

  Log:
    Oputput search endpoint

  Modified files:
    bin/gcs-import-examples

  Modified: bin/gcs-import-examples (+4 -4)
===================================================================
--- bin/gcs-import-examples    2012-08-28 19:46:17 +0900 (5ad4a75)
+++ bin/gcs-import-examples    2012-08-28 19:59:54 +0900 (7e763e9)
@@ -44,12 +44,12 @@ echo
 echo "==== Creating 'example' domain"
 
 $bin_path/gcs-create-domain --domain-name example
-
-describe_domain_result=`$bin_path/gcs-describe-domain --domain-name example`
-echo $describe_domain_result
 echo
 echo
 
+documents_endpoint=`$bin_path/gcs-describe-domain --domain-name example | grep "Document Service endpoint" | cut -d " " -f 4`
+search_endpoint=`$bin_path/gcs-describe-domain --domain-name example | grep "Search Service endpoint" | cut -d " " -f 4`
+
 echo "==== Adding index fields"
 echo "== Creating 'name' field"
 $bin_path/gcs-configure-fields --domain-name example --name name --type text --option result
@@ -71,7 +71,7 @@ echo
 
 echo
 echo "==== Indexing data"
-$bin_path/gcs-post-sdf --domain-name example --source $base_path/examples/example.sdf.json
+$bin_path/gcs-post-sdf --domain-name example $base_path/examples/example.sdf.json
 echo
 
 echo
-------------- next part --------------
HTML����������������������������...
Download 



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