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 SearchDocument
public String getResource()
getResource
in interface SearchDocument
public String getContext()
getContext
in interface SearchDocument
public Set<String> getPropertyNames()
SearchDocument
getPropertyNames
in interface SearchDocument
public void addProperty(String name)
SearchDocument
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
public void addGeoProperty(String field, String value)
addGeoProperty
in interface SearchDocument
Copyright © 2015-2022 Eclipse Foundation. All Rights Reserved.