buildForm(FormBuilderInterface $builder, array $options)
{
$options = ['required' => false];
$builder
->add('queryFields', 'textarea', $options)
->add('queryAlternative', 'text', $options)
->add('minimumMatch', 'text', $options)
->add('phraseFields', 'text', $options)
->add('phraseSlop', 'text', $options)
->add('queryPhraseSlop', 'text', $options)
->add('tie', 'text', $options)
->add('boostQuery', 'text', $options)
->add('boostFunctions', 'text', $options)
->add('boostFunctionsMult', 'text', $options)
->add('phraseBigramFields', 'text', $options)
->add('phraseBigramSlop', 'text', $options)
->add('phraseTrigramFields', 'text', $options)
->add('phraseTrigramSlop', 'text', $options)
->add('userFields', 'text', $options)
;
}
public function setDefaultOptions(OptionsResolverInterface $resolver)
{
$resolver->setDefaults([
'data_class' => EDisMax::CLASS,
]);
}
}