c# - Lucene.Net TermQuery wildcard search -


I have a Lucene index, I'm trying to search wildcards I have one letter in the index, Like '234Test2343' I'm trying to look like a% test%.

My suspicion syntax looks

  string catalog number = "test"; Term searchTerms = new period ("FIELD", "*" + list number + "*"); Query Query = New TermQuery (searchTerm);  

Do not get me the result back any thoughts?

Thanks

You can use one instead of a charity wild card , Appears to be a literal star. Please note that the performance of a WildCardQuery is usually very slow, when you are more likely to use two wild cards.


Comments

Popular posts from this blog

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

Which Python client library should I use for CouchdB? -