Skip to content

Commit 7c2bc65

Browse files
committed
Added localparams query and documents for SST #2
1 parent 412b811 commit 7c2bc65

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

exampledocs/localparams.json

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[
2+
{
3+
"id": "1",
4+
"author": "Tom Duffy",
5+
"title": "Constructivism is the only valid way to look at learning"
6+
},
7+
{
8+
"id": "2",
9+
"author": ["Bill Dueber"],
10+
"title": "Constructivism and Legitimate Peripheral Participation"
11+
},
12+
{
13+
"id": "3",
14+
"author": ["Mike Dueber", "William Penn"],
15+
"title": "Being the dude you want to, like, be"
16+
}
17+
]

exampledocs/post.jar

-5.95 KB
Binary file not shown.

ruby/localparams_query.rb

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
'q'=>'_query_:"{!dismax qf=$f1 mm=$mm1 pf=$f1 bq=$bq1 v=$q1}"',
3+
'mm1'=>'0%',
4+
'f1'=>'author^3 title^1',
5+
'q1'=>'Dueber Constructivism',
6+
'bq1'=>'_query_:"{!dismax qf=$f1 mm=\'100%\' v=$q1 }"^5',
7+
'fl' => 'score,*'
8+
}

0 commit comments

Comments
 (0)