File tree 1 file changed +18
-18
lines changed 1 file changed +18
-18
lines changed Original file line number Diff line number Diff line change 79
79
80
80
// start-create-multiple-indexes
81
81
$ indexNames = $ collection ->createSearchIndexes (
82
- [
83
- [
84
- 'name ' => 'SearchIdx ' ,
85
- 'definition ' => ['mappings ' => ['dynamic ' => true ]],
86
- ],
87
- [
88
- 'name ' => 'VSidx ' ,
89
- 'type ' => 'vectorSearch ' ,
90
- 'definition ' => [
91
- 'fields ' => [[
92
- 'type ' => 'vector ' ,
93
- 'path ' => 'plot_embedding ' ,
94
- 'numDimensions ' => 1536 ,
95
- 'similarity ' => 'dotProduct '
96
- ]]
97
- ],
98
- ],
99
- ]
82
+ [
83
+ [
84
+ 'name ' => 'SearchIdx ' ,
85
+ 'definition ' => ['mappings ' => ['dynamic ' => true ]],
86
+ ],
87
+ [
88
+ 'name ' => 'VSidx ' ,
89
+ 'type ' => 'vectorSearch ' ,
90
+ 'definition ' => [
91
+ 'fields ' => [[
92
+ 'type ' => 'vector ' ,
93
+ 'path ' => 'plot_embedding ' ,
94
+ 'numDimensions ' => 1536 ,
95
+ 'similarity ' => 'dotProduct '
96
+ ]]
97
+ ],
98
+ ],
99
+ ]
100
100
);
101
101
// end-create-multiple-indexes
102
102
You can’t perform that action at this time.
0 commit comments