public class LuceneDocument extends Object implements SearchDocument
Constructor and Description |
---|
LuceneDocument() |
LuceneDocument(org.apache.lucene.document.Document doc) |
LuceneDocument(String id,
String resourceId,
String context) |
Modifier and Type | Method and Description |
---|---|
void |
addProperty(String name) |
void |
addProperty(String name,
String text)
Stores and indexes a property in a Document.
|
String |
getContext() |
org.apache.lucene.document.Document |
getDocument() |
String |
getId() |
List<String> |
getProperty(String name) |
Collection<String> |
getPropertyNames() |
String |
getResource() |
boolean |
hasProperty(String fieldName,
String value)
Checks whether a field occurs with a specified value in a Document.
|
public LuceneDocument()
public LuceneDocument(org.apache.lucene.document.Document doc)
public org.apache.lucene.document.Document getDocument()
public String getId()
getId
in interface SearchDocument
public String getResource()
getResource
in interface SearchDocument
public String getContext()
getContext
in interface SearchDocument
public Collection<String> getPropertyNames()
getPropertyNames
in interface SearchDocument
public void addProperty(String name)
addProperty
in interface SearchDocument
public void addProperty(String name, String text)
addProperty
in interface SearchDocument
LuceneSail
public boolean hasProperty(String fieldName, String value)
hasProperty
in interface SearchDocument
public List<String> getProperty(String name)
getProperty
in interface SearchDocument
Copyright © 2001-2016 Aduna. All Rights Reserved.