File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 44 include_context 'search books with nested fields'
55
66 it 'does a custom search with a matching strategy ALL' do
7- response = index . search ( 'another french book' , matching_strategy : 'all' )
7+ response = index . search ( 'best book again ' , matching_strategy : 'all' )
88
99 expect ( response [ 'hits' ] . count ) . to eq ( 1 )
1010 end
1111
1212 it 'does a custom search with a matching strategy LAST' do
13- response = index . search ( 'french book' , matching_strategy : 'last' )
13+ response = index . search ( 'best book again ' , matching_strategy : 'last' )
1414
1515 expect ( response [ 'hits' ] . count ) . to eq ( 2 )
1616 end
Original file line number Diff line number Diff line change 150150 {
151151 id : 7 ,
152152 title : 'The Hitchhiker\'s Guide to the Galaxy'
153+ } ,
154+ {
155+ id : 8 ,
156+ title : 'Harry Potter and the Deathly Hallows' ,
157+ info : {
158+ comment : 'The best book again' ,
159+ reviewNb : 1000
160+ }
153161 }
154162 ]
155163 end
You can’t perform that action at this time.
0 commit comments