@@ 287-294 (lines=8) @@ | ||
284 | * |
|
285 | * @return string |
|
286 | */ |
|
287 | private function askForPropertyName(InputInterface $input, OutputInterface $output, $default = null) |
|
288 | { |
|
289 | return $this->questionHelper->ask( |
|
290 | $input, |
|
291 | $output, |
|
292 | $this->getQuestion("\n" . 'Property name in Elasticsearch', $default, [$this, 'validateFieldName']) |
|
293 | ); |
|
294 | } |
|
295 | ||
296 | /** |
|
297 | * Asks for property options |
|
@@ 304-316 (lines=13) @@ | ||
301 | * |
|
302 | * @return string |
|
303 | */ |
|
304 | private function askForPropertyOptions(InputInterface $input, OutputInterface $output) |
|
305 | { |
|
306 | return $this->questionHelper->ask( |
|
307 | $input, |
|
308 | $output, |
|
309 | $this->getQuestion( |
|
310 | "\n" . 'Property options [<comment>press <info><return></info> to stop</comment>]', |
|
311 | false, |
|
312 | null, |
|
313 | ['"index"="not_analyzed"', '"analyzer"="standard"'] |
|
314 | ) |
|
315 | ); |
|
316 | } |
|
317 | ||
318 | /** |
|
319 | * Asks for property class |
|
@@ 326-338 (lines=13) @@ | ||
323 | * |
|
324 | * @return string |
|
325 | */ |
|
326 | private function askForPropertyClass(InputInterface $input, OutputInterface $output) |
|
327 | { |
|
328 | return $this->questionHelper->ask( |
|
329 | $input, |
|
330 | $output, |
|
331 | $this->getQuestion( |
|
332 | "\n" . 'Property class', |
|
333 | null, |
|
334 | [$this, 'validatePropertyClass'], |
|
335 | $this->getDocumentClasses() |
|
336 | ) |
|
337 | ); |
|
338 | } |
|
339 | ||
340 | /** |
|
341 | * Returns available document classes |