lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bin Lan <b...@perimeterusa.com>
Subject Re: Changing behavior of StandardAnalyzer
Date Thu, 15 Nov 2012 02:25:43 GMT
Hi Kiwi,

Thank you, that works.



Regards
--
Bin Lan
Software Developer
Perimeter E-Security
O - (203)541-3412

Follow Us on Twitter: www.twitter.com/PerimeterNews
Read Our Blog: security.perimeterusa.com/blog






On Wed, Nov 14, 2012 at 6:29 AM, kiwi clive <kiwi_clive@yahoo.com> wrote:

> Hi Bin Lan,
>
> This bit me too.
>
> You can choose to StandardAnalyzer and set the version number to 2.9.
>
> Otherwise you can try using ClassicAnalyzer which I belive is 'old'
> Standard Analyzer before it was tidied up.
>
> Clive
>
>
>
>
> ________________________________
>  From: Bin Lan <blan@perimeterusa.com>
> To: java-user@lucene.apache.org
> Sent: Wednesday, November 14, 2012 5:20 AM
> Subject: Changing behavior of StandardAnalyzer
>
> So currently, if I use StandardAnalyzer to construct a QueryParser, and
> pass tString "From: someone@gmail.com" to the parser, it returns a query
> which is "From: someone From: gmail.com". Is there easy way that I can
> change this so it returns "From: "someone gmail.com"" instead?
>
> We had a in-house Analyzer implementation, it used to do this on lucene
> 2.9, but somehow the behavior changes after we upgrade to 3.6.1.
>
> Regards
> --
> Bin Lan
> Software Developer
> Perimeter E-Security
> O - (203)541-3412
>
> Follow Us on Twitter: www.twitter.com/PerimeterNews
> Read Our Blog: security.perimeterusa.com/blog
>
>
>
> This message is for the sole use of the intended recipient(s) and may
> contain confidential and/or privileged information of Perimeter
> Internetworking Corp.  Any unauthorized review, use, copying, disclosure,
> or distribution is prohibited.  If you are not the intended recipient,
> please immediately contact the sender by reply email and delete all copies
> of the original message.
>
>
>
> --
> The sender of this email subscribes to Perimeter E-Security's email
> anti-virus service. This email has been scanned for malicious code and is
> believed to be virus free. For more information on email security please
> visit: http://www.perimeterusa.com/services/messaging
> This communication is confidential, intended only for the named
> recipient(s)
> above and may contain trade secrets or other information that is exempt
> from
> disclosure under applicable law. Any use, dissemination, distribution or
> copying of this communication by anyone other than the named recipient(s)
> is
> strictly prohibited. If you have received this communication in error,
> please
> delete the email and immediately notify our Command Center at 203-541-3444
> .




--
 The sender of this email subscribes to Perimeter E-Security's email
 anti-virus service. This email has been scanned for malicious code and is
 believed to be virus free. For more information on email security please
 visit: http://www.perimeterusa.com/services/messaging
 This communication is confidential, intended only for the named recipient(s)
 above and may contain trade secrets or other information that is exempt from
 disclosure under applicable law. Any use, dissemination, distribution or
 copying of this communication by anyone other than the named recipient(s) is
 strictly prohibited. If you have received this communication in error, please
 delete the email and immediately notify our Command Center at 203-541-3444.

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