Package org.apache.solr.util
Class PayloadUtils
- java.lang.Object
-
- org.apache.solr.util.PayloadUtils
-
public class PayloadUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description PayloadUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.lucene.search.spans.SpanQuery
createSpanQuery(String field, String value, org.apache.lucene.analysis.Analyzer analyzer)
static org.apache.lucene.search.spans.SpanQuery
createSpanQuery(String field, String value, org.apache.lucene.analysis.Analyzer analyzer, String operator)
The generated SpanQuery will be either a SpanTermQuery or an ordered, zero slop SpanNearQuery, depending on how many tokens are emitted.static org.apache.lucene.queries.payloads.PayloadDecoder
getPayloadDecoder(FieldType fieldType)
static String
getPayloadEncoder(FieldType fieldType)
static org.apache.lucene.queries.payloads.PayloadFunction
getPayloadFunction(String func)
-
-
-
Method Detail
-
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.search.spans.SpanQuery createSpanQuery(String field, String value, org.apache.lucene.analysis.Analyzer analyzer) throws IOException
- Throws:
IOException
-
createSpanQuery
public static org.apache.lucene.search.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
-
-