Hi Michael The query is constructed using QueryText. Partial of my code as floowing
string queryText = "title:2009123"; QueryParser parser = new QueryParser(SpecialFields.Title, Analyzer); parser.SetLowercaseExpandedTerms(false); Lucene.Net.Search.Query query =parser.Parse(queryText); searcher.Search(query); //searcher is an IndexSearcher instance Floyd 2009/12/5 Michael Garski <mgar...@myspace-inc.com> > Floyd, > > How are you constructing the query? > > Michael > > -----Original Message----- > From: Floyd Wu [mailto:floyd...@gmail.com] > Sent: Thursday, December 03, 2009 10:33 PM > To: lucene-net-user@incubator.apache.org > Subject: How to search number in text field? > > Hi all, > When using StandardAnalyzer indexing documents, Lucene.Net did not > search > for numbers in text fields with numbers. > For example, I have built a index which title is 2009123. > Fire the querystring as "title:2009" returns no records and even if > using > title:2009* > There does exist record with title value=2009123; > How can I search this record when my client really want to use 2009 as > keyword for searching? > > Thanks > > Floyd > >