PerFieldAnalyzerWrapper
http://lucene.apache.org/core/4_4_0/analyzers-common/org/apache/lucene/analysis/miscellaneous/PerFieldAnalyzerWrapper.html
"This analyzer is used to facilitate scenarios where different fields
require different analysis techniques."
-- Jack Krupansky
-----Original Message-----
From: Wenbo Zhao
Sent: Sunday, July 28, 2013 10:41 AM
To: lucene-user-mail-list
Subject: Re: how to by pass analyzer one some fields in QueryParser ?
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
=======================
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org