Skip to content

Commit

Permalink
Added localparams query and documents for SST #2
Browse files Browse the repository at this point in the history
  • Loading branch information
billdueber committed Mar 7, 2012
1 parent 412b811 commit 7c2bc65
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
17 changes: 17 additions & 0 deletions exampledocs/localparams.json
@@ -0,0 +1,17 @@
[
{
"id": "1",
"author": "Tom Duffy",
"title": "Constructivism is the only valid way to look at learning"
},
{
"id": "2",
"author": ["Bill Dueber"],
"title": "Constructivism and Legitimate Peripheral Participation"
},
{
"id": "3",
"author": ["Mike Dueber", "William Penn"],
"title": "Being the dude you want to, like, be"
}
]
Binary file removed exampledocs/post.jar
Binary file not shown.
8 changes: 8 additions & 0 deletions ruby/localparams_query.rb
@@ -0,0 +1,8 @@
{
'q'=>'_query_:"{!dismax qf=$f1 mm=$mm1 pf=$f1 bq=$bq1 v=$q1}"',
'mm1'=>'0%',
'f1'=>'author^3 title^1',
'q1'=>'Dueber Constructivism',
'bq1'=>'_query_:"{!dismax qf=$f1 mm=\'100%\' v=$q1 }"^5',
'fl' => 'score,*'
}

0 comments on commit 7c2bc65

Please sign in to comment.