Skip to content

Commit 4801237

Browse files
TASK: Remove wrong result example
1 parent 77394c4 commit 4801237

1 file changed

Lines changed: 0 additions & 82 deletions

File tree

README.md

Lines changed: 0 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -111,88 +111,6 @@ In case you need to build the URI to the suggest controller yourself, this is wh
111111

112112
{f:uri.action(action: 'index', controller: 'Suggest', package: 'Flowpack.SearchPlugin', format: 'json', absolute: 1, arguments: {contextNodeIdentifier: node.identifier, dimensionCombination: dimensionCombination})}
113113

114-
The returned JSON looks like this (with a `term` of "content" after indexing the Neos demo site):
115-
116-
{
117-
"completions": [
118-
"content",
119-
"content element",
120-
"content in",
121-
"content in neos",
122-
"content in neos because",
123-
"content in neos because you",
124-
"content repository"
125-
],
126-
"suggestions": [
127-
{
128-
"text": "995c9174-ddd6-4d5c-cfc0-1ffc82184677",
129-
"_index": "acmecom-1536833562",
130-
"_type": "Neos-Neos:Page",
131-
"_id": "03da089f6495852dc9e7b796adde85f21093b3c7",
132-
"score": 40,
133-
"payload": {
134-
"__path": "/sites/acmecom/node-2"
135-
},
136-
"contexts": {
137-
"workspace": {
138-
0: "live"
139-
},
140-
"parentPath": {
141-
0: "/sites/acmecom"
142-
},
143-
"dimensionCombinationHash": {
144-
0: "d751713988987e9331980363e24189ce"
145-
},
146-
}
147-
},
148-
{
149-
"text": "a66ec7db-3459-b67b-7bcb-16e2508a89f0",
150-
"_index": "acmecom-1536833562",
151-
"_type": "Neos-Neos:Page",
152-
"_id": "151a1d0531f1ac5c1a267a3d6a3af84967e0c35f",
153-
"score": 20,
154-
"payload": {
155-
"__path": "/sites/acmecom/node-1"
156-
},
157-
"contexts": {
158-
"workspace": {
159-
0: "live"
160-
},
161-
"parentPath": {
162-
0: "/sites/acmecom"
163-
},
164-
"dimensionCombinationHash": {
165-
0: "d751713988987e9331980363e24189ce"
166-
},
167-
}
168-
},
169-
{
170-
"text": "a3474e1d-dd60-4a84-82b1-18d2f21891a3",
171-
"_index": "acmecom-1536833562",
172-
"_id": "c443d53c76de1af2438b8af0bf33dc7befe291f5",
173-
"_type": "Neos-Neos:Page",
174-
"score": 20,
175-
"_source": {
176-
"__path": "/sites/acmecom/node-3"
177-
},
178-
"contexts": {
179-
"workspace": {
180-
0: "live"
181-
},
182-
"parentPath": {
183-
0: "/sites/acmecom"
184-
},
185-
"dimensionCombinationHash": {
186-
0: "d751713988987e9331980363e24189ce"
187-
},
188-
}
189-
}
190-
]
191-
}
192-
193-
The `completions` can be used to suggest search terms to the user. The `suggestions` contains
194-
"top search results" for the given term, the document they refer to is given in the `payload`.
195-
196114
## AJAX search
197115

198116
The plugin comes with a controller that can be reached like this per default, using `GET`:

0 commit comments

Comments
 (0)