import org.apache.lucene.document.Document;
import org.apache.lucene.document.Field;
-
+/**
+ * Tokenizes a string field in an Entity and indexes
+ * it, but does not store it for retrieval (used for content_data)
+ */
public class ContentSearchTerm extends SearchTerm{
protected ContentSearchTerm() {
}
}
public void index(Document doc, Entity entity){
- doc.add(Field.UnStored(matchField,entity.getValue(partOfEntity)));
+ doc.add(Field.UnStored(matchField,entity.getFieldValue(partOfEntity)));
}
public void indexValue(Document doc, String value){
}
}
}
- else {
- return null;
- }
+ return null;
}
public void returnMeta(Map result,Document doc){