File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
docs/includes/fundamentals/as-avs Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 10
10
use MongoDB \Builder \Search ;
11
11
use MongoDB \Driver \Exception \ServerException ;
12
12
use MongoDB \Laravel \Schema \Builder ;
13
- use MongoDB \Laravel \Tests \Models \Book ;
14
13
use MongoDB \Laravel \Tests \TestCase ;
15
14
use PHPUnit \Framework \Attributes \Group ;
16
15
@@ -132,7 +131,7 @@ public function testAutocompleteSearch(): void
132
131
*/
133
132
public function testVectorSearch (): void
134
133
{
135
- $ results = Book ::vectorSearch (
134
+ $ results = Movie ::vectorSearch (
136
135
index: 'vector ' ,
137
136
path: 'vector4 ' ,
138
137
queryVector: $ this ->vectors [0 ],
@@ -144,7 +143,7 @@ public function testVectorSearch(): void
144
143
);
145
144
146
145
$ this ->assertNotNull ($ results );
147
- $ this ->assertSame ('C ' , $ results ->first ()->title );
146
+ $ this ->assertSame ('D ' , $ results ->first ()->title );
148
147
}
149
148
150
149
/** Generates random vectors using fixed seed to make tests deterministic */
You can’t perform that action at this time.
0 commit comments