public void addSearchField(CmsSearchField field, String value) {

        if (field instanceof CmsLuceneField) {
            add(((CmsLuceneField)field).createField(value));
        } else {
            throw (new CmsRuntimeException(
                Messages.get().container(Messages.LOG_INVALID_FIELD_CLASS_1, field.getClass().getName())));
        }
    }
public void addSearchField ( CmsSearchField field , String value ) { if ( field instanceof CmsLuceneField ) { add ( ( ( CmsLuceneField ) field ) . createField ( value ) ) ; } else { throw ( new CmsRuntimeException ( Messages . get ( ) . container ( Messages . LOG_INVALID_FIELD_CLASS_1 , field . getClass ( ) . getName ( ) ) ) ) ; } }
@see org.opencms.search.I_CmsSearchDocument#addSearchField(org.opencms.search.fields.CmsSearchField, java.lang.String)