public class IndexUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
IndexUtils.FieldProperties |
Modifier and Type | Method and Description |
---|---|
static void |
addField(String fieldId,
Date fieldValue,
org.apache.lucene.document.Document document)
Deprecated.
since 5.4 use
addTypedField(String, Date, Document) instead |
static void |
addField(String fieldId,
Number fieldValue,
org.apache.lucene.document.Document document) |
static void |
addField(String fieldId,
String fieldValue,
org.apache.lucene.document.Document document) |
static void |
addFieldId(String fieldId,
long value,
org.apache.lucene.document.Document document)
Adds the field and value to the passed document.
|
static void |
addTypedField(org.apache.lucene.document.Document doc,
String name,
Date date,
IndexUtils.FieldProperties... properties) |
static void |
addTypedField(org.apache.lucene.document.Document doc,
String name,
long value,
IndexUtils.FieldProperties... properties) |
static void |
addTypedField(String name,
Date date,
org.apache.lucene.document.Document document) |
static void |
addTypedField(String name,
double value,
org.apache.lucene.document.Document doc) |
static void |
addTypedField(String name,
float value,
org.apache.lucene.document.Document doc) |
static void |
addTypedField(String name,
int value,
org.apache.lucene.document.Document doc) |
static void |
addTypedField(String name,
long value,
org.apache.lucene.document.Document doc) |
static org.apache.lucene.search.BooleanQuery |
buildConjunctionQuery(Iterable<? extends org.apache.lucene.search.Query> queries) |
static org.apache.lucene.search.BooleanQuery |
buildConjunctionQuery(org.apache.lucene.search.Query... queries) |
static Date |
getDateField(org.apache.lucene.document.Document document,
String fieldId) |
static double |
getDoubleField(org.apache.lucene.document.Document document,
String fieldId) |
static long |
getFieldId(org.apache.lucene.document.Document document,
String fieldId) |
static int |
getIntField(org.apache.lucene.document.Document document,
String fieldId) |
static long |
getLongField(org.apache.lucene.document.Document document,
String fieldId) |
static Double |
getOptionalDoubleField(org.apache.lucene.document.Document document,
String fieldId) |
public static void addFieldId(@NotNull String fieldId, long value, @NotNull org.apache.lucene.document.Document document)
fieldId
- field idvalue
- value to be inserteddocument
- documentpublic static void addTypedField(@NotNull String name, int value, @NotNull org.apache.lucene.document.Document doc)
public static int getIntField(org.apache.lucene.document.Document document, String fieldId)
public static void addTypedField(@NotNull String name, long value, @NotNull org.apache.lucene.document.Document doc)
public static long getLongField(org.apache.lucene.document.Document document, String fieldId)
public static void addTypedField(@NotNull String name, double value, @NotNull org.apache.lucene.document.Document doc)
public static double getDoubleField(org.apache.lucene.document.Document document, String fieldId)
@Nullable public static Double getOptionalDoubleField(org.apache.lucene.document.Document document, String fieldId)
public static void addTypedField(@NotNull String name, float value, @NotNull org.apache.lucene.document.Document doc)
public static void addField(@NotNull String fieldId, @Nullable String fieldValue, @NotNull org.apache.lucene.document.Document document)
public static void addField(@NotNull String fieldId, @Nullable Number fieldValue, @NotNull org.apache.lucene.document.Document document)
@Deprecated public static void addField(@NotNull String fieldId, @Nullable Date fieldValue, @NotNull org.apache.lucene.document.Document document)
addTypedField(String, Date, Document)
insteadfieldId
- fieldValue
- document
- public static void addTypedField(org.apache.lucene.document.Document doc, String name, @Nullable Date date, IndexUtils.FieldProperties... properties)
public static void addTypedField(org.apache.lucene.document.Document doc, String name, long value, IndexUtils.FieldProperties... properties)
public static void addTypedField(@NotNull String name, @Nullable Date date, @NotNull org.apache.lucene.document.Document document)
@Nullable public static Date getDateField(@NotNull org.apache.lucene.document.Document document, @NotNull String fieldId)
public static long getFieldId(@NotNull org.apache.lucene.document.Document document, @NotNull String fieldId)
@NotNull public static org.apache.lucene.search.BooleanQuery buildConjunctionQuery(@NotNull org.apache.lucene.search.Query... queries)
@NotNull public static org.apache.lucene.search.BooleanQuery buildConjunctionQuery(Iterable<? extends org.apache.lucene.search.Query> queries)
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.