Why won't my code let me tokenize the index? Eclipse yells at me with "TOKENIZED can not be resolved"
Here's the bit of code
Code:
@Field(index = org.hibernate.search.annotations.Index.TOKENIZED, store = Store.YES)
// I get the same result if I just use '@Field(index=Index.TOKENIZED, store=Store.Yes)
@Boost(value=2.0f)
@NotNull
@Size(min = 1, max = 25)
@Pattern(regexp = "[A-Za-z ]*", message = "must contain only letters and spaces")
private String name;
Here's what I'm importing:
Code:
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;
import javax.validation.constraints.Digits;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlRootElement;
//import org.hibernate.search.annotations.DateBridge;
import org.hibernate.search.annotations.DocumentId;
import org.hibernate.search.annotations.Field;
import org.hibernate.search.annotations.Index;
import org.hibernate.search.annotations.Indexed;
//import org.hibernate.search.annotations.IndexedEmbedded;
//import org.hibernate.search.annotations.NumericField;
//import org.hibernate.search.annotations.Resolution;
import org.hibernate.search.annotations.Store;
import org.hibernate.search.annotations.Boost;
import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.NotEmpty;
I feel like this is something really obvious, but... I'm missing it. Ideas?