sorry guys I think I made a mistake the parse string I use was "date:\"2013/07/2*\" text:..." the quoted "" makes queryparser ignored trailing '*' and analyze the string. I changed to "date:2013\/07\/2* text:...", it works fine.
sorry for the disturb :-) 2013/7/28 Wenbo Zhao <zha...@gmail.com> > Hi, all > I'm stuck in one simple question, as title says, I think it should have a > simple solution. > Say I use StandardAnalyzer and have two fields in all documents, > StringField("date"...) is not tokenized, format is 2013/07/28 > TextField("text" ...) is tokenized. > > QueryParser parse "date:2013/07/2* text:something" returns > "+date:"2013 07 2" +text:something" > which is apparently not I want. > > I have other StringFields, not only date, so I'm looking for a general > solution, not > specified to this date format. > > any reply will be appreciated . Thanks. > > -- > > Best Regards, > ZHAO, Wenbo > > ======================= > > -- Best Regards, ZHAO, Wenbo =======================