@@ 236-243 (lines=8) @@ | ||
233 | * |
|
234 | * @return string |
|
235 | */ |
|
236 | private function askForPropertyName(InputInterface $input, OutputInterface $output, $default = null) |
|
237 | { |
|
238 | return $this->questionHelper->ask( |
|
239 | $input, |
|
240 | $output, |
|
241 | $this->getQuestion("\n" . 'Property name in Elasticsearch', $default, [$this, 'validateFieldName']) |
|
242 | ); |
|
243 | } |
|
244 | ||
245 | /** |
|
246 | * Asks for property options |
|
@@ 253-265 (lines=13) @@ | ||
250 | * |
|
251 | * @return string |
|
252 | */ |
|
253 | private function askForPropertyOptions(InputInterface $input, OutputInterface $output) |
|
254 | { |
|
255 | return $this->questionHelper->ask( |
|
256 | $input, |
|
257 | $output, |
|
258 | $this->getQuestion( |
|
259 | "\n" . 'Property options [<comment>press <info><return></info> to stop</comment>]', |
|
260 | false, |
|
261 | null, |
|
262 | ['"index"="not_analyzed"', '"analyzer"="standard"'] |
|
263 | ) |
|
264 | ); |
|
265 | } |
|
266 | ||
267 | /** |
|
268 | * Asks for property class |
|
@@ 275-287 (lines=13) @@ | ||
272 | * |
|
273 | * @return string |
|
274 | */ |
|
275 | private function askForPropertyClass(InputInterface $input, OutputInterface $output) |
|
276 | { |
|
277 | return $this->questionHelper->ask( |
|
278 | $input, |
|
279 | $output, |
|
280 | $this->getQuestion( |
|
281 | "\n" . 'Property class', |
|
282 | null, |
|
283 | [$this, 'validatePropertyClass'], |
|
284 | $this->getDocumentClasses() |
|
285 | ) |
|
286 | ); |
|
287 | } |
|
288 | ||
289 | /** |
|
290 | * Returns available document classes |