if(this.fieldName == null)
throw new GdataIndexerException(
"Required field 'name' is null -- " +this.config);
if(this.content == null)
throw new GdataIndexerException(
"Required field 'content' is null -- " +this.config);
if(this.content.length()==0)
return new Field[0];
Field retValue = new Field(this.fieldName, this.content,
Field.Store.YES, Field.Index.UN_TOKENIZED);
float boost = this.config.getBoost();
if (boost != 1.0f)
retValue.setBoost(boost);
return new Field[] { retValue };