Created
March 2, 2012 12:31
-
-
Save datenimperator/1958123 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c.aust@macbookpro:~$ curl -i http://bscope:8098/riak/test_my_kv_search | |
HTTP/1.1 200 OK | |
Vary: Accept-Encoding | |
Server: MochiWeb/1.1 WebMachine/1.9.0 (someone had painted it blue) | |
Date: Fri, 02 Mar 2012 15:00:26 GMT | |
Content-Type: application/json | |
Content-Length: 435 | |
{"props":{"name":"test_my_kv_search","allow_mult":false,"basic_quorum":false,"big_vclock":50,"chash_keyfun":{"mod":"riak_core_util","fun":"chash_std_keyfun"},"dw":"quorum","last_write_wins":false,"linkfun":{"mod":"riak_kv_wm_link_walker","fun":"mapreduce_linkfun"},"n_val":3,"notfound_ok":true,"old_vclock":86400,"postcommit":[],"pr":0,"precommit":[],"pw":0,"r":"quorum","rw":"quorum","small_vclock":50,"w":"quorum","young_vclock":20}} | |
# enabled indexing from ruby | |
c.aust@macbookpro:~$ curl -i http://bscope:8098/riak/test_my_kv_search | |
HTTP/1.1 200 OK | |
Vary: Accept-Encoding | |
Server: MochiWeb/1.1 WebMachine/1.9.0 (someone had painted it blue) | |
Date: Fri, 02 Mar 2012 15:01:58 GMT | |
Content-Type: application/json | |
Content-Length: 496 | |
{"props":{"allow_mult":false,"basic_quorum":false,"big_vclock":50,"chash_keyfun":{"mod":"riak_core_util","fun":"chash_std_keyfun"},"dw":"quorum","last_write_wins":false,"linkfun":{"mod":"riak_kv_wm_link_walker","fun":"mapreduce_linkfun"},"n_val":3,"name":"test_my_kv_search","notfound_ok":true,"old_vclock":86400,"postcommit":[],"pr":0,"precommit":[{"mod":"riak_search_kv_hook","fun":"precommit"}],"pw":0,"r":"quorum","rw":"quorum","search":true,"small_vclock":50,"w":"quorum","young_vclock":20}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Test data: | |
{ | |
"created_at":1305669600, | |
"account_name":"Komatsu xxx", | |
"firstname":"John", | |
"lastname":"Doe", | |
"phone":"12345/11234-123", | |
"cellphone":"", | |
"email":"john.doe@komatsu-xxx.com", | |
"position":"", | |
"organisation":"" | |
} | |
Object URL: | |
http://bscope:8098/riak/7a2ba51aae57d2450ed4c4b3ef969047/john.doe@komatsu-xxx.com | |
curl: | |
c.aust@macbookpro:~/app$ curl -I http://bscope:8098/riak/7a2ba51aae57d2450ed4c4b3ef969047/john.doe@komatsu-xxx.com | |
HTTP/1.1 200 OK | |
X-Riak-Vclock: a85hYGBgzGDKBVIcypz/fvoH9B/JYEpkzGNlsLc4eoIvCwA= | |
Vary: Accept-Encoding | |
Server: MochiWeb/1.1 WebMachine/1.9.0 (someone had painted it blue) | |
Link: </riak/7a2ba51aae57d2450ed4c4b3ef969047>; rel="up" | |
Last-Modified: Fri, 02 Mar 2012 12:25:35 GMT | |
ETag: "5IuNdIuYexatm4wmiwoS2l" | |
Date: Fri, 02 Mar 2012 12:30:47 GMT | |
Content-Type: application/json | |
Content-Length: 234 | |
Query URL: | |
http://bscope:8098/solr/7a2ba51aae57d2450ed4c4b3ef969047/select?q=Komatsu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c.aust@macbookpro:~/app$ curl -i http://bscope:8098/riak/7a2ba51aae57d2450ed4c4b3ef969047 | |
HTTP/1.1 200 OK | |
Vary: Accept-Encoding | |
Server: MochiWeb/1.1 WebMachine/1.9.0 (someone had painted it blue) | |
Date: Fri, 02 Mar 2012 14:56:23 GMT | |
Content-Type: application/json | |
Content-Length: 511 | |
{"props":{"allow_mult":false,"basic_quorum":false,"big_vclock":50,"chash_keyfun":{"mod":"riak_core_util","fun":"chash_std_keyfun"},"dw":"quorum","last_write_wins":false,"linkfun":{"mod":"riak_kv_wm_link_walker","fun":"mapreduce_linkfun"},"n_val":3,"name":"7a2ba51aae57d2450ed4c4b3ef969047","notfound_ok":true,"old_vclock":86400,"postcommit":[],"pr":0,"precommit":[{"mod":"riak_search_kv_hook","fun":"precommit"}],"pw":0,"r":"quorum","rw":"quorum","search":true,"small_vclock":50,"w":"quorum","young_vclock":20} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@bscope:~# riak-admin status | |
Attempting to restart script through sudo -u riak | |
1-minute stats for 'riak@127.0.0.1' | |
------------------------------------------- | |
vnode gets : 3 | |
vnode_puts : 3024 | |
vnode_index_reads : 0 | |
vnode_index_writes : 3024 | |
vnode_index_writes_postings : 0 | |
vnode_index_deletes : 0 | |
vnode_index_deletes_postings : 0 | |
read_repairs : 0 | |
vnode_gets_total : 3036 | |
vnode_puts_total : 3024 | |
vnode_index_reads_total : 0 | |
vnode_index_writes_total : 3024 | |
vnode_index_writes_postings_total : 0 | |
vnode_index_deletes_total : 0 | |
vnode_index_deletes_postings_total : 0 | |
node_gets : 0 | |
node_gets_total : 1012 | |
node_get_fsm_time_mean : 0 | |
node_get_fsm_time_median : 0 | |
node_get_fsm_time_95 : 0 | |
node_get_fsm_time_99 : 0 | |
node_get_fsm_time_100 : 0 | |
node_puts : 0 | |
node_puts_total : 1008 | |
node_put_fsm_time_mean : 0 | |
node_put_fsm_time_median : 0 | |
node_put_fsm_time_95 : 0 | |
node_put_fsm_time_99 : 0 | |
node_put_fsm_time_100 : 0 | |
node_get_fsm_siblings_mean : 0 | |
node_get_fsm_siblings_median : 0 | |
node_get_fsm_siblings_95 : 0 | |
node_get_fsm_siblings_99 : 0 | |
node_get_fsm_siblings_100 : 0 | |
node_get_fsm_objsize_mean : 0 | |
node_get_fsm_objsize_median : 0 | |
node_get_fsm_objsize_95 : 0 | |
node_get_fsm_objsize_99 : 0 | |
node_get_fsm_objsize_100 : 0 | |
read_repairs_total : 0 | |
coord_redirs_total : 0 | |
precommit_fail : 0 | |
postcommit_fail : 0 | |
cpu_nprocs : 217 | |
cpu_avg1 : 0 | |
cpu_avg5 : 10 | |
cpu_avg15 : 10 | |
mem_total : 1050656768 | |
mem_allocated : 905867264 | |
disk : [{"/",7852740,44}, | |
{"/dev",508792,1}, | |
{"/dev/shm",513016,0}, | |
{"/var/run",513016,1}, | |
{"/var/lock",513016,0}, | |
{"/lib/init/rw",513016,0}, | |
{"/var/lib/ureadahead/debugfs",7852740,44}] | |
nodename : 'riak@127.0.0.1' | |
connected_nodes : [] | |
sys_driver_version : <<"1.5">> | |
sys_global_heaps_size : 0 | |
sys_heap_type : private | |
sys_logical_processors : 2 | |
sys_otp_release : <<"R14B04">> | |
sys_process_count : 1575 | |
sys_smp_support : true | |
sys_system_version : <<"Erlang R14B04 (erts-5.8.5) [source] [smp:2:2] [rq:2] [async-threads:64] [kernel-poll:true]">> | |
sys_system_architecture : <<"i686-pc-linux-gnu">> | |
sys_threads_enabled : true | |
sys_thread_pool_size : 64 | |
sys_wordsize : 4 | |
ring_members : ['riak@127.0.0.1'] | |
ring_num_partitions : 64 | |
ring_ownership : <<"[{'riak@127.0.0.1',64}]">> | |
ring_creation_size : 64 | |
storage_backend : riak_kv_bitcask_backend | |
pbc_connects_total : 0 | |
pbc_connects : 0 | |
pbc_active : 0 | |
ssl_version : <<"4.1.6">> | |
public_key_version : <<"0.13">> | |
runtime_tools_version : <<"1.8.6">> | |
basho_stats_version : <<"1.0.2">> | |
riak_search_version : <<"1.1.0">> | |
riak_kv_version : <<"1.1.0">> | |
bitcask_version : <<"1.5.0">> | |
luke_version : <<"0.2.5">> | |
erlang_js_version : <<"1.0.1">> | |
mochiweb_version : <<"1.5.1">> | |
inets_version : <<"5.7.1">> | |
riak_pipe_version : <<"1.1.0">> | |
merge_index_version : <<"1.1.0">> | |
cluster_info_version : <<"1.2.1">> | |
basho_metrics_version : <<"1.0.0">> | |
riak_control_version : <<"0.1.0">> | |
riak_core_version : <<"1.1.0">> | |
lager_version : <<"1.0.0">> | |
riak_sysmon_version : <<"1.1.0">> | |
webmachine_version : <<"1.9.1">> | |
crypto_version : <<"2.0.4">> | |
os_mon_version : <<"2.2.7">> | |
sasl_version : <<"2.1.10">> | |
stdlib_version : <<"1.17.5">> | |
kernel_version : <<"2.14.5">> | |
executing_mappers : 0 | |
memory_total : 13473248 | |
memory_processes : 4814964 | |
memory_processes_used : 4811532 | |
memory_system : 8658284 | |
memory_atom : 698817 | |
memory_atom_used : 684118 | |
memory_binary : 208600 | |
memory_code : 5020367 | |
memory_ets : 439544 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<response> | |
<lst name="responseHeader"> | |
<int name="status">0</int> | |
<int name="QTime">1</int> | |
<lst name="params"> | |
<str name="indent">on</str> | |
<str name="start">0</str> | |
<str name="q">Komatsu</str> | |
<str name="q.op">or</str> | |
<str name="filter"></str> | |
<str name="df">value</str> | |
<str name="wt">standard</str> | |
<str name="version">1.1</str> | |
<str name="rows">0</str> | |
</lst> | |
</lst> | |
<result name="response" numFound="0" start="0" maxScore="0.0"> | |
</result> | |
</response> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@bscope:~# search-cmd show_schema 7a2ba51aae57d2450ed4c4b3ef969047 | |
Attempting to restart script through sudo -u riak | |
%% Schema for '7a2ba51aae57d2450ed4c4b3ef969047' | |
{ | |
schema, | |
[ | |
{version, "1.1"}, | |
{n_val, 3}, | |
{default_field, "value"}, | |
{analyzer_factory, {erlang, text_analyzers, whitespace_analyzer_factory}} | |
], | |
[ | |
%% Field names ending in "_num" are indexed as integers | |
{dynamic_field, [ | |
{name, "*_num"}, | |
{type, integer}, | |
{analyzer_factory, {erlang, text_analyzers, integer_analyzer_factory}} | |
]}, | |
%% Field names ending in "_int" are indexed as integers | |
{dynamic_field, [ | |
{name, "*_int"}, | |
{type, integer}, | |
{analyzer_factory, {erlang, text_analyzers, integer_analyzer_factory}} | |
]}, | |
%% Field names ending in "_dt" are indexed as dates | |
{dynamic_field, [ | |
{name, "*_dt"}, | |
{type, date}, | |
{analyzer_factory, {erlang, text_analyzers, noop_analyzer_factory}} | |
]}, | |
%% Field names ending in "_date" are indexed as dates | |
{dynamic_field, [ | |
{name, "*_date"}, | |
{type, date}, | |
{analyzer_factory, {erlang, text_analyzers, noop_analyzer_factory}} | |
]}, | |
%% Field names ending in "_txt" are indexed as full text" | |
{dynamic_field, [ | |
{name, "*_txt"}, | |
{type, string}, | |
{analyzer_factory, {erlang, text_analyzers, standard_analyzer_factory}} | |
]}, | |
%% Field names ending in "_text" are indexed as full text" | |
{dynamic_field, [ | |
{name, "*_text"}, | |
{type, string}, | |
{analyzer_factory, {erlang, text_analyzers, standard_analyzer_factory}} | |
]}, | |
%% Everything else is a string | |
{dynamic_field, [ | |
{name, "*"}, | |
{type, string}, | |
{analyzer_factory, {erlang, text_analyzers, whitespace_analyzer_factory}} | |
]} | |
] | |
}. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment