-
Notifications
You must be signed in to change notification settings - Fork 536
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
119 additions
and
119 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,121 +1,121 @@ | ||
[ | ||
%% Set the schema... | ||
{schema, "../_files/sample100/schema.def"}, | ||
|
||
{echo, "Indexing documents..."}, | ||
{solr_update, "../_files/sample100/solr_add.xml"}, | ||
|
||
{echo, "Perform some queries. (XML)"}, | ||
{solr_select, | ||
[{q, "acc:ABC"}, {wt, xml}, {rows, 999}], | ||
[{length, 88}]}, | ||
{solr_select, | ||
[{q, "(color:red OR color:blue)"}, {wt, xml}, {rows, 999}], | ||
[{length, 29}]}, | ||
|
||
{echo, "Change default field. (XML)"}, | ||
{solr_select, | ||
[{df, "key"}, {q, "keyAAB"}, {wt, xml}, {rows, 999}], | ||
[{length, 1}]}, | ||
{solr_select, | ||
[{df, "color"}, {q, "red OR blue"}, {wt, xml}, {rows, 999}], | ||
[{length, 29}]}, | ||
|
||
{echo, "Change default operation. (XML)"}, | ||
{solr_select, | ||
[{"q.op", "or"}, {q, "AAC AAJ"}, {wt, xml}, {rows, 999}], | ||
[{length, 98}]}, | ||
{solr_select, | ||
[{"q.op", "and"}, {q, "AAC AAJ"}, {wt, xml}, {rows, 999}], | ||
[{length, 91}]}, | ||
|
||
{echo, "Test start. (XML)"}, | ||
{solr_select, | ||
[{q, "acc:ABC"}, {wt, xml}, {start, 1}, {rows, 999}], | ||
[{length, 87}]}, | ||
{solr_select, | ||
[{q, "acc:ABC"}, {wt, xml}, {start, 20}, {rows, 999}], | ||
[{length, 68}]}, | ||
{solr_select, | ||
[{q, "acc:ABC"}, {wt, xml}, {start, 87}, {rows, 999}], | ||
[{length, 1}]}, | ||
|
||
{echo, "Test rows. (XML)"}, | ||
{solr_select, | ||
[{q, "acc:ABC"}, {wt, xml}, {rows, 10}, {rows, 999}], | ||
[{length, 10}]}, | ||
{solr_select, | ||
[{q, "acc:ABC"}, {wt, xml}, {rows, 20}, {rows, 999}], | ||
[{length, 20}]}, | ||
|
||
{echo, "Test start and rows. (XML)"}, | ||
{solr_select, | ||
[{q, "acc:ABC"}, {wt, xml}, {start, 60}, {rows, 20}, {rows, 999}], | ||
[{length, 20}]}, | ||
{solr_select, | ||
[{q, "acc:ABC"}, {wt, xml}, {start, 70}, {rows, 20}, {rows, 999}], | ||
[{length, 18}]}, | ||
|
||
|
||
{echo, "Perform some queries. (JSON)"}, | ||
{solr_select, | ||
[{q, "acc:ABC"}, {wt, json}, {rows, 999}], | ||
[{length, 88}]}, | ||
{solr_select, | ||
[{q, "(color:red OR color:blue)"}, {wt, json}, {rows, 999}], | ||
[{length, 29}]}, | ||
|
||
{echo, "Change default field. (JSON)"}, | ||
{solr_select, | ||
[{df, "key"}, {q, "keyAAB"}, {wt, json}, {rows, 999}], | ||
[{length, 1}]}, | ||
{solr_select, | ||
[{df, "color"}, {q, "red OR blue"}, {wt, json}, {rows, 999}], | ||
[{length, 29}]}, | ||
|
||
{echo, "Change default operation. (JSON)"}, | ||
{solr_select, | ||
[{"q.op", "or"}, {q, "AAC AAJ"}, {wt, json}, {rows, 999}], | ||
[{length, 98}]}, | ||
{solr_select, | ||
[{"q.op", "and"}, {q, "AAC AAJ"}, {wt, json}, {rows, 999}], | ||
[{length, 91}]}, | ||
|
||
{echo, "Test start. (JSON)"}, | ||
{solr_select, | ||
[{q, "acc:ABC"}, {wt, json}, {start, 1}, {rows, 999}], | ||
[{length, 87}]}, | ||
{solr_select, | ||
[{q, "acc:ABC"}, {wt, json}, {start, 20}, {rows, 999}], | ||
[{length, 68}]}, | ||
{solr_select, | ||
[{q, "acc:ABC"}, {wt, json}, {start, 87}, {rows, 999}], | ||
[{length, 1}]}, | ||
|
||
{echo, "Test rows. (JSON)"}, | ||
{solr_select, | ||
[{q, "acc:ABC"}, {wt, json}, {rows, 10}, {rows, 999}], | ||
[{length, 10}]}, | ||
{solr_select, | ||
[{q, "acc:ABC"}, {wt, json}, {rows, 20}, {rows, 999}], | ||
[{length, 20}]}, | ||
|
||
{echo, "Test start and rows. (JSON)"}, | ||
{solr_select, | ||
[{q, "acc:ABC"}, {wt, json}, {start, 60}, {rows, 20}, {rows, 999}], | ||
[{length, 20}]}, | ||
{solr_select, | ||
[{q, "acc:ABC"}, {wt, json}, {start, 70}, {rows, 20}, {rows, 999}], | ||
[{length, 18}]}, | ||
|
||
{echo, "Test <commit />, which is a noop in Riak Search."}, | ||
{solr_update, "./commit.xml"}, | ||
|
||
{echo, "Test <optimize />, which is a noop in Riak Search."}, | ||
{solr_update, "./optimize.xml"}, | ||
%% Cleanup. | ||
{echo, "De-indexing documents..."}, | ||
{solr_update, "../_files/sample100/solr_delete_all.xml"}, | ||
{echo, "Done"} | ||
%% Set the schema... | ||
{schema, "../_files/sample100/schema.def"}, | ||
|
||
{echo, "Indexing documents..."}, | ||
{solr_update, "../_files/sample100/solr_add.xml"}, | ||
|
||
{echo, "Perform some queries. (XML)"}, | ||
{solr_select, | ||
[{q, "acc:ABC"}, {wt, xml}, {rows, 999}], | ||
[{length, 88}]}, | ||
{solr_select, | ||
[{q, "(color:red OR color:blue)"}, {wt, xml}, {rows, 999}], | ||
[{length, 29}]}, | ||
|
||
{echo, "Change default field. (XML)"}, | ||
{solr_select, | ||
[{df, "key"}, {q, "keyAAB"}, {wt, xml}, {rows, 999}], | ||
[{length, 1}]}, | ||
{solr_select, | ||
[{df, "color"}, {q, "red OR blue"}, {wt, xml}, {rows, 999}], | ||
[{length, 29}]}, | ||
|
||
{echo, "Change default operation. (XML)"}, | ||
{solr_select, | ||
[{"q.op", "or"}, {q, "AAC AAJ"}, {wt, xml}, {rows, 999}], | ||
[{length, 98}]}, | ||
{solr_select, | ||
[{"q.op", "and"}, {q, "AAC AAJ"}, {wt, xml}, {rows, 999}], | ||
[{length, 91}]}, | ||
|
||
{echo, "Test start. (XML)"}, | ||
{solr_select, | ||
[{q, "acc:ABC"}, {wt, xml}, {start, 1}, {rows, 999}], | ||
[{length, 87}]}, | ||
{solr_select, | ||
[{q, "acc:ABC"}, {wt, xml}, {start, 20}, {rows, 999}], | ||
[{length, 68}]}, | ||
{solr_select, | ||
[{q, "acc:ABC"}, {wt, xml}, {start, 87}, {rows, 999}], | ||
[{length, 1}]}, | ||
|
||
{echo, "Test rows. (XML)"}, | ||
{solr_select, | ||
[{q, "acc:ABC"}, {wt, xml}, {rows, 10}, {rows, 999}], | ||
[{length, 10}]}, | ||
{solr_select, | ||
[{q, "acc:ABC"}, {wt, xml}, {rows, 20}, {rows, 999}], | ||
[{length, 20}]}, | ||
|
||
{echo, "Test start and rows. (XML)"}, | ||
{solr_select, | ||
[{q, "acc:ABC"}, {wt, xml}, {start, 60}, {rows, 20}, {rows, 999}], | ||
[{length, 20}]}, | ||
{solr_select, | ||
[{q, "acc:ABC"}, {wt, xml}, {start, 70}, {rows, 20}, {rows, 999}], | ||
[{length, 18}]}, | ||
|
||
|
||
{echo, "Perform some queries. (JSON)"}, | ||
{solr_select, | ||
[{q, "acc:ABC"}, {wt, json}, {rows, 999}], | ||
[{length, 88}]}, | ||
{solr_select, | ||
[{q, "(color:red OR color:blue)"}, {wt, json}, {rows, 999}], | ||
[{length, 29}]}, | ||
|
||
{echo, "Change default field. (JSON)"}, | ||
{solr_select, | ||
[{df, "key"}, {q, "keyAAB"}, {wt, json}, {rows, 999}], | ||
[{length, 1}]}, | ||
{solr_select, | ||
[{df, "color"}, {q, "red OR blue"}, {wt, json}, {rows, 999}], | ||
[{length, 29}]}, | ||
|
||
{echo, "Change default operation. (JSON)"}, | ||
{solr_select, | ||
[{"q.op", "or"}, {q, "AAC AAJ"}, {wt, json}, {rows, 999}], | ||
[{length, 98}]}, | ||
{solr_select, | ||
[{"q.op", "and"}, {q, "AAC AAJ"}, {wt, json}, {rows, 999}], | ||
[{length, 91}]}, | ||
|
||
{echo, "Test start. (JSON)"}, | ||
{solr_select, | ||
[{q, "acc:ABC"}, {wt, json}, {start, 1}, {rows, 999}], | ||
[{length, 87}]}, | ||
{solr_select, | ||
[{q, "acc:ABC"}, {wt, json}, {start, 20}, {rows, 999}], | ||
[{length, 68}]}, | ||
{solr_select, | ||
[{q, "acc:ABC"}, {wt, json}, {start, 87}, {rows, 999}], | ||
[{length, 1}]}, | ||
|
||
{echo, "Test rows. (JSON)"}, | ||
{solr_select, | ||
[{q, "acc:ABC"}, {wt, json}, {rows, 10}, {rows, 999}], | ||
[{length, 10}]}, | ||
{solr_select, | ||
[{q, "acc:ABC"}, {wt, json}, {rows, 20}, {rows, 999}], | ||
[{length, 20}]}, | ||
|
||
{echo, "Test start and rows. (JSON)"}, | ||
{solr_select, | ||
[{q, "acc:ABC"}, {wt, json}, {start, 60}, {rows, 20}, {rows, 999}], | ||
[{length, 20}]}, | ||
{solr_select, | ||
[{q, "acc:ABC"}, {wt, json}, {start, 70}, {rows, 20}, {rows, 999}], | ||
[{length, 18}]}, | ||
|
||
{echo, "Test <commit />, which is a noop in Riak Search."}, | ||
{solr_update, "./commit.xml"}, | ||
|
||
{echo, "Test <optimize />, which is a noop in Riak Search."}, | ||
{solr_update, "./optimize.xml"}, | ||
|
||
%% Cleanup. | ||
{echo, "De-indexing documents..."}, | ||
{solr_update, "../_files/sample100/solr_delete_all.xml"}, | ||
{echo, "Done"} | ||
]. |