|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compass.core.lucene.LuceneProperty
public class LuceneProperty
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.compass.core.Property |
|---|
Property.Index, Property.Store, Property.TermVector |
| Constructor Summary | |
|---|---|
LuceneProperty(Fieldable field)
|
|
LuceneProperty(Fieldable field,
RepeatableReader reader)
|
|
| Method Summary | |
|---|---|
byte[] |
getBinaryValue()
Returns the binary values of the property. |
float |
getBoost()
Returns the boost for the property. |
Fieldable |
getField()
|
String |
getName()
Returns the name of the property. |
Object |
getObjectValue()
Returns the object value of the property. |
ResourcePropertyMapping |
getPropertyMapping()
|
RepeatableReader |
getRepeatableReader()
|
String |
getStringValue()
Returns the string value of the proerty. |
boolean |
isBinary()
True iff the value of the filed is stored as binary |
boolean |
isCompressed()
True if the value of the field is stored and compressed within the index |
boolean |
isIndexed()
True iff the value of the field is to be indexed, so that it may be searched on. |
boolean |
isOmitNorms()
Expert: If set, omit normalization factors associated with this indexed field. |
boolean |
isOmitTf()
True if tf is omitted for this indexed field |
boolean |
isStored()
True iff the value of the field is to be stored in the index for return with search hits. |
boolean |
isStoreOffsetWithTermVector()
Not exported to the users since it is always false when loading the Field from Lucene. |
boolean |
isStorePositionWithTermVector()
Not exported to the users since it is always false when loading the Field from Lucene. |
boolean |
isTermVectorStored()
True iff the term or terms used to index this field are stored as a term vector, available from TODO. |
boolean |
isTokenized()
True iff the value of the field should be tokenized as text prior to indexing. |
void |
setBoost(float boost)
Sets the boost level for the property. |
void |
setOmitNorms(boolean omitNorms)
Expert: If set, omit normalization factors associated with this indexed field. |
void |
setOmitTf(boolean omitTf)
Expert: If set, omit tf from postings of this indexed field. |
void |
setPropertyMapping(ResourcePropertyMapping propertyMapping)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LuceneProperty(Fieldable field)
public LuceneProperty(Fieldable field,
RepeatableReader reader)
| Method Detail |
|---|
public void setPropertyMapping(ResourcePropertyMapping propertyMapping)
public ResourcePropertyMapping getPropertyMapping()
getPropertyMapping in interface InternalPropertypublic RepeatableReader getRepeatableReader()
public Fieldable getField()
public String getName()
Property
getName in interface Propertypublic Object getObjectValue()
Property
getObjectValue in interface Propertypublic String getStringValue()
Property
getStringValue in interface Propertypublic byte[] getBinaryValue()
PropertyisBinary is true.
getBinaryValue in interface Propertypublic float getBoost()
Property
getBoost in interface Propertypublic void setBoost(float boost)
Property
setBoost in interface Propertypublic boolean isIndexed()
Property
isIndexed in interface Propertypublic boolean isStored()
Property
isStored in interface Propertypublic boolean isCompressed()
Property
isCompressed in interface Propertypublic boolean isBinary()
Property
isBinary in interface Propertypublic boolean isTokenized()
Property
isTokenized in interface Propertypublic boolean isTermVectorStored()
Propertystored attribute instead.
isTermVectorStored in interface Propertypublic boolean isStoreOffsetWithTermVector()
public boolean isStorePositionWithTermVector()
public boolean isOmitNorms()
Property
isOmitNorms in interface Propertypublic void setOmitNorms(boolean omitNorms)
Property
setOmitNorms in interface Propertypublic boolean isOmitTf()
Property
isOmitTf in interface Propertypublic void setOmitTf(boolean omitTf)
Property
setOmitTf in interface Propertypublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||