Class LookupIndex
- java.lang.Object
-
- in.cdac.medinfo.csnotk.csnolib.luceneindexutils.LookupIndex
-
- All Implemented Interfaces:
java.io.Serializable
public class LookupIndex extends java.lang.Object implements java.io.SerializableImplementation of document search functionality with Lucene version 8.7.0. for lookup API functionality is provided by this class.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LookupIndex()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Relationship>getConcepts(java.util.HashMap<java.lang.String,java.util.List<java.lang.String>> queryParams)Searches the concepts of attribute name and attribute value.java.util.List<Relationship>getRelationships(java.lang.String conceptId, EnumRelationshipType enumRelationshipType, EnumDirection directions)java.util.List<Relationship>getRelationships(java.lang.String conceptId, java.lang.String relationshipType, EnumDirection directions)java.util.List<java.lang.String>getRelationType()java.util.Set<java.lang.String>getSemanticTags()
-
-
-
Method Detail
-
getRelationships
public java.util.List<Relationship> getRelationships(java.lang.String conceptId, java.lang.String relationshipType, EnumDirection directions)
-
getRelationships
public java.util.List<Relationship> getRelationships(java.lang.String conceptId, EnumRelationshipType enumRelationshipType, 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
Relationshipmatching the given Concept ID. - Throws:
java.io.IOExceptionorg.apache.lucene.queryparser.classic.ParseExceptionorg.apache.lucene.queryparser.classic.ParseExceptionjava.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.ParseExceptionjava.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.ParseExceptionjava.io.IOException
-
-