public class LuceneDocument extends Object implements SearchDocument
| Constructor and Description |
|---|
LuceneDocument()
Deprecated.
|
LuceneDocument(org.apache.lucene.document.Document doc,
com.google.common.base.Function<? super String,? extends org.apache.lucene.spatial.SpatialStrategy> geoStrategyMapper) |
LuceneDocument(com.google.common.base.Function<? super String,? extends org.apache.lucene.spatial.SpatialStrategy> geoStrategyMapper) |
LuceneDocument(String id,
String resourceId,
String context,
com.google.common.base.Function<? super String,? extends org.apache.lucene.spatial.SpatialStrategy> geoStrategyMapper) |
| Modifier and Type | Method and Description |
|---|---|
void |
addGeoProperty(String field,
String value) |
void |
addProperty(String name)
Adds/creates a new property with the given 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) |
Set<String> |
getPropertyNames()
Returns a set of the property names.
|
String |
getResource() |
boolean |
hasProperty(String fieldName,
String value)
Checks whether a field occurs with a specified value in a Document.
|
@Deprecated public LuceneDocument()
public LuceneDocument(com.google.common.base.Function<? super String,? extends org.apache.lucene.spatial.SpatialStrategy> geoStrategyMapper)
public LuceneDocument(org.apache.lucene.document.Document doc,
com.google.common.base.Function<? super String,? extends org.apache.lucene.spatial.SpatialStrategy> geoStrategyMapper)
public org.apache.lucene.document.Document getDocument()
public String getId()
getId in interface SearchDocumentpublic String getResource()
getResource in interface SearchDocumentpublic String getContext()
getContext in interface SearchDocumentpublic Set<String> getPropertyNames()
SearchDocumentgetPropertyNames in interface SearchDocumentpublic void addProperty(String name)
SearchDocumentaddProperty in interface SearchDocumentpublic void addProperty(String name, String text)
addProperty in interface SearchDocumentLuceneSailpublic boolean hasProperty(String fieldName, String value)
hasProperty in interface SearchDocumentpublic List<String> getProperty(String name)
getProperty in interface SearchDocumentpublic void addGeoProperty(String field, String value)
addGeoProperty in interface SearchDocumentCopyright © 2015-2021 Eclipse Foundation. All Rights Reserved.