File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed
content/commands/ft.profile Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -101,10 +101,10 @@ Return value has an array with two elements:
101
101
102
102
## Examples
103
103
104
- <details open >
105
- <summary ><b >Collect performance information about an index</b ></summary >
104
+ <details >
105
+ <summary ><b >Collect performance information about a simple JSON index. </b ></summary >
106
106
107
- Imagine you have a dataset consisting of 1M JSON documents, each with the following structure.
107
+ Imagine you have a dataset consisting of 1,000,000 (1M) JSON documents, each with the following structure.
108
108
109
109
``` json
110
110
{
@@ -116,13 +116,13 @@ Imagine you have a dataset consisting of 1M JSON documents, each with the follow
116
116
}
117
117
```
118
118
119
- You've created an index similar to the following.
119
+ Here's the corresponding index:
120
120
121
121
``` bash
122
122
FT.CREATE idx ON JSON PREFIX 1 key: SCHEMA $.num AS num NUMERIC SORTABLE $.color AS color TAG SORTABLE UNF $.quote AS quote TEXT NOSTEM SORTABLE
123
123
```
124
124
125
- Next, you run the ` FT.PROFILE ` command with a search you intend to run on the index .
125
+ Here's an example of running the ` FT.PROFILE ` command for a sample query .
126
126
127
127
{{< highlight bash >}}
128
128
127.0.0.1:6379> FT.PROFILE idx SEARCH QUERY '((@num :[ 100 100] -@color :{blue} @quote : question ) | @num :[ 200 600] )' RETURN 1 $.fid
@@ -365,6 +365,12 @@ Next, you run the `FT.PROFILE` command with a search you intend to run on the in
365
365
{{< / highlight >}}
366
366
</details >
367
367
368
+ <details >
369
+ <summary ><b >Collect performance information about a JSON index that includes vector data.</b ></summary >
370
+
371
+ Blah blah blah
372
+ </details >
373
+
368
374
## See also
369
375
370
376
[ ` FT.SEARCH ` ] ({{< baseurl >}}/commands/ft.search/) | [ ` FT.AGGREGATE ` ] ({{< baseurl >}}/commands/ft.aggregate/)
You can’t perform that action at this time.
0 commit comments