toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case QueryParser.simple:
      return 'simple';
    case QueryParser.structured:
      return 'structured';
    case QueryParser.lucene:
      return 'lucene';
    case QueryParser.dismax:
      return 'dismax';
  }
}