Package ch.rswk.meta.engine
Class MetaLucene
java.lang.Object
ch.rswk.meta.engine.MetaLucene
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.apache.lucene.document.FieldTypestatic final org.apache.lucene.queryparser.flexible.standard.config.PointsConfigprivate static final Stringstatic final Stringprivate static final com.fasterxml.jackson.databind.ObjectWriterprivate static final Map<String, org.apache.lucene.queryparser.flexible.standard.config.PointsConfig> static final org.apache.lucene.queryparser.flexible.standard.config.PointsConfigprivate static final org.apache.lucene.document.FieldTypeprivate static final org.slf4j.Loggerprivate static final Stringprivate static final com.fasterxml.jackson.databind.ObjectWriterstatic final Stringstatic final Stringprivate static final com.fasterxml.jackson.databind.ObjectWriterprivate static final Map<String, org.apache.lucene.queryparser.flexible.standard.config.PointsConfig> static final org.apache.lucene.queryparser.flexible.standard.config.PointsConfigstatic final Stringprivate static final Stringprivate static final com.fasterxml.jackson.databind.ObjectWriterstatic final Stringstatic final Stringprivate static final com.fasterxml.jackson.databind.ObjectWriterprivate static final com.fasterxml.jackson.databind.ObjectWriterprivate static final com.fasterxml.jackson.databind.ObjectWriterprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Map<String, org.apache.lucene.queryparser.flexible.standard.config.PointsConfig> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.lucene.search.QuerycombineQueries(List<org.apache.lucene.search.Query> queries, org.apache.lucene.search.BooleanClause.Occur occur) static StringgetFieldNames(org.apache.lucene.document.Document d) static <T> @Nullable TmeltJsonField(org.apache.lucene.document.Document document, @Nullable Iterable<String> filter, @Nullable Iterable<String> purge, com.fasterxml.jackson.databind.ObjectReader reader, Class<T> type) static org.apache.lucene.search.QuerynewBboxQuery(String field, GeoBox box) static org.apache.lucene.document.FieldnewBooleanField(String name, boolean value) private static org.apache.lucene.document.FieldTypestatic org.apache.lucene.document.FieldnewDateField(String name, LocalDate value) static org.apache.lucene.document.FieldnewDateTimeField(String name, OffsetDateTime value) static org.apache.lucene.search.QuerynewDistanceQuery(String field, GeoPoint point, double meters) static org.apache.lucene.document.FieldnewDoubleField(String name, double value) static org.apache.lucene.search.SortnewDoubleSort(String field, boolean reverse) static org.apache.lucene.document.DocumentnewFileDocument(FileInfo info) protected static MetaLucene.QueryContextnewFileQueryContext(FileSearchRequest request) protected static org.apache.lucene.index.TermnewFileTerm(String key) static org.apache.lucene.document.FieldnewGeoField(String name, GeoPoint point) static org.apache.lucene.document.FieldnewIntField(String name, int value) static org.apache.lucene.search.SortnewIntSort(String field, boolean reverse) static org.apache.lucene.document.FieldnewJsonField(com.fasterxml.jackson.databind.ObjectWriter writer, Object object) private static org.apache.lucene.document.FieldTypestatic org.apache.lucene.document.Documentprotected static MetaLucene.QueryContextstatic org.apache.lucene.document.Documentprotected static MetaLucene.QueryContextnewLoggingMetricQueryContext(@Nullable String query) static org.apache.lucene.document.FieldnewLongField(String name, long value) static org.apache.lucene.search.SortnewLongSort(String field, boolean reverse) protected static org.apache.lucene.search.Query[]newMetaDeleteQueries(String metaId) private static org.apache.lucene.document.DocumentnewMetaDocument(Meta meta) static org.apache.lucene.document.Documentstatic org.apache.lucene.document.DocumentnewMetaObjectDocument(MetaObject object) protected static MetaLucene.QueryContextnewMetaQueryContext(SearchRequest request, Map<String, org.apache.lucene.queryparser.flexible.standard.config.PointsConfig> pointsConfigMap) protected static Set<org.apache.lucene.search.Query> newMetaSpatialQueries(SearchRequest request) protected static org.apache.lucene.index.TermnewMetaTerm(String metaId) static org.apache.lucene.document.Documentprotected static MetaLucene.QueryContextprotected static org.apache.lucene.index.TermnewMetaUserConfigTerm(String identifier) static org.apache.lucene.document.DocumentnewMetaUserDocument(MetaUser user) static org.apache.lucene.document.Documentprotected static MetaLucene.QueryContextprotected static org.apache.lucene.index.TermnewMetaUserGroupTerm(String group) protected static MetaLucene.QueryContextnewMetaUserQueryContext(String query) protected static org.apache.lucene.index.TermnewMetaUserTerm(String user) static org.apache.lucene.search.QuerynewQuery(org.apache.lucene.queryparser.classic.MultiFieldQueryParser parser, MetaLucene.QueryContext queryContext) static org.apache.lucene.search.QuerynewQuery(org.apache.lucene.queryparser.flexible.standard.StandardQueryParser parser, MetaLucene.QueryContext queryContext) static MetaLucene.QueryContextnewQueryContext(String defaultField, @Nullable Map<String, org.apache.lucene.queryparser.flexible.standard.config.PointsConfig> pointsConfigMap, String query, @Nullable String sortField, boolean sortReverse) static org.apache.lucene.document.FieldnewSortableGeoField(String name, GeoPoint point) static org.apache.lucene.document.FieldnewSortableStringField(String name, String value) static org.apache.lucene.document.FieldnewStringField(String name, String value) static org.apache.lucene.search.SortnewStringSort(String field, boolean reverse) static org.apache.lucene.document.FieldnewTextField(String name, String value) static MetaLucene.QueryContextnewTypedQueryContext(String defaultField, @Nullable Map<String, org.apache.lucene.queryparser.flexible.standard.config.PointsConfig> pointsConfigMap, @Nullable String query, @Nullable String sortField, boolean sortReverse, String type)
-
Field Details
-
LOG
private static final org.slf4j.Logger LOG -
DOUBLE_POINTS_CONFIG
public static final org.apache.lucene.queryparser.flexible.standard.config.PointsConfig DOUBLE_POINTS_CONFIG -
FILE_INFO_FIELD_TYPE
- See Also:
-
INT_POINTS_CONFIG
public static final org.apache.lucene.queryparser.flexible.standard.config.PointsConfig INT_POINTS_CONFIG -
LOGGING_FIELD_ENTRY_TYPE
- See Also:
-
LOGGING_FIELD_METRIC_TYPE
- See Also:
-
LONG_POINTS_CONFIG
public static final org.apache.lucene.queryparser.flexible.standard.config.PointsConfig LONG_POINTS_CONFIG -
META_USER_CONFIG_FIELD_TYPE
- See Also:
-
META_USER_FIELD_TYPE
- See Also:
-
META_USER_GROUP_FIELD_TYPE
- See Also:
-
BOOLEAN_FIELD_TYPE
private static final org.apache.lucene.document.FieldType BOOLEAN_FIELD_TYPE -
FIELD_JSON
- See Also:
-
FILE_INFO_ILLEGAL_FIELD_NAMES
-
FILE_INFO_WRITER
private static final com.fasterxml.jackson.databind.ObjectWriter FILE_INFO_WRITER -
FILE_POINTS_CONFIG
-
JSON_FIELD_TYPE
private static final org.apache.lucene.document.FieldType JSON_FIELD_TYPE -
LOGGER_NAME_SEGMENT
- See Also:
-
LOGGING_ENTRY_ILLEGAL_FIELD_NAMES
-
LOGGING_ENTRY_WRITER
private static final com.fasterxml.jackson.databind.ObjectWriter LOGGING_ENTRY_WRITER -
LOGGING_METRIC_WRITER
private static final com.fasterxml.jackson.databind.ObjectWriter LOGGING_METRIC_WRITER -
LOGGING_POINTS_CONFIG
-
META_USER_CONFIG_ILLEGAL_FIELD_NAMES
-
META_USER_CONFIG_NULL_VALUE
-
META_USER_CONFIG_WRITER
private static final com.fasterxml.jackson.databind.ObjectWriter META_USER_CONFIG_WRITER -
META_USER_GROUP_WRITER
private static final com.fasterxml.jackson.databind.ObjectWriter META_USER_GROUP_WRITER -
META_USER_WRITER
private static final com.fasterxml.jackson.databind.ObjectWriter META_USER_WRITER -
META_WRITER
private static final com.fasterxml.jackson.databind.ObjectWriter META_WRITER -
STRING_SORT_FIELD_SUFFIX
- See Also:
-
TYPED_QUERY_FORMAT
- See Also:
-
TYPED_QUERY_JOIN_FORMAT
- See Also:
-
USER_GROUP_POINTS_CONFIG
-
-
Constructor Details
-
MetaLucene
public MetaLucene()
-
-
Method Details
-
combineQueries
public static org.apache.lucene.search.Query combineQueries(List<org.apache.lucene.search.Query> queries, org.apache.lucene.search.BooleanClause.Occur occur) -
escapeQueryPart
-
getFieldNames
-
meltJsonField
-
newBooleanFieldType
private static org.apache.lucene.document.FieldType newBooleanFieldType() -
newDateField
-
newLongField
-
newDoubleField
-
newFileDocument
-
newDateTimeField
-
newStringField
-
newTextField
-
newBooleanField
-
newJsonField
public static org.apache.lucene.document.Field newJsonField(com.fasterxml.jackson.databind.ObjectWriter writer, Object object) -
newFileQueryContext
-
newTypedQueryContext
-
newQueryContext
-
newDoubleSort
-
newIntSort
-
newLongSort
-
newStringSort
-
newFileTerm
-
newIntField
-
newJsonFieldType
private static org.apache.lucene.document.FieldType newJsonFieldType() -
newLoggingEntryDocument
-
newLoggingEntryQueryContext
-
newLoggingMetricDocument
-
newLoggingMetricQueryContext
-
newMetaDeleteQueries
-
newMetaLogDocument
-
newMetaDocument
-
newSortableStringField
-
newMetaObjectDocument
-
newGeoField
-
newMetaQueryContext
protected static MetaLucene.QueryContext newMetaQueryContext(SearchRequest request, Map<String, org.apache.lucene.queryparser.flexible.standard.config.PointsConfig> pointsConfigMap) -
newMetaSpatialQueries
-
newDistanceQuery
-
newBboxQuery
-
newMetaTerm
-
newMetaUserConfigDocument
-
newMetaUserConfigQueryContext
-
newMetaUserConfigTerm
-
newMetaUserDocument
-
newMetaUserGroupDocument
-
newMetaUserGroupQueryContext
-
newMetaUserGroupTerm
-
newMetaUserQueryContext
-
newMetaUserTerm
-
newQuery
public static org.apache.lucene.search.Query newQuery(org.apache.lucene.queryparser.flexible.standard.StandardQueryParser parser, MetaLucene.QueryContext queryContext) throws org.apache.lucene.queryparser.flexible.core.QueryNodeException - Throws:
org.apache.lucene.queryparser.flexible.core.QueryNodeException
-
newQuery
public static org.apache.lucene.search.Query newQuery(org.apache.lucene.queryparser.classic.MultiFieldQueryParser parser, MetaLucene.QueryContext queryContext) throws org.apache.lucene.queryparser.classic.ParseException - Throws:
org.apache.lucene.queryparser.classic.ParseException
-
newSortableGeoField
-