@Entity @Indexed @AnalyzerDef(name="custom_keyword_analyzer", tokenizer=@TokenizerDef(factory=org.apache.solr.analysis.KeywordTokenizerFactory.class), filters=@TokenFilterDef(factory=org.apache.solr.analysis.LowerCaseFilterFactory.class)) @Analyzer(definition="custom_keyword_analyzer") public class Entity extends Suggestion
Modifier and Type | Field and Description |
---|---|
static int |
ADDRESS |
static int |
EMAIL |
static int |
NAME |
static int |
PLACE |
static int |
URL |
ENTITY, PARAGRAPH, SENTENCE
Constructor and Description |
---|
Entity()
Default constructor
|
Entity(int type,
java.lang.String content)
Constructor to initialize object for storing in database
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getContent()
Get content of the Entity object.
|
int |
getEntityType()
Get entity type of the Entity object.
|
int |
getSourceID()
Get source ID of the Entity object.
|
int |
hashCode() |
void |
setContent(java.lang.String content)
Set content of the Entity object.
|
void |
setEntityType(int entityType)
Set entity type of the Entity object.
|
void |
setSourceID(int sourceID)
Set source ID of the Entity object.
|
java.lang.String |
toString() |
public static final int EMAIL
public static final int ADDRESS
public static final int PLACE
public static final int URL
public static final int NAME
public Entity()
public Entity(int type, java.lang.String content)
public int getSourceID()
public void setSourceID(int sourceID)
sourceID
- source ID of the object.public int getEntityType()
public void setEntityType(int entityType)
entityType
- entity type of the object.public java.lang.String getContent()
getContent
in class Suggestion
public void setContent(java.lang.String content)
content
- content of the object.public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object