I am now in Lucene, indexing a Document, such as:
Document document = new Document();
document.add(new StringField("text", "123456789", Field.Store.YES));
writer.addDocument(document);
I can query this document:
using the following wildcard queryQuery query = new WildcardQuery(new Term("text", "*456*"));
however, as soon as there is too much data, it will be very slow. I wonder if there is a more efficient way to achieve this query requirement.