lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wenbo Zhao <zha...@gmail.com>
Subject Re: how to by pass analyzer one some fields in QueryParser ?
Date Sun, 28 Jul 2013 14:41:21 GMT
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 <zhaowb@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

=======================

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message