In my entity, I have a field indexed as untokenized as shown.
Code:
@Field(name = "model.untok", index = Index.UN_TOKENIZED)
@Column(name = "MODEL")
private String model;
When I use a wild card search for it, I don't get any results. But normal query and proximity query are working fine.
I have the value "PQR" in some of the records, but "PQ*" doesn't match any.
Code:
QueryParser parser1 = new QueryParser("model.untok", new KeywordAnalyzer());
Query query = parser1.parse("PQR" ); // Works fine
Query query = parser1.parse("PQ~" ); // Works fine
Query query = parser1.parse("PQ*" ); // No records found
Please advise.
Thanks,
Seema