I have a lucene index. I am trying to do a pattern search. In the index, I have a character like
'234Test2343'
I'm trying to search, for example% Test%.
My lucene syntax looks like
string catalogNumber="test";
Term searchTerm = new Term("FIELD", "*"+catalogNumber+"*");
Query query = new TermQuery(searchTerm);
I will not return the results. Any thoughts?
thanks
source
share