Class PayloadUtils


  • public class PayloadUtils
    extends Object
    • Constructor Detail

      • PayloadUtils

        public PayloadUtils()
    • Method Detail

      • getPayloadEncoder

        public static String getPayloadEncoder​(FieldType fieldType)
      • getPayloadDecoder

        public static org.apache.lucene.queries.payloads.PayloadDecoder getPayloadDecoder​(FieldType fieldType)
      • getPayloadFunction

        public static org.apache.lucene.queries.payloads.PayloadFunction getPayloadFunction​(String func)
      • createSpanQuery

        public static org.apache.lucene.queries.spans.SpanQuery createSpanQuery​(String field,
                                                                                String value,
                                                                                org.apache.lucene.analysis.Analyzer analyzer)
                                                                         throws IOException
        Throws:
        IOException
      • createSpanQuery

        public static org.apache.lucene.queries.spans.SpanQuery createSpanQuery​(String field,
                                                                                String value,
                                                                                org.apache.lucene.analysis.Analyzer analyzer,
                                                                                String operator)
                                                                         throws IOException
        The generated SpanQuery will be either a SpanTermQuery or an ordered, zero slop SpanNearQuery, depending on how many tokens are emitted.
        Throws:
        IOException