Class LookupIndex

  • All Implemented Interfaces:
    java.io.Serializable

    public class LookupIndex
    extends java.lang.Object
    implements java.io.Serializable
    Implementation of document search functionality with Lucene version 8.7.0. for lookup API functionality is provided by this class.
    See Also:
    Serialized Form
    • Constructor Detail

      • LookupIndex

        public LookupIndex()
    • Method Detail

      • getRelationships

        public java.util.List<Relationship> getRelationships​(java.lang.String conceptId,
                                                             java.lang.String relationshipType,
                                                             EnumDirection directions)
      • getConcepts

        public java.util.List<Relationship> getConcepts​(java.util.HashMap<java.lang.String,​java.util.List<java.lang.String>> queryParams)
                                                 throws java.io.IOException,
                                                        java.text.ParseException,
                                                        org.apache.lucene.queryparser.classic.ParseException
        Searches the concepts of attribute name and attribute value.
        Parameters:
        queryParams -
        Returns:
        List of Relationship matching the given Concept ID.
        Throws:
        java.io.IOException
        org.apache.lucene.queryparser.classic.ParseException
        org.apache.lucene.queryparser.classic.ParseException
        java.text.ParseException
      • getSemanticTags

        public java.util.Set<java.lang.String> getSemanticTags()
                                                        throws org.apache.lucene.queryparser.classic.ParseException,
                                                               java.io.IOException
        Throws:
        org.apache.lucene.queryparser.classic.ParseException
        java.io.IOException
      • getRelationType

        public java.util.List<java.lang.String> getRelationType()
                                                         throws org.apache.lucene.queryparser.classic.ParseException,
                                                                java.io.IOException
        Throws:
        org.apache.lucene.queryparser.classic.ParseException
        java.io.IOException