Hi,

Please also be care with used analyzer.
If your text could not be translated to ASCII, than Utf8 compatible
analyzer has to be used during indexing and search.

Take a look at  Zend_Search_Lucene "Best Practice. Encoding" and
"Character Set" documentation sections:
http://framework.zend.com/manual/en/zend.search.lucene.best-practice.htm
l#zend.search.lucene.best-practice.encoding
http://framework.zend.com/manual/en/zend.search.lucene.charset.html


With best regards,
   Alexander Veremyev.

> -----Original Message-----
> From: Peter Farafonov [mailto:[EMAIL PROTECTED] 
> Sent: Friday, August 03, 2007 12:01 PM
> To: time2k
> Cc: fw-general@lists.zend.com
> Subject: Re: [fw-general] Zend_Search_Lucene: Does The 
> QueryParser Supports UTF-8 or MultiBytes Charset?
> 
> Hello, time2k.
> 
> > Does The QueryParser Supports UTF-8 or MultiByte Charset?
> 
> It does.
> 
>     /**
>      * Parses a query string
>      *
>      * @param string $strQuery
>      * @param string $encoding
>      * @return Zend_Search_Lucene_Search_Query
>      * @throws Zend_Search_Lucene_Search_QueryParserException
>      */
> 
>      public static function parse($strQuery, $encoding = null)
> 
> 
> Make sure you always pass correct $encoding.
> 
> --
> Best regards,
>  Peter                          mailto:[EMAIL PROTECTED]
> 
> 

Reply via email to