On Sat, Oct 30, 2010 at 11:43 AM, Robert Muir <[email protected]> wrote:
> On Sat, Oct 30, 2010 at 11:40 AM, Earwin Burrfoot <[email protected]> wrote:
>> On Sat, Oct 30, 2010 at 18:49, Uwe Schindler <[email protected]> wrote:
>>> In my opinion, we should not have analyzers at all (just my personal 
>>> opinion). "new Field(name, TokenStream)" is much enough from consistency 
>>> standpoint!
>>
>> Indeed, my friend!
>>
>
> i agree (for the indexer), but a lot of people like to use the
> QueryParser.... so we need a "tokenstream-factory" of some sort
> (Analyzer today).

If it's only for the QP, a simple method that one could override would suffice:
QueryParser.getTokenStream(String field, String value)

If it's not just for the QP, then we have Analyzer (as you've pointed out).

-Yonik
http://www.lucidimagination.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to