@searchcraft/react-sdk 0.11.1 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -41,8 +41,16 @@ As early as possible in the app lifecycle, initialize the Searchcraft object:
41
41
  ```jsx
42
42
  import { Searchcraft } from '@searchcraft/react-sdk';
43
43
 
44
+ // Index Search Configuration
44
45
  const searchcraft = new Searchcraft({
45
- index: ['your_index_from_vektron'],
46
+ indexName: 'your_index_from_vektron',
47
+ readKey: 'your_read_key_from_vektron',
48
+ endpointURL: 'your_searchcraft_endpoint_url',
49
+ })
50
+
51
+ // Alternatively, you can create a Federation Search Configuration which searches across multiple indices
52
+ const federatedSearchcraft = new Searchcraft({
53
+ federationName: 'your_federation_name',
46
54
  readKey: 'your_read_key_from_vektron',
47
55
  endpointURL: 'your_searchcraft_endpoint_url',
48
56
  })