Class OLuceneIndexEngineUtils

java.lang.Object
com.orientechnologies.lucene.engine.OLuceneIndexEngineUtils

public class OLuceneIndexEngineUtils extends Object
Created by frank on 04/05/2017.
  • Constructor Details

    • OLuceneIndexEngineUtils

      public OLuceneIndexEngineUtils()
  • Method Details

    • sendTotalHits

      public static void sendTotalHits(String indexName, OCommandContext context, long totalHits)
    • sendLookupTime

      public static void sendLookupTime(String indexName, OCommandContext context, org.apache.lucene.search.TopDocs docs, Integer limit, long startFetching)
    • retrieveIndexMetadata

      public static org.apache.lucene.document.Document retrieveIndexMetadata(org.apache.lucene.index.IndexWriter writer)
    • buildSortFields

      public static List<org.apache.lucene.search.SortField> buildSortFields(ODocument metadata)
    • buildSortField

      public static org.apache.lucene.search.SortField buildSortField(ODocument conf)
      Builds SortField from a configuration ODocument
      Parameters:
      conf -
      Returns:
    • buildSortField

      public static org.apache.lucene.search.SortField buildSortField(Map<String,Object> conf)
      Builds a SortField from a configuration map. The map can contains up to three fields: field (name), reverse (true/false) and type SortField.Type.
      Parameters:
      conf -
      Returns:
    • getMetadataFromIndex

      public static ODocument getMetadataFromIndex(org.apache.lucene.index.IndexWriter writer)
    • getIndexDefinitionFromIndex

      public static OIndexDefinition getIndexDefinitionFromIndex(org.apache.lucene.index.IndexWriter writer)