public class QueryParser extends Object
| Constructor and Description |
|---|
QueryParser() |
| Modifier and Type | Method and Description |
|---|---|
static org.gcube.indexmanagement.common.FullTextIndexType |
addFullTextIndexTypeIntoCache(String indexTypeStr,
String scope,
org.gcube.indexmanagement.common.FullTextIndexType indexType,
FTNodeCache cache) |
static org.gcube.indexmanagement.lucenewrapper.LuceneGcqlQueryContainer |
convertToLuceneQuery(String query,
List<String> presentables,
List<String> seachables,
org.gcube.indexmanagement.resourceregistry.RRadaptor rradaptor) |
static gr.uoa.di.madgik.grs.record.field.FieldDefinition[] |
createFieldDefinition(List<String> presentable,
List<String> projections,
org.gcube.indexmanagement.resourceregistry.RRadaptor adaptor) |
static String |
createIndexTypekey(String indexType,
String scope) |
static List<String> |
createPresentableForIndexTypes(Map<String,List<String>> presentableFieldsPerIndexType,
Set<String> indexTypes) |
static List<String> |
createSearchablesForIndexTypes(Map<String,List<String>> searchablesFieldsPerIndexType,
Set<String> indexTypes) |
static List<String> |
getCollectionsIDFromQuery(String queryString) |
static Set<String> |
getIndexTypesByCollectionIDs(Map<String,Set<String>> indexTypesByCollIDs,
List<String> collIDs,
org.elasticsearch.client.Client client,
String indexName) |
static String |
getLuceneQueryFromQueryString(org.gcube.indexmanagement.lucenewrapper.LuceneGcqlQueryContainer queryContainer) |
static List<String> |
getProjectionsQueryFromQueryString(org.gcube.indexmanagement.lucenewrapper.LuceneGcqlQueryContainer queryContainer) |
static gr.uoa.di.madgik.grs.writer.RecordWriter<gr.uoa.di.madgik.grs.record.GenericRecord> |
initRSWriterForSearchHits(List<String> presentables,
List<String> projections,
org.gcube.indexmanagement.resourceregistry.RRadaptor adaptor) |
static boolean |
isDescendant(String descendantFieldName,
org.gcube.indexmanagement.common.IndexField parentField)
A method used to check if one field is the descendant of another.
|
static org.gcube.indexmanagement.common.FullTextIndexType |
retrieveIndexType(String indexTypeStr,
String scope,
FTNodeCache cache) |
static String |
rewriteQueryWithSids(String query,
Set<String> sids) |
static boolean |
writeSearchHitFieldsInResultSet(org.elasticsearch.search.SearchHit hit,
gr.uoa.di.madgik.grs.writer.RecordWriter<gr.uoa.di.madgik.grs.record.GenericRecord> rsWriter,
List<String> projections,
List<String> presentables,
int maxFragmentCount,
long rsTimeout) |
static boolean |
writeSearchHitInResultSet(org.elasticsearch.search.SearchHit hit,
gr.uoa.di.madgik.grs.writer.RecordWriter<gr.uoa.di.madgik.grs.record.GenericRecord> rsWriter,
List<String> projections,
List<String> presentables,
int maxFragmentCount,
long rsTimeout) |
public static Set<String> getIndexTypesByCollectionIDs(Map<String,Set<String>> indexTypesByCollIDs, List<String> collIDs, org.elasticsearch.client.Client client, String indexName)
public static List<String> createPresentableForIndexTypes(Map<String,List<String>> presentableFieldsPerIndexType, Set<String> indexTypes)
public static List<String> createSearchablesForIndexTypes(Map<String,List<String>> searchablesFieldsPerIndexType, Set<String> indexTypes)
public static gr.uoa.di.madgik.grs.record.field.FieldDefinition[] createFieldDefinition(List<String> presentable, List<String> projections, org.gcube.indexmanagement.resourceregistry.RRadaptor adaptor) throws Exception
Exceptionpublic static boolean isDescendant(String descendantFieldName, org.gcube.indexmanagement.common.IndexField parentField)
descendantFieldName - - The name of the field to check whether is the descendent.parentField - - The field to check whether is the ascendent.public static org.gcube.indexmanagement.common.FullTextIndexType retrieveIndexType(String indexTypeStr, String scope, FTNodeCache cache)
public static org.gcube.indexmanagement.common.FullTextIndexType addFullTextIndexTypeIntoCache(String indexTypeStr, String scope, org.gcube.indexmanagement.common.FullTextIndexType indexType, FTNodeCache cache)
public static boolean writeSearchHitFieldsInResultSet(org.elasticsearch.search.SearchHit hit,
gr.uoa.di.madgik.grs.writer.RecordWriter<gr.uoa.di.madgik.grs.record.GenericRecord> rsWriter,
List<String> projections,
List<String> presentables,
int maxFragmentCount,
long rsTimeout)
throws gr.uoa.di.madgik.grs.writer.GRS2WriterException
gr.uoa.di.madgik.grs.writer.GRS2WriterExceptionpublic static boolean writeSearchHitInResultSet(org.elasticsearch.search.SearchHit hit,
gr.uoa.di.madgik.grs.writer.RecordWriter<gr.uoa.di.madgik.grs.record.GenericRecord> rsWriter,
List<String> projections,
List<String> presentables,
int maxFragmentCount,
long rsTimeout)
throws gr.uoa.di.madgik.grs.writer.GRS2WriterException
gr.uoa.di.madgik.grs.writer.GRS2WriterExceptionpublic static gr.uoa.di.madgik.grs.writer.RecordWriter<gr.uoa.di.madgik.grs.record.GenericRecord> initRSWriterForSearchHits(List<String> presentables, List<String> projections, org.gcube.indexmanagement.resourceregistry.RRadaptor adaptor) throws org.gcube.indexmanagement.common.IndexException, gr.uoa.di.madgik.grs.writer.GRS2WriterException
org.gcube.indexmanagement.common.IndexExceptiongr.uoa.di.madgik.grs.writer.GRS2WriterExceptionpublic static org.gcube.indexmanagement.lucenewrapper.LuceneGcqlQueryContainer convertToLuceneQuery(String query, List<String> presentables, List<String> seachables, org.gcube.indexmanagement.resourceregistry.RRadaptor rradaptor) throws org.gcube.indexmanagement.common.IndexException
org.gcube.indexmanagement.common.IndexExceptionpublic static String getLuceneQueryFromQueryString(org.gcube.indexmanagement.lucenewrapper.LuceneGcqlQueryContainer queryContainer) throws org.gcube.indexmanagement.common.IndexException
org.gcube.indexmanagement.common.IndexExceptionCopyright © 2014. All Rights Reserved.