-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for KV datatypes (counters, sets, maps) #250
Conversation
@rzezeski I'd love a little help here, for some reason yokozuna with my branch creates an unusable cluster in riak_test. In the original directory, the dev nodes start up just fine. In my rtdev, solr bombs. Here's a console output: https://gist.github.com/7936269 |
@@ -32,7 +32,11 @@ | |||
{"application/json",yz_json_extractor}, | |||
{"application/xml",yz_xml_extractor}, | |||
{"text/plain",yz_text_extractor}, | |||
{"text/xml",yz_xml_extractor}]). | |||
{"text/xml",yz_xml_extractor}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This list needs to be ordered as the ordsets
modules is used to determine extractor.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed in a0fb872
* Extractor registrations have to be sorted. * There's a tiny delay (about 1s) in committing to Solr, so we have to use rt:wait_until/1 for the queries. * URL-escape fields and terms in search queries going over HTTP. * Cleanup whitespace
%% {<<"name_register">>, <<"Ryan Zezeski">>}, | ||
%% {<<"phones_set">>, <<"555-5555">>}, | ||
%% {<<"phones_set">>, <<"867-5309">>}, | ||
%% {<<"page_views_counter">>, <<"1502">>}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm curious why *_flag is boolean, but *_counter is binary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm following convention of the JSON extractor. Should it be an integer?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nevermind, this will work fine. I forgot we converted json numbers to binary too.
👍 seems all good to me (though I should really run the tests) |
Yes, please someone make sure they paste the riak_test results output in the PR. All tests but |
@rzezeski Is it that my schema changes broke |
@seancribbs No, caused by upgrade to solr 4.6 (#245). |
|
||
-spec field_name(field_path_name(), datatype(), binary()) -> binary(). | ||
field_name(undefined, map, _Sep) -> | ||
%% (timeforthat) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got some time for that in 0a31d51
+1 |
👯 WOO! |
Add support for KV datatypes (counters, sets, maps)
Where's my riak test output? |
@rzezeski Would mine be sufficient? Do you need a full run of verify.sh? |
@seancribbs I just want to make sure someone ran the full suite. If no one did it's not a huge deal as I will run it on develop soon enough. I know I don't always follow this rule myself but moving forward it would be nice if the result output was a prerequisite for a PR being merged. |
Dialyzer had two issues with new extractor. I haven't looked at them closely as I'm trying to do something else ATM.
|
@rzezeski Thanks, will fix. |
@rzezeski Sorry about that. My security failure is unrelated to this
|
@coderoshi No problem, thanks for attaching the output. |
yz_dt_extractor
.riak_kv
TODO: