| @@ 279-286 (lines=8) @@ | ||
| 276 | * |
|
| 277 | * @return string |
|
| 278 | */ |
|
| 279 | private function askForPropertyName(InputInterface $input, OutputInterface $output, $default = null) |
|
| 280 | { |
|
| 281 | return $this->questionHelper->ask( |
|
| 282 | $input, |
|
| 283 | $output, |
|
| 284 | $this->getQuestion("\n" . 'Property name in Elasticsearch', $default, [$this, 'validateFieldName']) |
|
| 285 | ); |
|
| 286 | } |
|
| 287 | ||
| 288 | /** |
|
| 289 | * Asks for property options |
|
| @@ 296-308 (lines=13) @@ | ||
| 293 | * |
|
| 294 | * @return string |
|
| 295 | */ |
|
| 296 | private function askForPropertyOptions(InputInterface $input, OutputInterface $output) |
|
| 297 | { |
|
| 298 | return $this->questionHelper->ask( |
|
| 299 | $input, |
|
| 300 | $output, |
|
| 301 | $this->getQuestion( |
|
| 302 | "\n" . 'Property options [<comment>press <info><return></info> to stop</comment>]', |
|
| 303 | false, |
|
| 304 | null, |
|
| 305 | ['"index"="not_analyzed"', '"analyzer"="standard"'] |
|
| 306 | ) |
|
| 307 | ); |
|
| 308 | } |
|
| 309 | ||
| 310 | /** |
|
| 311 | * Asks for property class |
|