null+****@clear*****
null+****@clear*****
2012年 6月 28日 (木) 16:08:07 JST
Yoji SHIDARA 2012-06-28 16:08:07 +0900 (Thu, 28 Jun 2012) New Revision: c6d5a306e7519b9f1ca3fd86ae205494e75a6556 https://github.com/groonga/gcs/commit/c6d5a306e7519b9f1ca3fd86ae205494e75a6556 Log: Follow fake domain id change Modified files: bin/gcs-import-examples Modified: bin/gcs-import-examples (+5 -5) =================================================================== --- bin/gcs-import-examples 2012-06-28 16:04:37 +0900 (2ccafac) +++ bin/gcs-import-examples 2012-06-28 16:08:07 +0900 (e0ce7fe) @@ -8,10 +8,10 @@ This script setup an example domain and import data into the domain. Prerequsites: -1) You need to direct 'doc-example-example.localhost' and 'search-example-example.localhost' to 127.0.0.1 before trying this example. To do so: +1) You need to direct 'doc-example-00000000000000000000000000.localhost' and 'search-example-00000000000000000000000000.localhost' to 127.0.0.1 before trying this example. To do so: -$ sudo sh -c 'echo "127.0.0.1 doc-example-example.localhost" >> /etc/hosts' -$ sudo sh -c 'echo "127.0.0.1 search-example-example.localhost" >> /etc/hosts' +$ sudo sh -c 'echo "127.0.0.1 doc-example-00000000000000000000000000.localhost" >> /etc/hosts' +$ sudo sh -c 'echo "127.0.0.1 search-example-00000000000000000000000000.localhost" >> /etc/hosts' 2) You need to run gcs on port 3000. Just run gcs command without any options. @@ -49,7 +49,7 @@ echo echo "==== Indexing data" sdf_path=$(cd $(dirname $0);pwd)/../examples/example.sdf.json -curl -X POST --upload-file $sdf_path --header "Content-Type: application/json" -H "Host: doc-example-example.localhost" http://127.0.0.1:3000/2011-02-01/documents/batch +curl -X POST --upload-file $sdf_path --header "Content-Type: application/json" -H "Host: doc-example-00000000000000000000000000.localhost" http://127.0.0.1:3000/2011-02-01/documents/batch echo echo @@ -59,7 +59,7 @@ cat <<EOT Now you can try searching by -$ curl -H "Host: search-example-example.localhost" "http://127.0.0.1:3000/2011-02-01/search?q=Tokyo" +$ curl -H "Host: search-example-00000000000000000000000000.localhost" "http://127.0.0.1:3000/2011-02-01/search?q=Tokyo" or, open http://127.0.0.1:3000 -------------- next part -------------- HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B... ダウンロード