Hi every one
I'm using Hibernate Search.
I can index and search properly.
I am using the default StandardAnalyzer for indexing and query parsing.
I need to add a new stop word "-" into StandardAnalyzer.
Because the following string "DSE-s700" are indexded as a single word by StandardAnalyzer .
if the user use "DSE s700" as a search string, it wont return the any result. but i need to give the "DSE-s700" as a result.
i can define the analyzer external for a field , but i cant add a new stop word into it.
Code:
@Entity
@Table(name = "TBL_PRODUCTS")
@Indexed
public class TopSixPicks implements Serializable{
@Id
@DocumentId
private BigDecimal productId;
@Field(index=Index.TOKENIZED)
@Analyzer(impl = StandardAnalyzer.class)
private String productName;
}
Any help how to do this ..
by
Thiagu.m